Geant4 Cross Reference |
1 ---------------------------------------------- 2 3 ========================================= 4 Geant4 - an Object-Oriented Toolkit for S 5 ========================================= 6 7 amsEcal 8 ------- 9 10 1- GEOMETRY DEFINITION 11 12 AMS Ecal calorimeter is described in the join 13 14 - A single layer is a plane of scintillating 15 absorber material. 16 - Single layers are positionned (eg. placemen 17 (called SuperLayer in the descriptive docum 18 alternatively with a relative offset of +- 19 - Modules are positionned within calorimeter, 20 90 deg around beam axis (X_axis). 21 Therefore all fibers are along Y_axis or Z_ 22 23 The default geometry is constructed in Detect 24 In addition a transverse uniform magnetic fie 25 26 2- PHYSICS LISTS 27 28 Physics lists can be local (eg. in this exam 29 (physics_lists subdirectory). 30 31 - "local" standard EM physics with current ' 32 33 From geant4/source/physics_lists/constructor 34 - "emstandard_opt0" standard EM physics wi 35 - "emstandard_opt1" best CPU performance s 36 - "emstandard_opt2" 37 - "emstandard_opt3" 38 39 Physics lists and options can be (re)set wit 40 41 Please, notice that options set through G4Em 42 for all particle types. In G4 constructors, 43 particle type. 44 45 3- PRIMARY GENERATOR : mono-energetic pencil 46 47 The primary kinematic is a single particle w 48 perpendicular to the input face (eg. along X 49 The type of particle and its energy are set 50 and can be changed via the G4 build-in comma 51 (see the macros provided with this example). 52 53 One can choose randomly the tranverse positi 54 eg. the width of the beam. The associated in 55 in PrimaryGeneratorMessenger. 56 57 4- DETECTOR RESPONSE 58 59 The program computes the 'visible' energy, e 60 in scintillating fibers. 61 62 It also computes the total energy deposited 63 material or in scintillator material. 64 65 The list of fibers fired can be written even 66 The file is filled at EndOfEvent(); uncommen 67 See EventAction::WriteFibers() and the forma 68 69 NB: visible energy can be corrected for Birk 70 see the function SteppingAction::BirksAt 71 72 5- HISTOGRAMS 73 74 The Program contains 5 built-in 1D histogram 75 These histograms can be activated individual 76 /analysis/h1/set id nbBins valMin valMax un 77 where unit is the desired unit for the histo 78 (see the macros xxxx.mac). 79 80 1 total energy in calorimeter (eg. summed a 81 2 vsible energy in calorimeter (eg. summed a 82 3 total energy per layer (eg. longitudinal p 83 4 visible energy per layer (eg. longitudinal 84 5 visible energy per fiber (eg. lateral prof 85 86 Histograms can be viewed using ROOT. 87 88 One can control the name and format of the h 89 /analysis/setFileName name (default amsEca 90 /analysis/setFileType type (choice: root(d 91 92 It is also possible to print selected histog 93 /analysis/h1/setAscii id 94 All selected histos will be written on a fil 95 96 6- VISUALIZATION 97 98 Visualization Manager is set in the main(). 99 Initialisation of the drawing is done via th 100 /vis/... in the macro vis.mac. In interactiv 101 PreInit or Idle > /control/execute vis.mac 102 103 Default view is a longitudinal view of the c 104 105 Tracks are drawn at end of event, and erased 106 Optionaly one can choose to draw all particl 107 This command is defined in EventActionMessen 108 109 7- HOW TO START ? 110 111 - compile and link to generate an executable 112 % cd amsEcal 113 % gmake 114 115 - execute amsEcal in 'batch' mode from macro 116 % amsEcal run1.mac 117 118 - execute amsEcal in 'interactive mode' with 119 % amsEcal 120 .... 121 Idle> type your commands. For instance: 122 Idle> /control/execute run1.mac 123 .... 124 Idle> exit 125 126 8- HANDLE RANDOM NUMBER SEEDS 127 128 The macro rndmSeed.mac shows how to create a 129 Here we save the seed at begin of each run ( 130 is arbitrary). The seeds are stored in subdi 131 132 Macro rndmSeed.mac shows also how to start a