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

Public Member Functions

def __init__ (self, name, threshold, nbits, classtype)
 
def isMultiplicityAlg (self)
 
def configureFromThreshold (self, thr)
 
def json (self)
 
def __str__ (self)
 
def isSortingAlg (self)
 
def isDecisionAlg (self)
 
def setThresholds (self, thresholds)
 
def addvariable (self, name, value, selection=-1)
 
def addgeneric (self, name, value)
 
def getScaleToCountsEM (self)
 

Public Attributes

 input
 
 threshold
 
 outputs
 
 nbits
 
 classtype
 
 name
 
 generics
 
 variables
 
 menuThr
 

Static Private Attributes

 _availableVars
 

Detailed Description

Definition at line 206 of file TopoAlgos.py.

Constructor & Destructor Documentation

◆ __init__()

def python.L1.Base.TopoAlgos.EMMultiplicityAlgo.__init__ (   self,
  name,
  threshold,
  nbits,
  classtype 
)

Definition at line 207 of file TopoAlgos.py.

207  def __init__(self, name, threshold, nbits, classtype ):
208  super(EMMultiplicityAlgo, self).__init__(classtype=classtype, name=name,
209  threshold = threshold,
210  input=None, output="%s" % threshold,
211  nbits=nbits)
212  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",threshold).groupdict()
213  self.input = mres["type"].replace('SPARE','')
214 
215 # eTAU, jTAU, cTAU

Member Function Documentation

◆ __str__()

def python.L1.Base.TopoAlgos.TopoAlgo.__str__ (   self)
inherited

Definition at line 30 of file TopoAlgos.py.

30  def __str__(self):
31  return self.name
32 

◆ addgeneric()

def python.L1.Base.TopoAlgos.TopoAlgo.addgeneric (   self,
  name,
  value 
)
inherited

Definition at line 53 of file TopoAlgos.py.

53  def addgeneric(self, name, value):
54  if name in self._availableVars:
55  self.generics += [ Generic(name, value) ]
56  else:
57  raise RuntimeError("Generic parameter '%s' does not exist for algorithm %s of type %s,\navailable parameters are %r" % (name,self.name, self.classtype, self._availableVars))
58  return self
59 

◆ addvariable()

def python.L1.Base.TopoAlgos.TopoAlgo.addvariable (   self,
  name,
  value,
  selection = -1 
)
inherited

Definition at line 46 of file TopoAlgos.py.

46  def addvariable(self, name, value, selection = -1):
47  if name in self._availableVars:
48  self.variables += [ Variable(name, selection, value) ]
49  else:
50  raise RuntimeError("Variable parameter '%s' does not exist for algorithm %s of type %s,\navailable parameters are %r" % (name,self.name, self.classtype, self._availableVars))
51  return self
52 

◆ configureFromThreshold()

def python.L1.Base.TopoAlgos.MultiplicityAlgo.configureFromThreshold (   self,
  thr 
)
inherited

Reimplemented in python.L1.Base.TopoAlgos.MuMultiplicityAlgo.

Definition at line 194 of file TopoAlgos.py.

194  def configureFromThreshold(self, thr):
195  pass
196 

◆ getScaleToCountsEM()

def python.L1.Base.TopoAlgos.TopoAlgo.getScaleToCountsEM (   self)
inherited

Definition at line 65 of file TopoAlgos.py.

65  def getScaleToCountsEM(self): # legacy Et conversion!!
66  tw = self.menuThr.typeWideThresholdConfig(ThrType["EM"])
67  return 1000 // tw["resolutionMeV"]
68 

◆ isDecisionAlg()

def python.L1.Base.TopoAlgos.TopoAlgo.isDecisionAlg (   self)
inherited

Reimplemented in python.L1.Base.TopoAlgos.DecisionAlgo.

Definition at line 36 of file TopoAlgos.py.

36  def isDecisionAlg(self):
37  return False
38 

◆ isMultiplicityAlg()

def python.L1.Base.TopoAlgos.MultiplicityAlgo.isMultiplicityAlg (   self)
inherited

Reimplemented from python.L1.Base.TopoAlgos.TopoAlgo.

Definition at line 191 of file TopoAlgos.py.

191  def isMultiplicityAlg(self):
192  return True
193 

◆ isSortingAlg()

def python.L1.Base.TopoAlgos.TopoAlgo.isSortingAlg (   self)
inherited

Reimplemented in python.L1.Base.TopoAlgos.SortingAlgo.

Definition at line 33 of file TopoAlgos.py.

33  def isSortingAlg(self):
34  return False
35 

◆ json()

def python.L1.Base.TopoAlgos.MultiplicityAlgo.json (   self)
inherited

Reimplemented from python.L1.Base.TopoAlgos.TopoAlgo.

Reimplemented in python.L1.Base.TopoAlgos.XEMultiplicityAlgo.

Definition at line 197 of file TopoAlgos.py.

197  def json(self):
198  confObj = super(MultiplicityAlgo, self).json()
199  confObj["threshold"] = self.threshold
200  confObj["input"] = self.input
201  confObj["output"] = self.outputs
202  confObj["nbits"] = self.nbits
203  return confObj
204 
205 # eEM and jEM

◆ setThresholds()

def python.L1.Base.TopoAlgos.TopoAlgo.setThresholds (   self,
  thresholds 
)
inherited

Definition at line 42 of file TopoAlgos.py.

42  def setThresholds(self, thresholds):
43  # link to all thresholds in the menu need for configuration
44  self.menuThr = thresholds
45 

Member Data Documentation

◆ _availableVars

python.L1.Base.TopoAlgos.TopoAlgo._availableVars
staticprivateinherited

Definition at line 21 of file TopoAlgos.py.

◆ classtype

python.L1.Base.TopoAlgos.TopoAlgo.classtype
inherited

Definition at line 25 of file TopoAlgos.py.

◆ generics

python.L1.Base.TopoAlgos.TopoAlgo.generics
inherited

Definition at line 27 of file TopoAlgos.py.

◆ input

python.L1.Base.TopoAlgos.EMMultiplicityAlgo.input

Definition at line 213 of file TopoAlgos.py.

◆ menuThr

python.L1.Base.TopoAlgos.TopoAlgo.menuThr
inherited

Definition at line 44 of file TopoAlgos.py.

◆ name

python.L1.Base.TopoAlgos.TopoAlgo.name
inherited

Definition at line 26 of file TopoAlgos.py.

◆ nbits

python.L1.Base.TopoAlgos.MultiplicityAlgo.nbits
inherited

Definition at line 189 of file TopoAlgos.py.

◆ outputs

python.L1.Base.TopoAlgos.MultiplicityAlgo.outputs
inherited

Definition at line 188 of file TopoAlgos.py.

◆ threshold

python.L1.Base.TopoAlgos.MultiplicityAlgo.threshold
inherited

Definition at line 186 of file TopoAlgos.py.

◆ variables

python.L1.Base.TopoAlgos.TopoAlgo.variables
inherited

Definition at line 28 of file TopoAlgos.py.


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
Variable
Wrapper around a histogram which allows for some additional filling patterns and data manipulation.
Definition: Trigger/TrigCost/TrigCostAnalysis/src/Variable.h:39
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18