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