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

Public Member Functions

def __init__ (self, name, ttype='cTAU', mapping=-1)
 
def isL (self)
 
def isM (self)
 
def isT (self)
 
def setEt (self, et)
 
def addThrValue (self, value, *args, **kwargs)
 
def setIsolation (self, isolation="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
 
 isolation
 
 name
 
 ttype
 
 mapping
 
 run
 
 thresholdValues
 

Static Public Attributes

 l1configForRegistration
 

Static Private Attributes

 __slots__
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

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

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

760  def __init__(self, name, ttype = 'cTAU', mapping = -1):
761  super(cTauThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='cTAU' else 2)
762  self.et = None
763  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMT]*)",name).groupdict()
764  self.suffix = mres["suffix"]
765  self.isolation = "None"
766 

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

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

781  def addThrValue(self, value, *args, **kwargs):
782  # supporting both EM and TAU
783  defargs = ThresholdValue.getDefaults(self.ttype.name)
784  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
785 
786  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
787  p = deepcopy(defargs)
788  p.update(posargs)
789  p.update(kwargs)
790 
791  thrv = ThresholdValue(self.ttype, value,
792  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
793  priority = p['priority'], name = self.name+'full')
794  if len(self.thresholdValues):
795  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
796  self.thresholdValues.append(thrv)
797  return self
798 

◆ 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 

◆ isL()

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

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

767  def isL(self):
768  return 'L' in self.suffix
769 

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

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

770  def isM(self):
771  return 'M' in self.suffix
772 

◆ isT()

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

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

773  def isT(self):
774  return 'T' in self.suffix
775 

◆ json()

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

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

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

806  def json(self):
807  confObj = odict()
808  confObj["mapping"] = self.mapping
809  confObj["isolation"] = self.isolation
810  confObj["thrValues"] = []
811  for thrV in self.thresholdValues:
812  confObj["thrValues"].append( odict([
813  ("value", thrV.value),
814  ("etamin", thrV.etamin),
815  ("etamax", thrV.etamax),
816  ("phimin", thrV.phimin),
817  ("phimax", thrV.phimax),
818  ("priority", thrV.priority)
819  ]) )
820  return confObj
821 

◆ setEt()

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

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

776  def setEt(self, et):
777  self.et = et
778  self.addThrValue(et)
779  return self
780 

◆ setIsolation()

def python.L1.Base.Thresholds.cTauThreshold.setIsolation (   self,
  isolation = "None" 
)

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

799  def setIsolation(self, isolation = "None"):
800  allowed = [ "None", "Loose", "Medium", "Tight", "Loose12", "Loose20", "Loose30", "Loose35", "Medium12", "Medium20", "Medium30", "Medium35", "Tight12", "Tight20", "Tight30", "Tight35"]
801  if isolation not in allowed:
802  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for isolation, must be one of %s", self.name, self.ttype, isolation, ', '.join(allowed) )
803  self.isolation = isolation
804  return self
805 

◆ 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.cTauThreshold.et

◆ isolation

python.L1.Base.Thresholds.cTauThreshold.isolation

◆ l1configForRegistration

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

◆ mapping

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

◆ name

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

◆ run

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

◆ suffix

python.L1.Base.Thresholds.cTauThreshold.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