|
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) |
|
Definition at line 206 of file TopoAlgos.py.
◆ __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,
212 mres = re.match(
"(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",threshold).groupdict()
213 self.input = mres[
"type"].
replace(
'SPARE',
'')
◆ __str__()
def python.L1.Base.TopoAlgos.TopoAlgo.__str__ |
( |
|
self | ) |
|
|
inherited |
◆ 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) ]
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))
◆ 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) ]
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))
◆ configureFromThreshold()
def python.L1.Base.TopoAlgos.MultiplicityAlgo.configureFromThreshold |
( |
|
self, |
|
|
|
thr |
|
) |
| |
|
inherited |
◆ getScaleToCountsEM()
def python.L1.Base.TopoAlgos.TopoAlgo.getScaleToCountsEM |
( |
|
self | ) |
|
|
inherited |
Definition at line 65 of file TopoAlgos.py.
65 def getScaleToCountsEM(self):
66 tw = self.menuThr.typeWideThresholdConfig(ThrType[
"EM"])
67 return 1000 // tw[
"resolutionMeV"]
◆ isDecisionAlg()
def python.L1.Base.TopoAlgos.TopoAlgo.isDecisionAlg |
( |
|
self | ) |
|
|
inherited |
◆ isMultiplicityAlg()
def python.L1.Base.TopoAlgos.MultiplicityAlgo.isMultiplicityAlg |
( |
|
self | ) |
|
|
inherited |
◆ isSortingAlg()
def python.L1.Base.TopoAlgos.TopoAlgo.isSortingAlg |
( |
|
self | ) |
|
|
inherited |
◆ json()
def python.L1.Base.TopoAlgos.MultiplicityAlgo.json |
( |
|
self | ) |
|
|
inherited |
◆ setThresholds()
def python.L1.Base.TopoAlgos.TopoAlgo.setThresholds |
( |
|
self, |
|
|
|
thresholds |
|
) |
| |
|
inherited |
Definition at line 42 of file TopoAlgos.py.
42 def setThresholds(self, thresholds):
44 self.menuThr = thresholds
◆ _availableVars
python.L1.Base.TopoAlgos.TopoAlgo._availableVars |
|
staticprivateinherited |
◆ classtype
python.L1.Base.TopoAlgos.TopoAlgo.classtype |
|
inherited |
◆ generics
python.L1.Base.TopoAlgos.TopoAlgo.generics |
|
inherited |
◆ input
python.L1.Base.TopoAlgos.EMMultiplicityAlgo.input |
◆ menuThr
python.L1.Base.TopoAlgos.TopoAlgo.menuThr |
|
inherited |
◆ name
python.L1.Base.TopoAlgos.TopoAlgo.name |
|
inherited |
◆ nbits
python.L1.Base.TopoAlgos.MultiplicityAlgo.nbits |
|
inherited |
◆ outputs
python.L1.Base.TopoAlgos.MultiplicityAlgo.outputs |
|
inherited |
◆ threshold
python.L1.Base.TopoAlgos.MultiplicityAlgo.threshold |
|
inherited |
◆ variables
python.L1.Base.TopoAlgos.TopoAlgo.variables |
|
inherited |
The documentation for this class was generated from the following file: