Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/electromagnetic/TestEm15/README.md is written in an unsupported language. File is not indexed.

0001 \page ExampleTestEm15 Example TestEm15
0002 
0003 How to compute and plot the final state of:
0004  - Multiple Scattering
0005  - Gamma Conversion
0006 
0007 considered as an isolated processes, see PHYSICS.
0008 
0009 For Multiple Scattering, the method is exposed below.
0010 
0011 For Gamma Conversion, when G4BetheHeitler5DModel Model is used,
0012 see \ref ExampleTestEm15_GC for Histograms and UI commands description.
0013 
0014 ## GEOMETRY DEFINITION
0015 
0016   It is a single box representing a 'semi infinite' homogeneous medium.
0017   Two parameters define the geometry:
0018   - the material of the box,
0019   - the (full) size of the box.
0020 
0021   The default geometry (100 m of water) is constructed in
0022   DetectorConstruction, but the above parameters can be changed
0023   interactively via the commands defined in DetectorMessenger.
0024 
0025 ## PHYSICS LIST
0026 
0027   The physics list contains the standard electromagnetic processes.
0028   In order not to introduce 'articicial' constraints on the step size,
0029   there is no limitation from the maximum energy lost per step.
0030 
0031 ## AN EVENT: THE PRIMARY GENERATOR
0032 
0033   The primary kinematic consists of a single particle starting at the edge
0034   of the box. The type of the particle and its energy are set in
0035   PrimaryGeneratorAction (1 MeV electron), and can be changed via the G4
0036   build-in commands of G4ParticleGun class (see the macros provided with
0037   this example).
0038 
0039 ## PHYSICS
0040 
0041    All discrete processes are inactivated (see provided macros),
0042    so that Multiple Scattering or Gamma Conversion is 'forced' to
0043    determine the first step of the primary particle.
0044    The step size and the final state are computed  and plotted.
0045    Then the event is immediately killed.
0046 
0047  __Multiple Scattering:__
0048 
0049   The result is compared with the 'input' data, i.e. with the cross sections stored in the PhysicsTables and used by Geant4.
0050 
0051   The stepMax command provides an additionnal control of the step size of
0052   the multiple scattering.
0053 
0054 
0055 ## HISTOGRAMS
0056 
0057   The test contains 16 built-in 1D histograms, which are managed by the
0058   HistoManager class and its Messenger. The histos can be individually
0059   activated with the command :
0060 ```
0061 /analysis/h1/set id nbBins  valMin valMax unit
0062 ```
0063   where unit is the desired unit for the histo (MeV or keV, etc..)
0064   (see the macros xxxx.mac).
0065 
0066    - 1 :  Multiple Scattering. True step length
0067    - 2 :  Multiple Scattering. Geom step length
0068    - 3 :  Multiple Scattering. Ratio geomSl/trueSl
0069    - 4 :  Multiple Scattering. Lateral displacement: radius
0070    - 5 :  Multiple Scattering. Lateral displac: psi_space
0071    - 6 :  Multiple Scattering. Angular distrib: theta_plane
0072    - 7 :  Multiple Scattering. Phi-position angle
0073    - 8 :  Multiple Scattering. Phi-direction angle
0074    - 9 :  Multiple Scattering. Correlation: cos(phiPos-phiDir)
0075 
0076    - 10 : Gamma Conversion. Open Angle * Egamma
0077    - 11 : Gamma Conversion. Log10(P recoil)
0078    - 12 : Gamma Conversion. Phi P recoil angle
0079    - 13 : Gamma Conversion. Phi P plus angle
0080    - 14 : Gamma Conversion. 2 * cos(phiplus + phiminus) Asymmetry
0081    - 15 : Gamma Conversion. E plus / E gamma
0082    - 16 : Gamma Conversion. Phi of Gamma Polarization
0083 
0084 
0085    The histograms are managed by the HistoManager class and its Messenger.
0086    The histos can be individually activated with the command :
0087 ```
0088 /analysis/h1/set id nbBins  valMin valMax unit
0089 ```
0090    where unit is the desired unit for the histo (MeV or keV, deg or mrad, etc..)
0091 
0092    One can control the name of the histograms file with the command:
0093 ```
0094 /analysis/setFileName  name  (default testem15)
0095 ```
0096 
0097    It is possible to choose the format of the histogram file : root (default),
0098    hdf5, xml, csv, by changing the default file type in HistoManager.cc
0099 
0100    It is also possible to print selected histograms on an ascii file:
0101 ```
0102 /analysis/h1/setAscii id
0103 ```
0104    All selected histos will be written on a file name.ascii (default testem15)
0105 
0106 ## VISUALIZATION
0107 
0108    The Visualization Manager is set in the main().
0109    The initialisation of the drawing is done via the commands
0110    /vis/... in the macro vis.mac. To get visualisation:
0111 ```
0112 > /control/execute vis.mac
0113 ```
0114 
0115    The detector has a default view which is a longitudinal view of the
0116    box.
0117 
0118    The tracks are drawn at the end of event, and erased at the end of run.
0119 
0120 ## HOW TO START ?
0121 
0122   - Execute TestEm15 in 'batch' mode from macro files:
0123 ```
0124 % ./TestEm15   compt.mac
0125 ```
0126 
0127   - Execute TestEm15 in 'interactive mode' with visualization:
0128 ```
0129 % ./TestEm15
0130 Idle> control/execute vis.mac
0131 ....
0132 Idle> type your commands
0133 ....
0134 Idle> exit
0135 ```
0136 
0137 ## - MACROS
0138 
0139  The examples of macros for Multiple Scattering:
0140   - electron.mac
0141   - muon.mac
0142   - proton.mac
0143 
0144  The example of Gamma Conversion macro:
0145   - gamma.mac - gamma to e+ e-
0146 
0147 \subpage ExampleTestEm15_GC
0148 
0149 \page ExampleTestEm15_GC Example TestEm15 - Gamma Conversion
0150 
0151 ## Gamma Conversion macros:
0152   - gamma.mac - tests of the 5D gamma -> e+ e- conversion model G4BetheHeitler5DModel
0153 
0154 All discrete processes are inactivated (see macro),
0155 so Gamma Conversion is 'forced'.
0156 
0157 ## HISTOGRAMS for gamma conversion
0158 
0159   - 10 : Open Angle (rad)* E gamma (MeV).
0160 
0161 The most probable value of the e+ e- pair opening angle multiplied by the
0162 photon energy is 1.6 rad*MeV and 338 rad*MeV in case mu+ mu- pair.
0163 See: Olsen, Phys. Rev. 131 (1963) 406.
0164 See also: Fig. 7 of arXiv:1802.08253 and Fig. 6 arXiv:1910.12501.
0165 
0166   - 11 :  Log10 ( recoil momentum).
0167 
0168 The distribution of the  recoil momentum is described by
0169 Jost, Phys. Rev. 80 (1950) 189 (no form factor).
0170 See also Fig. 2 of Astroparticle Physics 88 (2017) 60.
0171 
0172   - 12 :  Phi recoil.
0173 
0174   - 13 :  Phi positron.
0175 
0176   For linearly polarized incident photons, the distributions should show
0177   a sinusoidal shape with period 180°, for non polarized incident photons,
0178   the distribution of azimuthal angles should be flat.
0179 
0180   - 14 : Asymmetry 2 * cos(phi_+ + phi_-).
0181 
0182 For a photon propagating along x, polarized along y,
0183 the average value of ( 2.0 * cos(phi_+ + phi_-) ),
0184 provides a measurement of the polarization asymmetry, A.
0185 Eq. (12) of Nucl. Instrum. Meth. A 729 (2013) 765
0186 The azimuthal angle of the event defined as the bisector angle
0187 of the azimuthal angles of the positron and of the electron,
0188 (phi_+ + phi_-)/2,
0189 provides the optimal measurement of the asymmetry
0190 Astroparticle Physics 88 (2017) 30.
0191 
0192 For high-energy photons (E >> 20 MeV), the asymptotic expression for A
0193 can be used for comparison.
0194 Boldyshev, Yad. Fiz. 14 (1971) 1027, Sov.J.Nucl.Phys. 14 (1972) 576.
0195 See also eq. (13) of arXiv:1802.08253
0196 Example : A ~ 0.17 at 100 GeV.
0197 
0198   - 15 : E plus / E gamma.
0199 
0200 x_+ = E plus / E gamma has a more-or-less flat spectrum that extends
0201 almost from 0. to 1.
0202 See Fig. 16 page 261 of "The Quantum Theory of Radiation", W. Heitler,
0203 3rd edition, 1954.
0204 
0205   - 16 : Phi of Gamma Polarization.
0206 
0207 The phi of polarization vector after transformation into reference system
0208  defined by gamma direction (z) , gamma polarization (x).
0209 
0210 ## UI COMMANDS
0211 
0212 There are two commands to control G4BetheHeitler5DModel:
0213 
0214 ```
0215 /process/gconv/conversionType itype
0216 /process/gconv/onIsolated bool
0217 ```
0218 
0219 The command:
0220 ```
0221 /process/gconv/conversionType
0222 ```
0223 
0224 Allow to force conversion on nuclear or electron
0225 The parameter values:
0226  - 0 - (default) both triplet and nuclear conversion in proportion triplet/nuclear 1/Z
0227  - 1 - force nuclear conversion
0228  - 2 - force triplet
0229 
0230 The command:
0231 ```
0232 /process/gconv/onIsolated
0233 ```
0234 
0235 Allow simulate conversion on isolated particles without screening
0236 The perimeter values:
0237  - false - (default) atomic electron screening
0238  - true - conversion on isolated particles