1 | $Id: README,v 1.12 2008/08/22 14:35:12 vnivanch Exp $ |
---|
2 | ------------------------------------------------------------------- |
---|
3 | |
---|
4 | ========================================================= |
---|
5 | Geant4 - an Object-Oriented Toolkit for Simulation in HEP |
---|
6 | ========================================================= |
---|
7 | |
---|
8 | TestEm9 |
---|
9 | ------- |
---|
10 | Demonstrate electromagnetic physics in crystal calorimeters. |
---|
11 | How to define cut-per-region. |
---|
12 | |
---|
13 | 1- GEOMETRY DEFINITION |
---|
14 | |
---|
15 | The geometry consists of the vertex detector (VD), the electromagnetic |
---|
16 | calorimeter (EM), and the muon identifier (MU). Detector layout along |
---|
17 | the axis Z. |
---|
18 | |
---|
19 | VD consisted of 3 layers of Si with pads structured along the axis X. |
---|
20 | Between VD and EM there are 2 active absorbers (scintillators). |
---|
21 | EM is the matrix 5x5 of heavy crystals. MU consist of 2 active absorbers |
---|
22 | (scintillators) and the iron plate between. |
---|
23 | |
---|
24 | 2 additional to the World regions are defined: VertexDetector and |
---|
25 | MuonDetector. For testing purposes first absorber of MU is included in |
---|
26 | the region of VD. |
---|
27 | |
---|
28 | Material of calorimiter and absorber can be choosen: |
---|
29 | Air Water lAr Al Fe BGO PbWO4 Pb. |
---|
30 | eg: /testem/det/CalMat PbWO4 |
---|
31 | /testem/det/AbsMat Al |
---|
32 | |
---|
33 | The size of the detector can be changed also. |
---|
34 | |
---|
35 | eg: /testem/det/EcalLength 20 cm |
---|
36 | /testem/det/EcalWidth 5 cm |
---|
37 | /testem/det/update ---> rebuild the geometry |
---|
38 | |
---|
39 | 2- PHYSICS LISTS |
---|
40 | |
---|
41 | Physics Lists are based on modular design. Few modules are instantiated: |
---|
42 | 1. Transporatation |
---|
43 | 2. EM physics |
---|
44 | 3. Decays |
---|
45 | 4. StepMax - for steplimitation |
---|
46 | |
---|
47 | The following options for EM physics using builders from physics_lists |
---|
48 | sub-package are available: |
---|
49 | - "emstandard" (default) |
---|
50 | - "emstandard_opt1" (EMV) |
---|
51 | - "emstandard_opt2" (EMX) |
---|
52 | - "emstandard_opt3" recommended for medical and space applications |
---|
53 | |
---|
54 | There are local to this example variants of EM physics: |
---|
55 | - "emstandard_local" close to opt3 |
---|
56 | - "standardIG" close to opt2 |
---|
57 | - "standardLPM" relativistic bremsstrahlung model added to opt1 |
---|
58 | - "Livermore" low-energy EM physics using Livermore data |
---|
59 | - "Penelope" low-energy EM physics implementing Penelope models |
---|
60 | |
---|
61 | Optional components can be added: |
---|
62 | - "elastic" elastic scattering of hadrons |
---|
63 | - "binary" QBBC configuration of hadron/ion inelastic models |
---|
64 | - "gamma_nuc" gamma- and electro-nuclear processes |
---|
65 | - "stopping" stopping processes |
---|
66 | |
---|
67 | 3- AN EVENT : THE PRIMARY GENERATOR |
---|
68 | |
---|
69 | The primary kinematic consists of a single particle which hits the |
---|
70 | cylinder perpendicular to the input face. The type of the particle |
---|
71 | and its energy are set in the PrimaryGeneratorAction class, and can |
---|
72 | changed via the G4 build-in commands of ParticleGun class. |
---|
73 | |
---|
74 | 4- OUTPUT |
---|
75 | |
---|
76 | The batch regime of simulation can be started |
---|
77 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 TestEm9.in |
---|
78 | where TestEm9.in is the example of macro file for batch job. |
---|
79 | |
---|
80 | As a result of simulation the number of secondaries produced |
---|
81 | in different regions are averaged. The average energy depositions |
---|
82 | in active absorbers and EM as well as RMS of these values are shown. |
---|
83 | The number of hits in pads of VD is printed out. |
---|
84 | |
---|
85 | 5- VISUALISATION |
---|
86 | |
---|
87 | To use visualisation the environment variable G4_VIS_USE should be |
---|
88 | defined. An interactive session starts if no macro file is specified |
---|
89 | in the command line: |
---|
90 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 |
---|
91 | |
---|
92 | To start visualisation one can issur |
---|
93 | >/control/execute vis.mac |
---|
94 | >/run/beamOn 1 |
---|
95 | |
---|
96 | 6- ANALYSIS |
---|
97 | |
---|
98 | To create histograms/ntuple for further analysis one should define |
---|
99 | environment variable G4ANALYSIS_USE and setup local AIDA implementation. |
---|
100 | The example should be recompiled: |
---|
101 | |
---|
102 | gmake histclean |
---|
103 | gmake |
---|
104 | |
---|
105 | The macro file csi.mac can be used as exmple of macro for analysis. It |
---|
106 | can be executed in the following way: |
---|
107 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 csi.mac |
---|
108 | |
---|
109 | |
---|
110 | 7- Using histograms |
---|
111 | ------------------- |
---|
112 | |
---|
113 | By default the histograms are not activated. To activate histograms |
---|
114 | the environment variable G4ANALYSIS_USE should be defined. For instance |
---|
115 | uncomment the flag G4ANALYSIS_USE in GNUmakefile. |
---|
116 | |
---|
117 | To use histograms any of implementations of AIDA interfaces should |
---|
118 | be available. See InstallAida.txt |
---|