Geant4 Cross Reference |
1 ---------------------------------------------- 2 3 ========================================= 4 Geant4 - an Object-Oriented Toolkit for S 5 ========================================= 6 7 TestEm15 8 -------- 9 10 How to compute and plot the final stat 11 - Multiple Scattering 12 - Gamma Conversion 13 considered as an isolated processes, see PHY 14 15 For Multiple Scattering, the method is expos 16 17 For Gamma Conversion, when G4BetheHeitler5DM 18 see README.gamma for Histograms and UI comma 19 20 1- GEOMETRY DEFINITION 21 22 It is a single box representing a 'sem 23 Two parameters define the geometry: 24 - the material of the box, 25 - the (full) size of the box. 26 27 The default geometry (100 m of water) 28 DetectorConstruction, but the above pa 29 interactively via the commands defined 30 31 2- PHYSICS LIST 32 33 The physics list contains the standard 34 In order not to introduce 'artificial' 35 there is no limitation from the maximu 36 37 3- AN EVENT: THE PRIMARY GENERATOR 38 39 The primary kinematic consists of a si 40 of the box. The type of the particle a 41 PrimaryGeneratorAction (1 MeV electron 42 build-in commands of ParticleGun class 43 this example). 44 45 4- PHYSICS 46 47 All discrete processes are inactivated 48 so that Multiple Scattering or Gamma C 49 determine the first step of the primar 50 The step size and the final state are 51 Then the event is immediately killed. 52 53 Multiple Scattering: 54 55 The result is compared with the 'input' data 56 sections stored in the PhysicsTables a 57 The stepMax command provides an additi 58 the multiple scattering. 59 60 61 5- HISTOGRAMS 62 63 The test contains 16 built-in 1D histo 64 G4AnalysisManager and its Messenger. T 65 activated with the command: 66 /analysis/h1/set id nbBins valMin val 67 where unit is the desired unit for the 68 (see the macros xxxx.mac). 69 70 1 Multiple Scattering. True step 71 2 Multiple Scattering. Geom step 72 3 Multiple Scattering. Ratio geo 73 4 Multiple Scattering. Lateral d 74 5 Multiple Scattering. Lateral d 75 6 Multiple Scattering. Angular d 76 7 Multiple Scattering. Phi-posit 77 8 Multiple Scattering. Phi-direc 78 9 Multiple Scattering. Correlati 79 80 10 Gamma Conversion. Open Angle * 81 11 Gamma Conversion. Log10(P reco 82 12 Gamma Conversion. Phi P recoil 83 13 Gamma Conversion. Phi P plus a 84 14 Gamma Conversion. 2 * cos(phip 85 15 Gamma Conversion. E plus / E g 86 16 Gamma Conversion. Phi of Gamma 87 88 89 The histograms are managed by the HistoMana 90 The histos can be individually activated wi 91 /analysis/h1/set id nbBins valMin valMax u 92 where unit is the desired unit for the hist 93 94 One can control the name of the histograms 95 /analysis/setFileName name (default teste 96 97 It is possible to choose the format of the 98 hdf5, xml, csv, by changing the default fil 99 100 It is also possible to print selected histo 101 /analysis/h1/setAscii id 102 All selected histos will be written on a fi 103 104 6- VISUALIZATION 105 106 The Visualization Manager is set in th 107 The initialization of the drawing is d 108 /vis/... in the macro vis.mac. To get 109 > /control/execute vis.mac 110 111 The detector has a default view which 112 box. 113 114 The tracks are drawn at the end of eve 115 116 7- HOW TO START ? 117 118 execute TestEm15 in 'batch' mode from 119 % TestEm15 compt.mac 120 121 execute TestEm15 in 'interactive mode' 122 % TestEm15 123 Idle> control/execute vis.mac 124 .... 125 Idle> type your commands 126 .... 127 Idle> exit 128 129 8 - MACROS 130 The examples of macros for Multiple Sca 131 electron.mac muon.mac proton.mac 132 133 The example of Gamma Conversion macro: 134 gamma.mac - gamma to e+ e- 135 gamma2mumu.mac gamma to mu+ mu-