|
def | recalculate (self, flags) |
|
def | CosmicEmin (self, flags) |
|
def | CosmicEmax (self, flags) |
|
def | CosmicLowVertex_X (self, flags) |
|
def | CosmicHighVertex_X (self, flags) |
|
def | CosmicLowVertex_Z (self, flags) |
|
def | CosmicHighVertex_Z (self, flags) |
|
def | CosmicRadius (self, flags) |
|
def | BedrockDX (self, flags) |
|
def | BedrockDZ (self, flags) |
|
def | reconfigureCavernGeometry (self, flags, cfg) |
|
Definition at line 6 of file CosmicGeneratorConfig.py.
◆ BedrockDX()
def CosmicGeneratorConfig.CavernPropertyCalculator.BedrockDX |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 114 of file CosmicGeneratorConfig.py.
114 def BedrockDX(self, flags):
117 self.recalculate(flags)
118 return (self.xvert_high - self.xvert_low)
◆ BedrockDZ()
def CosmicGeneratorConfig.CavernPropertyCalculator.BedrockDZ |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 120 of file CosmicGeneratorConfig.py.
120 def BedrockDZ(self, flags):
123 self.recalculate(flags)
124 return (self.zvert_high - self.zvert_low)
◆ CosmicEmax()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicEmax |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ CosmicEmin()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicEmin |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ CosmicHighVertex_X()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicHighVertex_X |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 87 of file CosmicGeneratorConfig.py.
87 def CosmicHighVertex_X(self, flags):
90 self.recalculate(flags)
91 return self.xvert_high
◆ CosmicHighVertex_Z()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicHighVertex_Z |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 101 of file CosmicGeneratorConfig.py.
101 def CosmicHighVertex_Z(self, flags):
104 self.recalculate(flags)
105 return self.zvert_high
◆ CosmicLowVertex_X()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicLowVertex_X |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ CosmicLowVertex_Z()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicLowVertex_Z |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ CosmicRadius()
def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicRadius |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ recalculate()
def CosmicGeneratorConfig.CavernPropertyCalculator.recalculate |
( |
|
self, |
|
|
|
flags |
|
) |
| |
Definition at line 46 of file CosmicGeneratorConfig.py.
46 def recalculate(self, flags):
47 if flags.Sim.CosmicPtSlice ==
'Off':
48 if 'Muon' in flags.Sim.CosmicFilterVolumeNames:
49 self.xvert_low = -301700.
50 self.xvert_high = 298300.
51 self.zvert_low = -1000.*300.
52 self.zvert_high = 1000.*300.
54 if 'Pixel' in flags.Sim.CosmicFilterVolumeNames:
57 n_value = flags.Sim.CosmicPtSlice
58 self.xvert_low = self.xvert_lowDict[n_value]
59 self.xvert_high = self.xvert_highDict[n_value]
60 self.zvert_low = self.zvert_lowDict[n_value]
61 self.zvert_high = self.zvert_highDict[n_value]
63 self.emin = self.EminDict[n_value]
64 self.emax = self.EmaxDict[n_value]
◆ reconfigureCavernGeometry()
def CosmicGeneratorConfig.CavernPropertyCalculator.reconfigureCavernGeometry |
( |
|
self, |
|
|
|
flags, |
|
|
|
cfg |
|
) |
| |
Note that in this coordinate frame the y-axis points upward
such that the cosmics arrive from upward to downward in y.
Definition at line 126 of file CosmicGeneratorConfig.py.
126 def reconfigureCavernGeometry(self, flags, cfg):
128 Note that in this coordinate frame the y-axis points upward
129 such that the cosmics arrive from upward to downward in y.
131 newSize =
max( self.BedrockDX(flags) , self.BedrockDZ(flags) )
132 if (newSize > 350000.):
133 print (
"Resizing bedrock (mm) to fit cosmic generator:",newSize)
134 GeoModelSvc = cfg.getService(
'GeoModelSvc')
135 if (newSize <= 500000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock500'
136 elif (newSize <= 1000000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock1000'
137 elif (newSize <= 1500000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock1500'
138 elif (newSize <= 2000000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock2000'
139 elif (newSize <= 3000000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock3000'
140 elif (newSize <= 4000000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock4000'
141 elif (newSize <= 5000000) : GeoModelSvc.CavernInfraVersionOverride =
'CavernInfra-03-Bedrock5000'
143 print (
"No need to resize the bedrock for cosmic generation")
◆ emax [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.emax = 100.*1000. |
|
static |
◆ emax [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.emax |
◆ EmaxDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.EmaxDict |
|
static |
Initial value:= {'slice1': 100.*1000.,
'slice2': 300.*1000.,
'slice3': 1000.*1000.,
'slice4': 5000.*1000.,
'NONE': 5000.*1000. }
Definition at line 20 of file CosmicGeneratorConfig.py.
◆ emin [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.emin = 10.*1000. |
|
static |
◆ emin [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.emin |
◆ EminDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.EminDict |
|
static |
Initial value:= {'slice1': 10.*1000.,
'slice2': 100.*1000.,
'slice3': 300.*1000.,
'slice4': 1000.*1000.,
'NONE': 10.*1000. }
Definition at line 15 of file CosmicGeneratorConfig.py.
◆ radius [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.radius = 10000. |
|
static |
◆ radius [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.radius |
◆ xvert_high [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.xvert_high = 1000.*200. |
|
static |
◆ xvert_high [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.xvert_high |
◆ xvert_highDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.xvert_highDict |
|
static |
Initial value:= {'slice1': 1000.*200.,
'slice2': 1000.*600.,
'slice3': 1000.*1000.,
'slice4': 1000.*3000.,
'NONE': 200000. }
Definition at line 30 of file CosmicGeneratorConfig.py.
◆ xvert_low [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.xvert_low = -1000.*200. |
|
static |
◆ xvert_low [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.xvert_low |
◆ xvert_lowDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.xvert_lowDict |
|
static |
Initial value:= {'slice1': -1000.*200.,
'slice2': -1000.*600.,
'slice3': -1000.*1000.,
'slice4': -1000.*3000.,
'NONE': -200000. }
Definition at line 25 of file CosmicGeneratorConfig.py.
◆ zvert_high [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.zvert_high = 1000.*200. |
|
static |
◆ zvert_high [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.zvert_high |
◆ zvert_highDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.zvert_highDict |
|
static |
Initial value:= {'slice1': 1000.*200.,
'slice2': 1000.*600.,
'slice3': 1000.*1000.,
'slice4': 1000.*3000.,
'NONE': 200000. }
Definition at line 40 of file CosmicGeneratorConfig.py.
◆ zvert_low [1/2]
int CosmicGeneratorConfig.CavernPropertyCalculator.zvert_low = -1000.*200. |
|
static |
◆ zvert_low [2/2]
CosmicGeneratorConfig.CavernPropertyCalculator.zvert_low |
◆ zvert_lowDict
dictionary CosmicGeneratorConfig.CavernPropertyCalculator.zvert_lowDict |
|
static |
Initial value:= {'slice1': -1000.*200.,
'slice2': -1000.*600.,
'slice3': -1000.*1000.,
'slice4': -1000.*3000.,
'NONE': -200000. }
Definition at line 35 of file CosmicGeneratorConfig.py.
The documentation for this class was generated from the following file: