Geant4 Cross Reference |
1 ---------------------------------------------- 1 ------------------------------------------------------------------- 2 2 3 ========================================= 3 ========================================================= 4 Geant4 - an Object-Oriented Toolkit for S 4 Geant4 - an Object-Oriented Toolkit for Simulation in HEP 5 ========================================= 5 ========================================================= 6 6 7 ExampleRE07 7 ExampleRE07 8 ----------- 8 ----------- 9 9 10 This example is based on extended/electromagne 10 This example is based on extended/electromagnetic/TestEm3 and 11 demonstrates how to register specialized track 11 demonstrates how to register specialized tracking managers for 12 a particle or a set of particles. 12 a particle or a set of particles. 13 13 14 1- Geometry definition 14 1- Geometry definition 15 15 16 The geometry of a simplified sampling calor 16 The geometry of a simplified sampling calorimeter is used as 17 in TestEm3, please refer to its documentati 17 in TestEm3, please refer to its documentation for more details. 18 The same UI commands exist for modifying th 18 The same UI commands exist for modifying the geometry (number 19 of layers and absorbers, material and its t 19 of layers and absorbers, material and its thickness), without 20 the /testem/ prefix. 20 the /testem/ prefix. 21 21 22 In addition to the definition of the volume 22 In addition to the definition of the volumes, this example adds 23 two regions, "Front" and "Back", which cont 23 two regions, "Front" and "Back", which contain the front and 24 rear half of the calorimeter. 24 rear half of the calorimeter. 25 25 26 2- Physics lists 26 2- Physics lists 27 27 28 By default, the example uses G4EmStandardPh 28 By default, the example uses G4EmStandardPhysics and registers 29 processes to the G4ProcessManager. This can 29 processes to the G4ProcessManager. This can be changed with the 30 /setMode UI command. Possible values are: 30 /setMode UI command. Possible values are: 31 31 32 processes: use G4EmStandardPhysics, the d 32 processes: use G4EmStandardPhysics, the default 33 tracking: use the same physics as G4EmSt 33 tracking: use the same physics as G4EmStandardPhysics, but 34 implemented as a specialized t 34 implemented as a specialized tracking manager for 35 electrons, positrons, and gamm 35 electrons, positrons, and gammas; see the file 36 EmStandardPhysicsTrackingManag 36 EmStandardPhysicsTrackingManager.cc for details. 37 specialized: use a specialized tracking man 37 specialized: use a specialized tracking manager for gammas; for 38 the purpose of demonstration, 38 the purpose of demonstration, 39 - it uses G4EmStandardPhysics 39 - it uses G4EmStandardPhysics as the basis, 40 - defers processing of gammas 40 - defers processing of gammas with a kinetic energy 41 of more than 100 MeV, 41 of more than 100 MeV, 42 - implement a specialized step 42 - implement a specialized stepping loop for the 43 "Back" region of the detecto 43 "Back" region of the detector. 44 See the file SpecializedTracki 44 See the file SpecializedTrackingManager.cc for more 45 details on the exact implement 45 details on the exact implementation. 46 46 47 3- How to start? 47 3- How to start? 48 48 49 This example comes with one macro file for 49 This example comes with one macro file for each of the described 50 modes that can be passed as a parameter to 50 modes that can be passed as a parameter to the executable: 51 51 52 % exampleRE07 processes.mac 52 % exampleRE07 processes.mac 53 % exampleRE07 specialized.mac 53 % exampleRE07 specialized.mac 54 % exampleRE07 tracking.mac 54 % exampleRE07 tracking.mac