ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.ConditionDefaults.ConditionDefaults Class Reference
Collaboration diagram for python.ConditionDefaults.ConditionDefaults:

Public Member Functions

def __init__ (self)
 
def __call__ (self, key, lo='', hi='')
 
def scale (self, key, val)
 

Public Attributes

 defaults
 
 scale_factor
 

Detailed Description

Definition at line 12 of file ConditionDefaults.py.

Constructor & Destructor Documentation

◆ __init__()

def python.ConditionDefaults.ConditionDefaults.__init__ (   self)

Definition at line 13 of file ConditionDefaults.py.

13  def __init__(self):
14 
15  # we have neta, ceta and p eta. Each is a key for
16  # TrigJetConditionConfig_signed_eta. We need a way to
17  # interprete the scenario, atking into account minus signs
18  # cannot appear in the chain name.
19  self.defaults = {
20  'et': {'min': '0', 'max': 'inf'},
21  'pt': {'min': '0', 'max': 'inf'},
22  'eta': {'min': '0', 'max': 'inf'},
23  'neta': {'min': '-inf', 'max': '0'}, # scenario etas: -eta -eta
24  'ceta': {'min': '-inf', 'max': 'inf'}, # scenario etas: -eta, +eta
25  'peta': {'min': '0', 'max': 'inf'}, # scenario etas: +eta +eta
26  'nphi': {'min': '-inf', 'max': '0'}, # scenario phis: -phi -phi
27  'cphi': {'min': '-inf', 'max': 'inf'}, # scenario phis: -phi, +phi
28  'pphi': {'min': '0', 'max': 'inf'}, # scenario phis: +phi +phi
29  'djmass': {'min': '0', 'max': 'inf'},
30  'djdeta': {'min': '0', 'max': 'inf'},
31  'djdphi': {'min': '0', 'max': str(math.pi)},
32  'ht': {'min': '0', 'max': 'inf'},
33  'dipz_mlpl': {'min': '-inf', 'max': 'inf'},
34  'dipz_njet': {'min': '2', 'max': 'inf'},
35  'mult': {'min': '0', 'max': 'inf'},
36  'smc': {'min': '0', 'max': 'inf'},
37  'jvt': {'min': '0', 'max': 'inf'},
38  'bsel': {'min': '-inf', 'max': 'inf'},
39  'tausel': {'min': '-inf', 'max': 'inf'},
40  'clrsel': {'min': '-inf', 'max': 'inf'},
41  'pileuprm': {'min': '-inf', 'max': 'inf'},
42  'momCuts': {'min': '-inf', 'max': 'inf'},
43  'timing': {'min': '0', 'max': 'inf'},
44  'timeSig': {'min': '0', 'max': 'inf'},
45  }
46 
47  self.scale_factor = {
48  'et': 1000.,
49  'pt': 1000.,
50  'eta': 0.01,
51  'neta': 0.01,
52  'ceta': 0.01,
53  'peta': 0.01,
54  'nphi': 0.01,
55  'cphi': 0.01,
56  'pphi': 0.01,
57  'djmass': 1000.,
58  'djdeta': 0.01,
59  'djdphi': 0.01,
60  'ht': 1000.,
61  'dipz_mlpl': -0.1,
62  'dipz_njet': 1.0,
63  'mult': 1,
64  'smc': 1000.,
65  'jvt': 0.01,
66  'clrsel': 0.01,
67  'pileuprm': 0.01,
68  'momCuts': 0.01,
69  'timing': 1.0,
70  'timeSig': 1.0,
71  }
72 

Member Function Documentation

◆ __call__()

def python.ConditionDefaults.ConditionDefaults.__call__ (   self,
  key,
  lo = '',
  hi = '' 
)

Definition at line 73 of file ConditionDefaults.py.

73  def __call__(self, key, lo='', hi=''):
74  vals = deepcopy(self.defaults[key])
75  if lo: vals['min'] = self.scale(key, lo)
76  if hi: vals['max'] = self.scale(key, hi)
77  return vals
78 

◆ scale()

def python.ConditionDefaults.ConditionDefaults.scale (   self,
  key,
  val 
)

Definition at line 79 of file ConditionDefaults.py.

79  def scale(self, key, val):
80  return str(float(val) * self.scale_factor[key])
81 

Member Data Documentation

◆ defaults

python.ConditionDefaults.ConditionDefaults.defaults

Definition at line 19 of file ConditionDefaults.py.

◆ scale_factor

python.ConditionDefaults.ConditionDefaults.scale_factor

Definition at line 47 of file ConditionDefaults.py.


The documentation for this class was generated from the following file:
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
readCCLHist.float
float
Definition: readCCLHist.py:83