Geant4 Cross Reference |
1 ---------------------------------------------- 2 3 ========================================= 4 Geant4 - an Object-Oriented Toolkit for S 5 ========================================= 6 7 TestEm17 8 -------- 9 This example is intended to check impl 10 of muon interactions: ionization, dire 11 pair production, bremsstrahlung, and mu-nucl 12 It allows to compute differential cross sect 13 energy transfered to secondaries), total cro 14 with analytic calculations. 15 16 1- GEOMETRY DEFINITION 17 18 It is a single box of homogeneous medium. 19 Two parameters define the geometry : 20 - the material of the box, 21 - the (full) size of the box. 22 23 The default geometry (1 m of Iron) is constr 24 DetectorConstruction, but the above paramete 25 interactively via the commands defined in De 26 27 2- PHYSICS LIST 28 29 The Physics List of the example uses the mai 30 (builder) called "local", which includ 31 processes under study. As an alternati 32 and "emstandard_opt4" constructors may 33 34 Default energy range for EM processes 35 is from 100*eV to 1000*PeV. 36 37 Optionally "muNucl" builder may be add 38 inelastic interaction. 39 40 3- AN EVENT : THE PRIMARY GENERATOR 41 42 The primary kinematic consists of a single p 43 of the box. The type of the particle and its 44 PrimaryGeneratorAction (mu+ 10 TeV), and can 45 build-in commands of ParticleGun class (see 46 this example). 47 48 4- PHYSICS 49 50 The incident particle is a muon. During the 51 particles are killed. 52 53 The number of interactions are plotted as a 54 transfered to the secondaries. 55 The total number of interactions is recorded 56 section computed from this. 57 58 At RunAction::EndOfRun(..), the above 59 calculations. The functions computing 60 provided by the G4 MEPhI group, and implemen 61 62 5- HISTOGRAMS 63 64 The test contains built-in 1D histograms for 65 Monte Carlo simulation, which are mana 66 and its Messenger: 67 68 1 Relative muon transferred energy dis 69 (log10(eps/Emu kin) for knock-on e 70 2 -"- direct (e+,e-) pair production 71 3 -"- bremsstrahlung by muons 72 4 -"- nuclear interaction by muons 73 5 ionistion for hadrons 74 6 (e+,e-) pair production by hadrons 75 7 bremsstrahlung by hadrons 76 8 direct mu+,mu- pair production by muons 77 78 The histos can be activated individually wit 79 /testem/histo/setHisto id nbBins valMin val 80 min and max values of log10(eps/Emu 81 82 At EndOfRun the corresponding histos for ana 83 automatically created and filled (histo 11 t 84 85 One can control the name and the type of the 86 the command: 87 /testem/histo/setFileName name (default te 88 89 6- VISUALIZATION 90 91 The Visualization Manager is set in the main 92 The initialisation of the drawing is done vi 93 /vis/... in the macro vis.mac. To get visual 94 > /control/execute vis.mac 95 96 The detector has a default view which is a l 97 box. 98 99 The tracks are drawn at the end of event, an 100 101 7- HOW TO START ? 102 103 execute TestEm17 in 'batch' mode from macro 104 % TestEm17 allproc.mac 105 106 execute TestEm17 in 'interactive mode' with 107 % TestEm17 108 Idle> control/execute vis.mac 109 .... 110 Idle> type your commands 111 .... 112 Idle> exit