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.eTauThreshold Class Reference
Inheritance diagram for python.L1.Base.Thresholds.eTauThreshold:
Collaboration diagram for python.L1.Base.Thresholds.eTauThreshold:

Public Member Functions

def __init__ (self, name, ttype='eTAU', mapping=-1)
 
def isL (self)
 
def isM (self)
 
def isT (self)
 
def isH (self)
 
def setEt (self, et)
 
def addThrValue (self, value, *args, **kwargs)
 
def setIsolation (self, rCore="None", rHad="None")
 
def json (self)
 
def __str__ (self)
 
def getVarName (self)
 
def isLegacy (self)
 
def thresholdInGeV (self)
 

Static Public Member Functions

def setMenuConfig (mc)
 

Public Attributes

 et
 
 suffix
 
 rCore
 
 rHad
 
 name
 
 ttype
 
 mapping
 
 run
 
 thresholdValues
 

Static Public Attributes

 l1configForRegistration
 

Static Private Attributes

 __slots__
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

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

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

623  def __init__(self, name, ttype = 'eTAU', mapping = -1):
624  super(eTauThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='eTAU' else 2)
625  self.et = None
626  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMTH]*)",name).groupdict()
627  self.suffix = mres["suffix"]
628  self.rCore = "None"
629  self.rHad = "None"
630 

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.eTauThreshold.addThrValue (   self,
  value,
args,
**  kwargs 
)

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

648  def addThrValue(self, value, *args, **kwargs):
649  # supporting both EM and TAU
650  defargs = ThresholdValue.getDefaults(self.ttype.name)
651  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
652 
653  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
654  p = deepcopy(defargs)
655  p.update(posargs)
656  p.update(kwargs)
657 
658  thrv = ThresholdValue(self.ttype, value,
659  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
660  priority = p['priority'], name = self.name+'full')
661  if len(self.thresholdValues):
662  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
663  self.thresholdValues.append(thrv)
664  return self
665 

◆ 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 

◆ isH()

def python.L1.Base.Thresholds.eTauThreshold.isH (   self)

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

640  def isH(self):
641  return 'H' in self.suffix
642 

◆ isL()

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

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

631  def isL(self):
632  return 'L' in self.suffix
633 

◆ 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.eTauThreshold.isM (   self)

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

634  def isM(self):
635  return 'M' in self.suffix
636 

◆ isT()

def python.L1.Base.Thresholds.eTauThreshold.isT (   self)

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

637  def isT(self):
638  return 'T' in self.suffix
639 

◆ json()

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

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

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

677  def json(self):
678  confObj = odict()
679  confObj["mapping"] = self.mapping
680  confObj["rCore"] = self.rCore
681  confObj["rHad"] = self.rHad
682  confObj["thrValues"] = []
683  for thrV in self.thresholdValues:
684  confObj["thrValues"].append( odict([
685  ("value", thrV.value),
686  ("etamin", thrV.etamin),
687  ("etamax", thrV.etamax),
688  ("phimin", thrV.phimin),
689  ("phimax", thrV.phimax),
690  ("priority", thrV.priority)
691  ]) )
692  return confObj
693 

◆ setEt()

def python.L1.Base.Thresholds.eTauThreshold.setEt (   self,
  et 
)

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

643  def setEt(self, et):
644  self.et = et
645  self.addThrValue(et)
646  return self
647 

◆ setIsolation()

def python.L1.Base.Thresholds.eTauThreshold.setIsolation (   self,
  rCore = "None",
  rHad = "None" 
)

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

666  def setIsolation(self, rCore = "None", rHad = "None"):
667  allowed_rCore = [ "None", "Loose", "Medium", "Tight" ]
668  allowed_rHad = [ "None", "Loose", "Medium", "Tight"]
669  if rCore not in allowed_rCore:
670  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rCore, must be one of %s", self.name, self.ttype, rCore, ', '.join(allowed_rCore) )
671  if rHad not in allowed_rHad:
672  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_rHad) )
673  self.rHad = rHad
674  self.rCore = rCore
675  return self
676 

◆ 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

◆ et

python.L1.Base.Thresholds.eTauThreshold.et

◆ l1configForRegistration

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

◆ mapping

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

◆ name

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

◆ rCore

python.L1.Base.Thresholds.eTauThreshold.rCore

◆ rHad

python.L1.Base.Thresholds.eTauThreshold.rHad

◆ run

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

◆ suffix

python.L1.Base.Thresholds.eTauThreshold.suffix

◆ thresholdValues

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

◆ ttype

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

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