◆ __init__()
def python.L1.Base.Thresholds.jTauThreshold.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
ttype = 'jTAU' , |
|
|
|
mapping = -1 |
|
) |
| |
Definition at line 696 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
696 def __init__(self, name, ttype = 'jTAU', mapping = -1):
697 super(jTauThreshold,self).
__init__(name = name, ttype = ttype, mapping = mapping, run = 3
if ttype==
'jTAU' else 2)
699 mres = re.match(
"(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMT]*)",name).groupdict()
700 self.suffix = mres[
"suffix"]
701 self.isolation =
"None"
◆ __str__()
def python.L1.Base.Thresholds.Threshold.__str__ |
( |
|
self | ) |
|
|
inherited |
◆ addThrValue()
def python.L1.Base.Thresholds.jTauThreshold.addThrValue |
( |
|
self, |
|
|
|
value, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 717 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
717 def addThrValue(self, value, *args, **kwargs):
719 defargs = ThresholdValue.getDefaults(self.ttype.name)
720 posargs = dict(zip([
'etamin',
'etamax',
'phimin',
'phimax',
'priority'], args))
723 p = deepcopy(defargs)
727 thrv = ThresholdValue(self.ttype, value,
728 etamin = p[
'etamin'], etamax=p[
'etamax'], phimin=p[
'phimin'], phimax=p[
'phimax'],
729 priority = p[
'priority'], name = self.name+
'full')
730 if len(self.thresholdValues):
731 raise RuntimeError(
"Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
732 self.thresholdValues.
append(thrv)
◆ getVarName()
def python.L1.Base.Thresholds.Threshold.getVarName |
( |
|
self | ) |
|
|
inherited |
◆ isL()
def python.L1.Base.Thresholds.jTauThreshold.isL |
( |
|
self | ) |
|
◆ isLegacy()
def python.L1.Base.Thresholds.Threshold.isLegacy |
( |
|
self | ) |
|
|
inherited |
◆ isM()
def python.L1.Base.Thresholds.jTauThreshold.isM |
( |
|
self | ) |
|
◆ isT()
def python.L1.Base.Thresholds.jTauThreshold.isT |
( |
|
self | ) |
|
◆ json()
def python.L1.Base.Thresholds.jTauThreshold.json |
( |
|
self | ) |
|
Reimplemented from python.L1.Base.Thresholds.Threshold.
Definition at line 742 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
744 confObj[
"mapping"] = self.mapping
745 confObj[
"isolation"] = self.isolation
746 confObj[
"thrValues"] = []
747 for thrV
in self.thresholdValues:
748 confObj[
"thrValues"].
append( odict([
749 (
"value", thrV.value),
750 (
"etamin", thrV.etamin),
751 (
"etamax", thrV.etamax),
752 (
"phimin", thrV.phimin),
753 (
"phimax", thrV.phimax),
754 (
"priority", thrV.priority)
◆ setEt()
def python.L1.Base.Thresholds.jTauThreshold.setEt |
( |
|
self, |
|
|
|
et |
|
) |
| |
◆ setIsolation()
def python.L1.Base.Thresholds.jTauThreshold.setIsolation |
( |
|
self, |
|
|
|
isolation = "None" |
|
) |
| |
Definition at line 735 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
735 def setIsolation(self, isolation = "None"):
736 allowed = [
"None",
"Loose",
"Medium",
"Tight" ]
737 if isolation
not in allowed:
738 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) )
739 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.jTauThreshold.et |
◆ isolation
python.L1.Base.Thresholds.jTauThreshold.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.jTauThreshold.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: