source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/G4Detector/README @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

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