1 | This part of the programm is compiled automatically if the Geant4 environment is set. |
---|
2 | |
---|
3 | The lunch of the programm is done by the standard way: |
---|
4 | ./bin/i686/Simu -b |
---|
5 | For convinience in using of the Geant4 version you can use a user config file. |
---|
6 | The example of it is presented below. |
---|
7 | |
---|
8 | In this case lunch of the programm is done the next way: |
---|
9 | |
---|
10 | ./bin/i686/Simu -b --usrcfg=config/name_of_user_file.cfg |
---|
11 | ################### |
---|
12 | # Standard Geant4 # |
---|
13 | ################### |
---|
14 | Example of config file for using Geant4 (optics version is CPP_2010_09_NOPtics): |
---|
15 | ------------------------------------------------------------------------------- |
---|
16 | #Choosing of OpticalSystem |
---|
17 | # Options: KOpticalSystem, JOpticalSystem, TestOpticalSystem, |
---|
18 | # ParamOpticalSystem , LOpticalSystem, MOpticalSystem |
---|
19 | OpticsFactory.fOpticalSystem = NOpticalSystem |
---|
20 | |
---|
21 | # description of the physical focal surface (plane) |
---|
22 | # Options: FastFocalPlane, TestFocalPlane |
---|
23 | OpticsFactory.fFocalPlane = PolarFocalPlane |
---|
24 | |
---|
25 | # description of the shape of the ideal focal surface |
---|
26 | # Options: MIdealFocalSurface, LIdealFocalSurface, KIdealFocalSurface, JIdealFocalSurface, TestIdealFocalSurface |
---|
27 | OpticsFactory.fIdealFocalSurface = NIdealFocalSurface |
---|
28 | |
---|
29 | # optical adaptors |
---|
30 | # Options: IdealOpticalAdaptor, PipesOpticalAdaptor, FakeOpticalAdaptor, TestOpticalAdaptor |
---|
31 | OpticsFactory.fOpticalAdaptor = IdealOpticalAdaptor |
---|
32 | |
---|
33 | #Options: G4TransportManager, Standard |
---|
34 | OpticsFactory.fTransportManager = G4TransportManager |
---|
35 | |
---|
36 | #Options: G4Detector, Euso |
---|
37 | ElectronicsFactory.Detector = G4Detector |
---|
38 | |
---|
39 | #Options: G4Tus, G4EusoShape |
---|
40 | G4Detector.DetectorType = G4EusoShape |
---|
41 | |
---|
42 | #The dir with optical parameters of lenses |
---|
43 | NOpticalSystem.lens_dir = config/Optics/NOpticalSystem/ |
---|
44 | NOpticalSystem.tel_par = telparm_CPP_2010_09_NOptics |
---|
45 | |
---|
46 | #Parameters of the DetectorTransportManager. For another optics version parameters are changed! |
---|
47 | DetectorTransportManager.fInnerRadius = 1325.0 # mm |
---|
48 | Euso.fRadius = 1325.0 |
---|
49 | EusoDetector.fMaxRadius = 1325.0 |
---|
50 | EusoDetector.fFixMaxRadius = yes |
---|
51 | #Parameters of the focal plane |
---|
52 | PolarFocalPlane.fPos.Z = 3816.974045 |
---|
53 | PolarFocalPlane.fRadius = 1325. # mm |
---|
54 | |
---|
55 | EusoElectronics.fFocalSurfaceFile = @cfg/Electronics/layout_137_CPP2010_09.fsr.data |
---|
56 | #Baffle Parameters. For another optics version parameters are changed! |
---|
57 | ConicBaffle.fTopRadius = 1325. # baffle radius |
---|
58 | ConicBaffle.fPos.Z = 132.894280 # the base of the bottom lens |
---|
59 | ConicBaffle.DZdown = 134 # height of the baffle |
---|
60 | ConicBaffle.fAlpha = 30 # baffle's field of view |
---|
61 | |
---|
62 | #the tipe of the light: test, standard (shower simulation) |
---|
63 | Euso.fLightToEuso = test |
---|
64 | |
---|
65 | #If you set the option Euso.fLightToEuso = test, you will need to set the next |
---|
66 | #light parameters: |
---|
67 | TestLightToEuso.Type = EXTSPOT # can be SPOT,RANDSPOT,CIRCLE,RADIUS and TRACK |
---|
68 | TestLightToEuso.Duration = 5 # time duration in MicroSeconds |
---|
69 | TestLightToEuso.Photons = 100000 # number of photons generated per event |
---|
70 | TestLightToEuso.Theta1 = 0 # theta in degrees (lower value, 0..30) |
---|
71 | TestLightToEuso.Theta2 = 0 # NOT USED |
---|
72 | TestLightToEuso.Phi1 = 0 # phi in degrees (lower, 0..360) |
---|
73 | TestLightToEuso.Phi2 = 1325 # entrance disc radius mm |
---|
74 | TestLightToEuso.wl = 350 # photon wavelength. This option is for EXTSPOT yet. |
---|
75 | ------------------------------------------------------------------------------- |
---|
76 | |
---|
77 | For using the standard version of ESAF you can use the same config file, but you need to change the following |
---|
78 | lines: |
---|
79 | #Options: G4TransportManager, Standard |
---|
80 | OpticsFactory.fTransportManager = Standard |
---|
81 | |
---|
82 | #Options: G4Detector, Euso |
---|
83 | ElectronicsFactory.Detector = Euso |
---|
84 | |
---|
85 | This line should be deleted. |
---|
86 | #Options: G4Tus, G4EusoShape |
---|
87 | G4Detector.DetectorType = G4EusoShape |
---|
88 | |
---|
89 | ###################### |
---|
90 | # Geant4 + electrons # |
---|
91 | ###################### |
---|
92 | |
---|
93 | ------------------------------------------------------------------------------------------ |
---|
94 | You need to use next config file, in order to lunch programm that uses electrons for tracing. |
---|
95 | ------------------------------------------------------------------------------------------ |
---|
96 | # Options: KOpticalSystem, JOpticalSystem, TestOpticalSystem, |
---|
97 | # ParamOpticalSystem , LOpticalSystem, MOpticalSystem |
---|
98 | OpticsFactory.fOpticalSystem = NOpticalSystem |
---|
99 | |
---|
100 | # description of the physical focal surface (plane) |
---|
101 | # Options: FastFocalPlane, TestFocalPlane |
---|
102 | OpticsFactory.fFocalPlane = PolarFocalPlane |
---|
103 | |
---|
104 | # description of the shape of the ideal focal surface |
---|
105 | # Options: MIdealFocalSurface, LIdealFocalSurface, KIdealFocalSurface, JIdealFocalSurface, TestIdealFocalSurface |
---|
106 | OpticsFactory.fIdealFocalSurface = NIdealFocalSurface |
---|
107 | |
---|
108 | # optical adaptors |
---|
109 | # Options: IdealOpticalAdaptor, PipesOpticalAdaptor, FakeOpticalAdaptor, TestOpticalAdaptor |
---|
110 | OpticsFactory.fOpticalAdaptor = IdealOpticalAdaptor |
---|
111 | |
---|
112 | |
---|
113 | OpticsFactory.fTransportManager = G4TransportManager |
---|
114 | |
---|
115 | ElectronicsFactory.Detector = G4Detector |
---|
116 | |
---|
117 | G4Detector.DetectorType = G4EusoShape |
---|
118 | |
---|
119 | NOpticalSystem.lens_dir = config/Optics/NOpticalSystem/ |
---|
120 | NOpticalSystem.tel_par = telparm_CPP_2010_09_NOptics |
---|
121 | |
---|
122 | DetectorTransportManager.fInnerRadius = 1325.0 # mm |
---|
123 | Euso.fRadius = 1325.0 |
---|
124 | EusoDetector.fMaxRadius = 1325.0 |
---|
125 | EusoDetector.fFixMaxRadius = yes |
---|
126 | PolarFocalPlane.fPos.Z = 3816.974045 |
---|
127 | #PolarFocalPlane.fPos.Z = 3593.14116 |
---|
128 | PolarFocalPlane.fRadius = 1325. # mm |
---|
129 | |
---|
130 | |
---|
131 | EusoElectronics.fFocalSurfaceFile = @cfg/Electronics/layout_137_PPP2010_08b.fsr.data |
---|
132 | |
---|
133 | |
---|
134 | ConicBaffle.fTopRadius = 1325. # baffle radius |
---|
135 | ConicBaffle.fPos.Z = 132.894280 # the base of the bottom lens |
---|
136 | #ConicBaffle.fPos.Z = 293.35 |
---|
137 | ConicBaffle.DZdown = 134 # height of the baffle |
---|
138 | #ConicBaffle.DZdown = 295 |
---|
139 | ConicBaffle.fAlpha = 30 # baffle's field of view |
---|
140 | |
---|
141 | Euso.fLightToEuso = none |
---|
142 | G4TransportManager.Vis = 0 |
---|
143 | G4TransportManager.Terminal = 0 |
---|
144 | G4TransportManager.ActivatePrimaryGenAction = 1 |
---|
145 | G4TransportManager.NumberOfEvents = 100 |
---|
146 | PrimaryGeneratorAction.ParticleType = e- |
---|
147 | |
---|
148 | PrimaryGeneratorAction.GeneratePrimaries = Point |
---|
149 | PrimaryGeneratorAction.ThetaMin = 0 |
---|
150 | PrimaryGeneratorAction.ThetaMax = 0 |
---|
151 | PrimaryGeneratorAction.PhiMin = 0 |
---|
152 | PrimaryGeneratorAction.PhiMax = 0 |
---|
153 | #energy, MeV |
---|
154 | PrimaryGeneratorAction.EnergyMin = 10 |
---|
155 | PrimaryGeneratorAction.EnergyMax = 10 |
---|
156 | |
---|
157 | PrimaryGeneratorAction.Point.x = 0 |
---|
158 | PrimaryGeneratorAction.Point.y = 0 |
---|
159 | PrimaryGeneratorAction.Circle.rmin = 0 |
---|
160 | PrimaryGeneratorAction.Circle.rmax = 0 |
---|
161 | |
---|
162 | SimuRootFileManager.fSaveChipTrackTrigger = yes |
---|
163 | SimuRootFileManager.fSaveLblTrackTrigger = yes |
---|
164 | SimuRootFileManager.fDetector.fPhotonFillingMode = MadeSignalOnly |
---|
165 | ------------------------------------------------------------------------------- |
---|