|
def | __init__ (self, name, threshold, nbits, classtype="EnergyThreshold") |
|
def | json (self) |
|
def | isMultiplicityAlg (self) |
|
def | configureFromThreshold (self, thr) |
|
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 236 of file TopoAlgos.py.
◆ __init__()
def python.L1.Base.TopoAlgos.XEMultiplicityAlgo.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
threshold, |
|
|
|
nbits, |
|
|
|
classtype = "EnergyThreshold" |
|
) |
| |
Definition at line 237 of file TopoAlgos.py.
237 def __init__(self, name, threshold, nbits, classtype = "EnergyThreshold"):
238 super(XEMultiplicityAlgo, self).
__init__( classtype = classtype, name=name,
239 threshold = threshold,
240 input=
None, output=
"%s" % threshold,
242 mres = re.match(
"(?P<type>[A-z]*)[0-9]*(?P<suffix>[A-z]*)",threshold).groupdict()
243 mres[
"type"] = mres[
"type"].
replace(
'SPARE',
'')
244 self.input = mres[
"type"]
245 self.flavour = mres[
"type"]
◆ __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.XEMultiplicityAlgo.json |
( |
|
self | ) |
|
Reimplemented from python.L1.Base.TopoAlgos.MultiplicityAlgo.
Definition at line 247 of file TopoAlgos.py.
248 confObj = super(XEMultiplicityAlgo, self).json()
249 confObj[
"threshold"] = self.threshold
250 confObj[
"input"] = self.input
251 confObj[
"output"] = self.outputs
252 confObj[
"flavour"] = self.flavour
253 confObj[
"nbits"] = self.nbits
◆ 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 |
◆ flavour
python.L1.Base.TopoAlgos.XEMultiplicityAlgo.flavour |
◆ generics
python.L1.Base.TopoAlgos.TopoAlgo.generics |
|
inherited |
◆ input
python.L1.Base.TopoAlgos.XEMultiplicityAlgo.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: