source: trunk/examples/extended/electromagnetic/TestEm5/README@ 1346

Last change on this file since 1346 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 7.9 KB
Line 
1$Id: README,v 1.26 2009/09/18 14:03:24 maire Exp $
2-----------------------------------------------------
3
4 =========================================================
5 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
6 =========================================================
7
8 TestEm5
9 -------
10 How to study the transmission, absorption and reflexion of particles through
11 a single, thin or thick, layer of material.
12 In perticular, the effects of the multiple scattering can be ploted.
13
14 1- GEOMETRY DEFINITION
15
16 The "absorber" is a box made of a given material.
17
18 Three parameters define the absorber :
19 - the material of the absorber,
20 - the thickness of an absorber,
21 - the transverse size of the absorber (the input face is a square).
22
23 A volume "World" contains the "absorber".
24
25 In addition a transverse uniform magnetic field can be applied.
26
27 The default geometry is constructed in DetectorConstruction class, but all the
28 parameters can be changed via commands defined in the DetectorMessenger class.
29 The parameters of the "World" can be changed, too. However, if World material
30 is not set to vacuum, the plots 10->43 below may be not pertinent.
31
32 2- PHYSICS LIST
33
34 Physics lists can be local (eg. in this example) or from G4 kernel
35 physics_lists subdirectory.
36
37 Local physics lists:
38 - "local" standard EM physics with current 'best' options setting.
39 these options are explicited in PhysListEmStandard
40 - "standardSS" standard EM physics with single Coulomb scattering
41 instead of multiple scattering
42
43 From geant4/source/physics_lists/builders:
44 - "emstandard_opt0" recommended standard EM physics for LHC
45 - "emstandard_opt1" best CPU performance standard physics for LHC
46 - "emstandard_opt2"
47 - "emstandard_opt3" best current advanced EM options.
48 analog to "local" above
49 - "emlivermore" low-energy EM physics using Livermore data
50 - "empenelope" low-energy EM physics implementing Penelope models
51
52 Physics lists and options can be (re)set with UI commands
53
54 Please, notice that options set through G4EmProcessOPtions are global, eg
55 for all particle types. In G4 builders, it is shown how to set options per
56 particle type.
57
58
59 3- AN EVENT : THE PRIMARY GENERATOR
60
61 The primary kinematic consists of a single particle which hits the absorber
62 perpendicular to the input face. The type of the particle and its energy are
63 set in the PrimaryGeneratorAction class, and can be changed via the G4 build-in
64 commands of ParticleGun class (see the macros provided with this example).
65
66 In addition one can choose randomly the impact point of the incident particle.
67 The interactive command is built in PrimaryGeneratorMessenger class.
68
69 4- VISUALIZATION
70
71 The Visualization Manager is set in the main().
72 The initialisation of the drawing is done via the commands in vis.mac
73 In interactive session:
74 PreInit or Idle > /control/execute vis.mac
75
76 The example has a default view which is a longitudinal view of the detector.
77
78 The tracks are drawn at the end of event, and erased at the end of run.
79 Optionaly one can choose to draw all particles, only the charged, or none.
80 This command is defined in EventActionMessenger class.
81
82 5- TRACKING
83
84 During the tracking, one can keep or not the secondaries : see StackingAction
85 class and its Messenger.
86 One can also limit 'by hand' the step lenght of the particle. As an example,
87 this limitation is implemented as a 'full' process : see StepMax class and its
88 Messenger. The 'StepMax process' is registered in the Physics List.
89
90 6- DETECTOR RESPONSE
91
92 At the end of a run, from the histogram(s), one can study different
93 physics quantities such as :
94 - energy deposit in the absorber,
95 - energy spectrum of secondaries at creation,
96 - energy spectrum and angle distribution of particles at exit,
97 - transmission and backscattering coefficients,
98 - ...
99
100 7- List of the built-in histograms
101 ----------------------------------
102
103 The test contains more than 20 built-in 1D histograms, which are managed by the
104 HistoManager class and its Messenger. The histos can be individually activated
105 with the command :
106 /testem/histo/setHisto id nbBins valMin valMax unit
107 where unit is the desired unit for the histo (MeV or keV, deg or mrad, etc..)
108 (see the macros xxxx.mac).
109
110 1 "energy deposit in absorber"
111 2 "energy of charged secondaries at creation"
112 3 "energy of gammas at creation (log10(Ekin/MeV))"
113 4 "x_vertex of charged secondaries (all)"
114 5 "x_vertex of charged secondaries (not absorbed)"
115 10 "(transmit, charged) : kinetic energy at exit of world"
116 11 "(transmit, charged) : ener fluence: dE(MeV)/dOmega"
117 12 "(transmit, charged) : space angle dN/dOmega"
118 13 "(transmit, charged) : projected angle at exit of world"
119 14 "(transmit, charged) : projected position at exit of world"
120 15 "(transmit, charged) : radius at exit of world"
121 20 "(transmit, neutral) : kinetic energy at exit of world"
122 21 "(transmit, neutral) : ener fluence: dE(MeV)/dOmega"
123 22 "(transmit, neutral) : space angle dN/dOmega"
124 23 "(transmit, neutral) : projected angle at exit of world"
125 30 "(reflect , charged) : kinetic energy at exit of world"
126 31 "(reflect , charged) : ener fluence: dE(MeV)/dOmega"
127 32 "(reflect , charged) : space angle dN/dOmega"
128 33 "(reflect , charged) : projected angle at exit of world"
129 40 "(reflect , neutral) : kinetic energy at exit of world"
130 41 "(reflect , neutral) : ener fluence: dE(MeV)/dOmega"
131 42 "(reflect , neutral) : space angle dN/dOmega"
132 43 "(reflect , neutral) : projected angle at exit of world"
133
134 The histograms can be viewed using ROOT or PAW. See below the note on AIDA.
135
136 One can control the name and format of the histograms file with the command:
137 /testem/histo/setFileName name (default testem5)
138 /testem/histo/setFileType type (choice: hbook, root(default), XML)
139
140 It is also possible to print selected histograms on an ascii file:
141 /testem/histo/printHisto id
142 All selected histos will be written on a file name.ascii (default testem5)
143
144 Note that, by default, histograms are disabled. To activate them, uncomment
145 the flag G4ANALYSIS_USE in GNUmakefile.
146
147 8- GEANT4/GEANT3/DATA COMPARISON
148
149 A Geant4/Geant3/exp. data comparison is given here for a few cases.
150 These cases can be classified as follow:
151 - e-/e+ incident particles versus protons and others.
152 - 3 energy regimes: low: < 1MeV; medium: 1MeV -> few 10MeV; high: > 100MeV
153
154 We indicate here the corresponding macros.
155
156 | low energy | medium energy | high energy
157 --------------------------------------------------------
158 | acosta.mac | |
159 e-+ | berger.mac | hanson.mac |
160 | hunger.mac | kulchi.mac |
161 | tavola.mac | |
162 --------------------------------------------------------
163 others| bichsel.mac | vincour.mac | shen1.mac shen2.mac
164 | | gottsch.mac | tramu.mac
165 --------------------------------------------------------
166
167 The relevant part of the GEANT3 code is in the subdirectory geant3 together
168 with the xxxx.dat input files.
169
170 9- HOW TO START ?
171
172 - compile and link to generate an executable
173 % cd TestEm5
174 % gmake
175
176 - execute TestEm5 in 'batch' mode from macro files e.g.
177 % $(G4INSTALL)/bin/$(G4SYSTEM)/TestEm5 myMacro.mac
178
179 - execute TestEm5 in 'interactive' mode with visualization e.g.
180 % $(G4INSTALL)/bin/$(G4SYSTEM)/TestEm5
181 Then type your commands, for instance :
182 Idle> control/execute vis.mac
183 Idle> run/beamOn 5
184 ....
185
186 10- USING HISTOGRAMS
187
188 Note that, by default, histograms are disabled. To activate them, uncomment
189 the flag G4ANALYSIS_USE in GNUmakefile.
190
191 Before compilation of the example it is optimal to clean up old files:
192 gmake histclean
193 gmake
194
195 To use histograms, at least one of the AIDA implementations should be
196 available. See InstallAida.txt
197
Note: See TracBrowser for help on using the repository browser.