source: trunk/examples/extended/electromagnetic/TestEm9/README @ 1292

Last change on this file since 1292 was 807, checked in by garnier, 16 years ago

update

File size: 4.9 KB
Line 
1$Id: README,v 1.10 2006/11/22 18:58:25 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 are available: 
48    - "standard"        the best standard EM physics (default)
49    - "G4standard"      recommended standard EM physics for LHC
50    - "G4standard_fast" the best CPU performance standard physics for LHC
51    - "G4standard_exp"  experimental standard physics for LHC
52    - "Livermore"       low-energy EM physics using Livermore data
53    - "Penelope"        low-energy EM physics implementing Penelope models
54
55    Optional components can be added:
56    - "elastic"       elastic scattering of hadrons
57    - "binary"        QBBC configuration of hadron/ion inelastic models
58    - "gamma_nuc"     gamma- and electro-nuclear processes
59    - "stopping"      stopping processes
60
61 3- AN EVENT : THE PRIMARY GENERATOR
62
63     The primary kinematic consists of a single particle which hits the
64     cylinder perpendicular to the input face. The type of the particle
65     and its energy are set in the PrimaryGeneratorAction class, and can
66     changed via the G4 build-in commands of ParticleGun class.
67
68 4- OUTPUT
69
70     The batch regime of simulation can be started
71       $G4WORKDIR/bin/$G4SYSTEM/TestEm9 TestEm9.in
72     where TestEm9.in is the example of macro file for batch job.
73
74     As a result of simulation the number of secondaries produced
75     in different regions are averaged. The average energy depositions
76     in active absorbers and EM as well as RMS of these values are shown.
77     The number of hits in pads of VD is printed out.
78
79 5- VISUALISATION
80
81     To use visualisation the environment variable G4_VIS_USE should be
82     defined. An interactive session starts if no macro file is specified
83     in the command line:
84       $G4WORKDIR/bin/$G4SYSTEM/TestEm9
85
86     To start visualisation one can issur
87     >/control/execute vis.mac
88     >/run/beamOn 1
89
90 6- ANALYSIS
91
92     To create histograms/ntuple for further analysis one should define
93     environment variable G4ANALYSIS_USE and setup local AIDA implementation.
94     The example should be recompiled:
95
96     gmake histclean
97     gmake
98     
99     The macro file csi.mac can be used as exmple of macro for analysis. It
100     can be executed in the following way:
101     $G4WORKDIR/bin/$G4SYSTEM/TestEm9 csi.mac
102
103 
104 7- Using histograms
105 -------------------
106
107By default the histograms are not activated. To activate histograms
108the environment variable G4ANALYSIS_USE should be defined. For instance
109uncomment the flag G4ANALYSIS_USE in GNUmakefile.
110
111To use histograms any of implementations of AIDA interfaces should
112be available (see http://aida.freehep.org).
113
114A package including AIDA and extended interfaces also using Python
115is PI, available from: http://cern.ch/pi .
116
117Once installed PI or PI-Lite in a specified local area $MYPY, it is
118required to add the installation path to $PATH, i.e. for example,
119for release 1.2.1 of PI:
120
121setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
122
123CERN users can use the PATH to the LCG area on AFS.
124
125Before compilation of the example it is optimal to clean up old
126files:
127
128gmake histclean
129gmake
130
131Before running the example the command should be issued:
132
133eval `aida-config --runtime csh`
134
135It is possible to choose the format of the output file with
136histograms using UI command:
137
138/testem/histo/setFileType type
139
140The following types are available: hbook, root, xml.
Note: See TracBrowser for help on using the repository browser.