◆ __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)
763 mres = re.match(
"(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMT]*)",name).groupdict()
764 self.suffix = mres[
"suffix"]
765 self.isolation =
"None"
◆ __str__()
def python.L1.Base.Thresholds.Threshold.__str__ |
( |
|
self | ) |
|
|
inherited |
◆ 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):
783 defargs = ThresholdValue.getDefaults(self.ttype.name)
784 posargs = dict(zip([
'etamin',
'etamax',
'phimin',
'phimax',
'priority'], args))
787 p = deepcopy(defargs)
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)
◆ getVarName()
def python.L1.Base.Thresholds.Threshold.getVarName |
( |
|
self | ) |
|
|
inherited |
◆ isL()
def python.L1.Base.Thresholds.cTauThreshold.isL |
( |
|
self | ) |
|
◆ isLegacy()
def python.L1.Base.Thresholds.Threshold.isLegacy |
( |
|
self | ) |
|
|
inherited |
◆ isM()
def python.L1.Base.Thresholds.cTauThreshold.isM |
( |
|
self | ) |
|
◆ isT()
def python.L1.Base.Thresholds.cTauThreshold.isT |
( |
|
self | ) |
|
◆ 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.
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)
◆ setEt()
def python.L1.Base.Thresholds.cTauThreshold.setEt |
( |
|
self, |
|
|
|
et |
|
) |
| |
◆ 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
◆ setMenuConfig()
def python.L1.Base.Thresholds.Threshold.setMenuConfig |
( |
|
mc | ) |
|
|
staticinherited |
◆ thresholdInGeV()
def python.L1.Base.Thresholds.Threshold.thresholdInGeV |
( |
|
self | ) |
|
|
inherited |
◆ __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: