ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CosmicGeneratorConfig.CavernPropertyCalculator Class Reference
Inheritance diagram for CosmicGeneratorConfig.CavernPropertyCalculator:
Collaboration diagram for CosmicGeneratorConfig.CavernPropertyCalculator:

Public Member Functions

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)
 

Public Attributes

 xvert_low
 
 xvert_high
 
 zvert_low
 
 zvert_high
 
 radius
 
 emin
 
 emax
 

Static Public Attributes

int xvert_low = -1000.*200.
 
int xvert_high = 1000.*200.
 
int zvert_low = -1000.*200.
 
int zvert_high = 1000.*200.
 
int radius = 10000.
 
int emin = 10.*1000.
 
int emax = 100.*1000.
 
dictionary EminDict
 
dictionary EmaxDict
 
dictionary xvert_lowDict
 
dictionary xvert_highDict
 
dictionary zvert_lowDict
 
dictionary zvert_highDict
 

Detailed Description

Definition at line 6 of file CosmicGeneratorConfig.py.

Member Function Documentation

◆ BedrockDX()

def CosmicGeneratorConfig.CavernPropertyCalculator.BedrockDX (   self,
  flags 
)
 

Definition at line 114 of file CosmicGeneratorConfig.py.

114  def BedrockDX(self, flags):
115  """
116  """
117  self.recalculate(flags)
118  return (self.xvert_high - self.xvert_low)
119 

◆ BedrockDZ()

def CosmicGeneratorConfig.CavernPropertyCalculator.BedrockDZ (   self,
  flags 
)
 

Definition at line 120 of file CosmicGeneratorConfig.py.

120  def BedrockDZ(self, flags):
121  """
122  """
123  self.recalculate(flags)
124  return (self.zvert_high - self.zvert_low)
125 

◆ CosmicEmax()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicEmax (   self,
  flags 
)
 

Definition at line 73 of file CosmicGeneratorConfig.py.

73  def CosmicEmax(self, flags):
74  """
75  """
76  self.recalculate(flags)
77  return self.emax
78 
79 

◆ CosmicEmin()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicEmin (   self,
  flags 
)
 

Definition at line 66 of file CosmicGeneratorConfig.py.

66  def CosmicEmin(self, flags):
67  """
68  """
69  self.recalculate(flags)
70  return self.emin
71 
72 

◆ CosmicHighVertex_X()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicHighVertex_X (   self,
  flags 
)
 

Definition at line 87 of file CosmicGeneratorConfig.py.

87  def CosmicHighVertex_X(self, flags):
88  """
89  """
90  self.recalculate(flags)
91  return self.xvert_high
92 
93 

◆ CosmicHighVertex_Z()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicHighVertex_Z (   self,
  flags 
)
 

Definition at line 101 of file CosmicGeneratorConfig.py.

101  def CosmicHighVertex_Z(self, flags):
102  """
103  """
104  self.recalculate(flags)
105  return self.zvert_high
106 
107 

◆ CosmicLowVertex_X()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicLowVertex_X (   self,
  flags 
)
 

Definition at line 80 of file CosmicGeneratorConfig.py.

80  def CosmicLowVertex_X(self, flags):
81  """
82  """
83  self.recalculate(flags)
84  return self.xvert_low
85 
86 

◆ CosmicLowVertex_Z()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicLowVertex_Z (   self,
  flags 
)
 

Definition at line 94 of file CosmicGeneratorConfig.py.

94  def CosmicLowVertex_Z(self, flags):
95  """
96  """
97  self.recalculate(flags)
98  return self.zvert_low
99 
100 

◆ CosmicRadius()

def CosmicGeneratorConfig.CavernPropertyCalculator.CosmicRadius (   self,
  flags 
)
 

Definition at line 108 of file CosmicGeneratorConfig.py.

108  def CosmicRadius(self, flags):
109  """
110  """
111  self.recalculate(flags)
112  return self.radius
113 

◆ 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.
53  self.radius = 20000.
54  if 'Pixel' in flags.Sim.CosmicFilterVolumeNames:
55  self.radius = 2000.
56  else:
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]
62  #self.radius =
63  self.emin = self.EminDict[n_value]
64  self.emax = self.EmaxDict[n_value]
65 

◆ 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):
127  """
128  Note that in this coordinate frame the y-axis points upward
129  such that the cosmics arrive from upward to downward in y.
130  """
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'
142  else :
143  print ("No need to resize the bedrock for cosmic generation")
144 
145 

Member Data Documentation

◆ emax [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.emax = 100.*1000.
static

Definition at line 14 of file CosmicGeneratorConfig.py.

◆ emax [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.emax

Definition at line 64 of file CosmicGeneratorConfig.py.

◆ EmaxDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.EmaxDict
static
Initial value:
= {'slice1': 100.*1000., # 100 GeV
'slice2': 300.*1000., # 300 GeV
'slice3': 1000.*1000., # 1 TeV
'slice4': 5000.*1000., # 5 TeV
'NONE': 5000.*1000. }

Definition at line 20 of file CosmicGeneratorConfig.py.

◆ emin [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.emin = 10.*1000.
static

Definition at line 13 of file CosmicGeneratorConfig.py.

◆ emin [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.emin

Definition at line 63 of file CosmicGeneratorConfig.py.

◆ EminDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.EminDict
static
Initial value:
= {'slice1': 10.*1000., # 10 GeV
'slice2': 100.*1000., # 100 GeV
'slice3': 300.*1000., # 300 GeV
'slice4': 1000.*1000., # 1 TeV
'NONE': 10.*1000. }

Definition at line 15 of file CosmicGeneratorConfig.py.

◆ radius [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.radius = 10000.
static

Definition at line 12 of file CosmicGeneratorConfig.py.

◆ radius [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.radius

Definition at line 53 of file CosmicGeneratorConfig.py.

◆ xvert_high [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.xvert_high = 1000.*200.
static

Definition at line 9 of file CosmicGeneratorConfig.py.

◆ xvert_high [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.xvert_high

Definition at line 50 of file CosmicGeneratorConfig.py.

◆ xvert_highDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.xvert_highDict
static
Initial value:
= {'slice1': 1000.*200., # 200 m
'slice2': 1000.*600., # 600 m
'slice3': 1000.*1000., # 1 km
'slice4': 1000.*3000., # 3 km
'NONE': 200000. }

Definition at line 30 of file CosmicGeneratorConfig.py.

◆ xvert_low [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.xvert_low = -1000.*200.
static

Definition at line 8 of file CosmicGeneratorConfig.py.

◆ xvert_low [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.xvert_low

Definition at line 49 of file CosmicGeneratorConfig.py.

◆ xvert_lowDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.xvert_lowDict
static
Initial value:
= {'slice1': -1000.*200., # 200 m
'slice2': -1000.*600., # 600 m
'slice3': -1000.*1000., # 1 km
'slice4': -1000.*3000., # 3 km
'NONE': -200000. }

Definition at line 25 of file CosmicGeneratorConfig.py.

◆ zvert_high [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.zvert_high = 1000.*200.
static

Definition at line 11 of file CosmicGeneratorConfig.py.

◆ zvert_high [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.zvert_high

Definition at line 52 of file CosmicGeneratorConfig.py.

◆ zvert_highDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.zvert_highDict
static
Initial value:
= {'slice1': 1000.*200., # 200 m
'slice2': 1000.*600., # 600 m
'slice3': 1000.*1000., # 1 km
'slice4': 1000.*3000., # 3 km
'NONE': 200000. }

Definition at line 40 of file CosmicGeneratorConfig.py.

◆ zvert_low [1/2]

int CosmicGeneratorConfig.CavernPropertyCalculator.zvert_low = -1000.*200.
static

Definition at line 10 of file CosmicGeneratorConfig.py.

◆ zvert_low [2/2]

CosmicGeneratorConfig.CavernPropertyCalculator.zvert_low

Definition at line 51 of file CosmicGeneratorConfig.py.

◆ zvert_lowDict

dictionary CosmicGeneratorConfig.CavernPropertyCalculator.zvert_lowDict
static
Initial value:
= {'slice1': -1000.*200., # 200 m
'slice2': -1000.*600., # 600 m
'slice3': -1000.*1000., # 1 km
'slice4': -1000.*3000., # 3 km
'NONE': -200000. }

Definition at line 35 of file CosmicGeneratorConfig.py.


The documentation for this class was generated from the following file:
max
constexpr double max()
Definition: ap_fixedTest.cxx:33