ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
python.L1.Base.Thresholds.eEMThreshold Class Reference
Inheritance diagram for python.L1.Base.Thresholds.eEMThreshold:
Collaboration diagram for python.L1.Base.Thresholds.eEMThreshold:

Public Member Functions

def __init__ (self, name, ttype='eEM', mapping=-1)
 
def isV (self)
 
def isI (self)
 
def isL (self)
 
def isM (self)
 
def setIsolation (self, rhad="None", reta="None", wstot="None")
 
def addThrValue (self, value, *args, **kwargs)
 
def json (self)
 
def __str__ (self)
 
def getVarName (self)
 
def isLegacy (self)
 
def thresholdInGeV (self)
 

Static Public Member Functions

def setMenuConfig (mc)
 

Public Attributes

 suffix
 
 rhad
 
 reta
 
 wstot
 
 name
 
 ttype
 
 mapping
 
 run
 
 thresholdValues
 

Static Public Attributes

 l1configForRegistration
 

Static Private Attributes

 __slots__
 

Detailed Description

Definition at line 293 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

Constructor & Destructor Documentation

◆ __init__()

def python.L1.Base.Thresholds.eEMThreshold.__init__ (   self,
  name,
  ttype = 'eEM',
  mapping = -1 
)

Definition at line 295 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

295  def __init__(self, name, ttype = 'eEM', mapping = -1):
296  super(eEMThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='eEM' else 2)
297  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",name).groupdict()
298  self.suffix = mres["suffix"]
299  self.rhad = "None"
300  self.reta = "None"
301  self.wstot = "None"
302 

Member Function Documentation

◆ __str__()

def python.L1.Base.Thresholds.Threshold.__str__ (   self)
inherited

Definition at line 121 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

121  def __str__(self):
122  return self.name
123 

◆ addThrValue()

def python.L1.Base.Thresholds.eEMThreshold.addThrValue (   self,
  value,
args,
**  kwargs 
)

Definition at line 328 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

328  def addThrValue(self, value, *args, **kwargs):
329  # supporting both EM and TAU
330  defargs = ThresholdValue.getDefaults(self.ttype.name)
331  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
332 
333  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
334  p = deepcopy(defargs)
335  p.update(posargs)
336  p.update(kwargs)
337 
338  thrv = ThresholdValue(self.ttype, value,
339  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
340  priority = p['priority'], name = self.name+'full')
341  if len(self.thresholdValues):
342  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
343  self.thresholdValues.append(thrv)
344  return self
345 

◆ getVarName()

def python.L1.Base.Thresholds.Threshold.getVarName (   self)
inherited
returns a string that can be used as a varname

Reimplemented in python.L1.Base.Thresholds.TopoThreshold.

Definition at line 124 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

124  def getVarName(self):
125  """returns a string that can be used as a varname"""
126  return self.name.replace('p','')
127 

◆ isI()

def python.L1.Base.Thresholds.eEMThreshold.isI (   self)

Definition at line 306 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

306  def isI(self):
307  return 'I' in self.suffix
308 

◆ isL()

def python.L1.Base.Thresholds.eEMThreshold.isL (   self)

Definition at line 309 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

309  def isL(self):
310  return 'L' in self.suffix
311 

◆ isLegacy()

def python.L1.Base.Thresholds.Threshold.isLegacy (   self)
inherited

Definition at line 128 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

128  def isLegacy(self):
129  return self.run == 2
130 

◆ isM()

def python.L1.Base.Thresholds.eEMThreshold.isM (   self)

Definition at line 312 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

312  def isM(self):
313  return 'M' in self.suffix
314 

◆ isV()

def python.L1.Base.Thresholds.eEMThreshold.isV (   self)

Definition at line 303 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

303  def isV(self):
304  return 'V' in self.suffix
305 

◆ json()

def python.L1.Base.Thresholds.eEMThreshold.json (   self)

Reimplemented from python.L1.Base.Thresholds.Threshold.

Definition at line 346 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

346  def json(self):
347  confObj = odict()
348  confObj["mapping"] = self.mapping
349  confObj["rhad"] = self.rhad
350  confObj["reta"] = self.reta
351  confObj["wstot"] = self.wstot
352  confObj["thrValues"] = []
353  for thrV in self.thresholdValues:
354  tvco = odict()
355  tvco["value"] = thrV.value
356  tvco["etamin"] = thrV.etamin
357  tvco["etamax"] = thrV.etamax
358  tvco["priority"] = thrV.priority
359  confObj["thrValues"].append( tvco )
360  return confObj
361 

◆ setIsolation()

def python.L1.Base.Thresholds.eEMThreshold.setIsolation (   self,
  rhad = "None",
  reta = "None",
  wstot = "None" 
)

Definition at line 315 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

315  def setIsolation(self, rhad = "None", reta = "None", wstot = "None"):
316  allowed = [ "None", "Loose", "Medium", "Tight" ]
317  if rhad not in allowed:
318  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rhad, must be one of %s", self.name, self.ttype, rhad, ', '.join(allowed) )
319  if reta not in allowed:
320  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for reta, must be one of %s", self.name, self.ttype, reta, ', '.join(allowed) )
321  if wstot not in allowed:
322  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for wstot, must be one of %s", self.name, self.ttype, wstot, ', '.join(allowed) )
323  self.rhad = rhad
324  self.reta = reta
325  self.wstot = wstot
326  return self
327 

◆ setMenuConfig()

def python.L1.Base.Thresholds.Threshold.setMenuConfig (   mc)
staticinherited

Definition at line 108 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

108  def setMenuConfig(mc):
109  Threshold.l1configForRegistration = mc
110 

◆ thresholdInGeV()

def python.L1.Base.Thresholds.Threshold.thresholdInGeV (   self)
inherited

Definition at line 131 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.

131  def thresholdInGeV(self):
132  if len(self.thresholdValues)==0:
133  return 0
134  else:
135  return float(self.thresholdValues[0].value)
136 

Member Data Documentation

◆ __slots__

python.L1.Base.Thresholds.Threshold.__slots__
staticprivateinherited

◆ l1configForRegistration

python.L1.Base.Thresholds.Threshold.l1configForRegistration
staticinherited

◆ mapping

python.L1.Base.Thresholds.Threshold.mapping
inherited

◆ name

python.L1.Base.Thresholds.Threshold.name
inherited

◆ reta

python.L1.Base.Thresholds.eEMThreshold.reta

◆ rhad

python.L1.Base.Thresholds.eEMThreshold.rhad

◆ run

python.L1.Base.Thresholds.Threshold.run
inherited

◆ suffix

python.L1.Base.Thresholds.eEMThreshold.suffix

◆ thresholdValues

python.L1.Base.Thresholds.Threshold.thresholdValues
inherited

◆ ttype

python.L1.Base.Thresholds.Threshold.ttype
inherited

◆ wstot

python.L1.Base.Thresholds.eEMThreshold.wstot

The documentation for this class was generated from the following file:
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
json
nlohmann::json json
Definition: HistogramDef.cxx:9
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
readCCLHist.float
float
Definition: readCCLHist.py:83