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

Public Member Functions

def __init__ (self, name, algCategory, mapping=None)
 
def getVarName (self)
 
def json (self)
 
def __str__ (self)
 
def isLegacy (self)
 
def thresholdInGeV (self)
 

Static Public Member Functions

def setMenuConfig (mc)
 

Public Attributes

 algCategory
 
 name
 
 ttype
 
 mapping
 
 run
 
 thresholdValues
 

Static Public Attributes

 multibitPattern
 
 l1configForRegistration
 

Static Private Attributes

 __slots__
 

Detailed Description

Class representing a direct input cable to the CTPCORE

In the menu it is treated like a threshold, only the naming
convention is less strict (allows"-" and can start with a number)

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

Constructor & Destructor Documentation

◆ __init__()

def python.L1.Base.Thresholds.TopoThreshold.__init__ (   self,
  name,
  algCategory,
  mapping = None 
)
@param category of type AlgCategory 

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

1206  def __init__(self, name, algCategory, mapping = None):
1207  """
1208  @param category of type AlgCategory
1209  """
1210  if ',' in name:
1211  raise RuntimeError("%s is not a valid topo output name, it should not contain a ','" % name)
1212  self.algCategory = algCategory
1213  super(TopoThreshold,self).__init__(name = name, ttype = algCategory.key, run = 2 if algCategory==AlgCategory.LEGACY else 3)
1214  if algCategory not in AlgCategory.getAllCategories():
1215  raise RuntimeError("%r is not a valid topo category" % algCategory)
1216 
1217 
1218 

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 

◆ getVarName()

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

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

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

1219  def getVarName(self):
1220  """returns a string that can be used as a varname"""
1221  return self.name.replace('.','').replace('-','_') # we can not have '.' or '-' in the variable name
1222 

◆ 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 

◆ json()

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

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

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

1223  def json(self):
1224  confObj = odict()
1225  confObj["mapping"] = self.mapping
1226  return confObj

◆ 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

◆ algCategory

python.L1.Base.Thresholds.TopoThreshold.algCategory

◆ l1configForRegistration

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

◆ mapping

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

◆ multibitPattern

python.L1.Base.Thresholds.TopoThreshold.multibitPattern
static

◆ name

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

◆ run

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

◆ 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
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