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.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]
1 =========================================================
2 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
3 =========================================================
4
5 GFLASHa Example
6 ---------------
7
8 This example demonstrating usage 'gflash' shower parameterisation
9 in homogeneous calorimeter. Compare with glash1,2,3 the histograms
10 have been added in this example. This makes it possible to use this
11 example for fine tuning of GFLASH parameters.
12 This example allows to compare the shower profiles from fast simulation
13 with full simulation by histograming of longitudinal (slice)
14 and radial profiles with different "binning".
15 Then GFlash fast simulation can be "tuned" via modification
16 of the model parameters file:
17
18 include/ExGflashHomoShowerTuning.hh
19
20 in this example.
21
22 PHYSICS LIST
23 ------------
24
25 The Physics list factory is used in this example.
26 The default physics list is FTFP_BERT which has EM opt0.
27 Additionally, the G4FastSimulationPhysics physics
28 constructor was created to insert the G4FastSimulationManager Process
29 that is making the interface between the fast simulation and the tracking.
30
31 The default PHYSICS list may be changed via setting of the PHYSLIST environment
32 variable, e.g.:
33
34 export PHYSLIST=FTFP_BERT_EMZ # for FTFP_BERT with opt 4 EM physics
35
36
37 GEOMETRY DEFINITION
38 -------------------
39
40 In this example the calorimeter is a simple cube,
41 which consists of 10 x 10 crystals of PbWO4 (CMS like).
42
43 Geometry, sensitive detector and hits are defined respectively in:
44 ExGflashDetectorConstruction
45 ExGflashSensitiveDetector
46 ExGflashHit
47
48 The geometry can be redefined in PreInit state via commands:
49
50 /exgflash/det/setNbCrys ncrys
51 /exgflash/det/setCrysWidth width [cm]
52 /exgflash/det/setCrysLength length [cm]
53
54 Materials can be chosen from Nist Materials: G4_Air G4_WATER ...
55 e.g.: /exgflash/det/setMat G4_PbWO4 see also: csi.mac
56
57 HIT SCORING
58 -----------
59
60 The virtual cylinder sliced longitudinally (slice) and radially (ring) was used.
61 The size of the slices and rings are expressed in radiation
62 length units and Moliere radius (Rm) units for rings. The number
63 of division and division size in fraction of units and can be changed.
64 e.g.: /exgflash/det/setLbin 20 1. ---> 20 slices of 1. radl
65 /exgflash/det/setRbin 5 0.25 ---> 5 rings of 0.25 Rm
66
67 (MaxBin = 500 in both directions)
68
69 In ExGflashEventAction class the arrays corresponded slices and rings was
70 created and filled with hists information. These arrays where use to fill
71 histograms later.
72
73 VISUALIZATION
74 -------------
75
76 The Visualization Manager is set in the main().
77 The initialization of the drawing is done via the commands /vis/...
78 in the macro vis.mac. To get visualization use:
79 /control/execute vis.mac
80
81
82 HOW TO START ?
83 --------------
84
85 - Execute ExGflasha in 'batch' mode from macro files
86 % ExGflasha test.mac
87
88 - Execute ExGflasha in 'interactive mode' with visualization
89 % ExGflasha
90 ....
91 Idle> type your commands
92 ....
93 Idle> exit
94
95 The GFLASH activated via:
96
97 /GFlash/flag 1
98
99 HISTOGRAMS
100 ----------
101
102 ExGflasha produces several histograms:
103 The histograms defined in ExGflashHistoManager class
104
105 Content of these histo:
106
107 h0 : energy deposit per event
108 h1 : the number of hits per event
109 h2 : the energy per hit ( in MeV )
110
111 p0 : longitudinal energy profile
112 p1 : radial energy profile
113
114 p2 : cumulated longitudinal energy profile
115 p3 : cumulated radial energy profile
116
117 To define the output file name with histograms, use the UI command :
118
119 "/analysys/setFileName name"
120
121 MACROS
122 ------
123 The macros to run in batch mode:
124
125 test.mac - default macro for example testing, it show how to use different application commands: redefine the histograms and profiles, change the geometry and material, etc
126
127 csi.mac - like test.mac but produce profiles in CsI Material
128
129 testLong.mac - make the runs with more statistics using default geometry and histograms setting, the material is G4_PbWO4
130
131 csiLong.mac - show how to run testLong.mac with different material (CsI)
132
133 Each macro executes two runs with fast simulation flag ON (the output file
134 name is set to gflash01.root ) and OFF (the output file name is set to gflash00.root )
135
136 In addition, the ROOT macros cmpL.C, cmpR.C and cmpE.C file are provided,
137 which can be used to draw superimposed full and fast histograms for radial
138 and lateral profiles and also the normalized total energy deposition
139 in calorimeter.