|
def | __init__ (self, name, run=3, tgcFlags="", mapping=-1) |
|
def | setRegion (self, det) |
|
def | setTGCFlags (self, flags) |
|
def | setRPCFlags (self, flags) |
|
def | setExclusionList (self, exclusionList) |
|
def | setThrValue (self, thr=None, ba=None, ec=None, fw=None) |
|
def | json (self) |
|
def | __str__ (self) |
|
def | getVarName (self) |
|
def | isLegacy (self) |
|
def | thresholdInGeV (self) |
|
◆ __init__()
def python.L1.Base.Thresholds.MuonThreshold.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
run = 3 , |
|
|
|
tgcFlags = "" , |
|
|
|
mapping = -1 |
|
) |
| |
◆ __str__()
def python.L1.Base.Thresholds.Threshold.__str__ |
( |
|
self | ) |
|
|
inherited |
◆ getVarName()
def python.L1.Base.Thresholds.Threshold.getVarName |
( |
|
self | ) |
|
|
inherited |
◆ isLegacy()
def python.L1.Base.Thresholds.Threshold.isLegacy |
( |
|
self | ) |
|
|
inherited |
◆ json()
def python.L1.Base.Thresholds.MuonThreshold.json |
( |
|
self | ) |
|
Reimplemented from python.L1.Base.Thresholds.Threshold.
Definition at line 590 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
592 confObj[
"mapping"] = self.mapping
594 confObj[
"thr"] = self.thr
596 confObj[
"baThr"] = self.baThr
597 confObj[
"ecThr"] = self.ecThr
598 confObj[
"fwThr"] = self.fwThr
599 confObj[
"baIdx"] = self.baIdx
600 confObj[
"ecIdx"] = self.ecIdx
601 confObj[
"fwIdx"] = self.fwIdx
602 confObj[
"tgcFlags"] = self.tgcFlags
603 confObj[
"rpcFlags"] = self.rpcFlags
604 confObj[
"region"] = self.region
605 if self.rpcExclROIList:
606 confObj[
"rpcExclROIList"] = self.rpcExclROIList
◆ setExclusionList()
def python.L1.Base.Thresholds.MuonThreshold.setExclusionList |
( |
|
self, |
|
|
|
exclusionList |
|
) |
| |
◆ setMenuConfig()
def python.L1.Base.Thresholds.Threshold.setMenuConfig |
( |
|
mc | ) |
|
|
staticinherited |
◆ setRegion()
def python.L1.Base.Thresholds.MuonThreshold.setRegion |
( |
|
self, |
|
|
|
det |
|
) |
| |
@det can be any combination of 'BA','EC',FW' or can be 'ALL' (case doesn't matter)
Definition at line 518 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
518 def setRegion(self,det):
519 """@det can be any combination of 'BA','EC',FW' or can be 'ALL' (case doesn't matter)"""
520 tmp =
set([x.strip()
for x
in det.split(
',')])
522 if not x.upper()
in [
'BA',
'EC',
'FW',
'ALL']:
523 raise RuntimeError(
"Unknown detector specification %s for muon threshold %s" % (x, self.name))
524 tmp =
sorted([x.upper()
for x
in tmp])
527 self.region =
','.
join(tmp)
◆ setRPCFlags()
def python.L1.Base.Thresholds.MuonThreshold.setRPCFlags |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ setTGCFlags()
def python.L1.Base.Thresholds.MuonThreshold.setTGCFlags |
( |
|
self, |
|
|
|
flags |
|
) |
| |
◆ setThrValue()
def python.L1.Base.Thresholds.MuonThreshold.setThrValue |
( |
|
self, |
|
|
|
thr = None , |
|
|
|
ba = None , |
|
|
|
ec = None , |
|
|
|
fw = None |
|
) |
| |
pT parameters thr, ba, ec, fw are in GeV
Specifying thr sets all: ba, ec, and fw to that value
ba, ec, fw can then be used to overwrite it for a certain region
Definition at line 545 of file Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py.
545 def setThrValue(self, thr = None, ba = None, ec = None, fw = None):
547 pT parameters thr, ba, ec, fw are in GeV
548 Specifying thr sets all: ba, ec, and fw to that value
549 ba, ec, fw can then be used to overwrite it for a certain region
561 if self.baThr
is None or self.ecThr
is None or self.fwThr
is None:
562 raise RuntimeError(
"In muon threshold %s setThrValue() at least one region is unspecified" % self.name)
567 self.baIdx = muonRoads[
"rpc"][self.baThr]
568 except KeyError
as ex:
569 log.error(
"Muon PT threshold %i does not have a defined road in the barrel", self.baThr)
570 log.error(
"Only these barrel roads are define (in L1/Config/TypeWideThresholdConfig.py): %s",
', '.
join([
'%i'%x
for x
in muonRoads[
"rpc"]]))
574 self.ecIdx = muonRoads[
"tgc"][self.ecThr]
575 except KeyError
as ex:
576 log.error(
"Muon PT threshold %i does not have a defined road in the endcap", self.ecThr)
577 log.error(
"Only these endcaps roads are define (in L1/Config/TypeWideThresholdConfig.py): %s",
', '.
join([
'%i'%x
for x
in muonRoads[
"tgc"]]))
581 self.fwIdx = muonRoads[
"tgc"][self.fwThr]
582 except KeyError
as ex:
583 log.error(
"Muon PT threshold %i does not have a defined road in the endcap", self.ecThr)
584 log.error(
"Only these endcaps roads are define (in L1/Config/TypeWideThresholdConfig.py): %s",
', '.
join([
'%i'%x
for x
in muonRoads[
"tgc"]]))
◆ thresholdInGeV()
def python.L1.Base.Thresholds.Threshold.thresholdInGeV |
( |
|
self | ) |
|
|
inherited |
◆ __slots__
python.L1.Base.Thresholds.Threshold.__slots__ |
|
staticprivateinherited |
◆ baIdx
python.L1.Base.Thresholds.MuonThreshold.baIdx |
◆ baThr
python.L1.Base.Thresholds.MuonThreshold.baThr |
◆ ecIdx
python.L1.Base.Thresholds.MuonThreshold.ecIdx |
◆ ecThr
python.L1.Base.Thresholds.MuonThreshold.ecThr |
◆ fwIdx
python.L1.Base.Thresholds.MuonThreshold.fwIdx |
◆ fwThr
python.L1.Base.Thresholds.MuonThreshold.fwThr |
◆ l1configForRegistration
python.L1.Base.Thresholds.Threshold.l1configForRegistration |
|
staticinherited |
◆ mapping
python.L1.Base.Thresholds.Threshold.mapping |
|
inherited |
◆ name
python.L1.Base.Thresholds.Threshold.name |
|
inherited |
◆ region
python.L1.Base.Thresholds.MuonThreshold.region |
◆ rpcExclROIList
python.L1.Base.Thresholds.MuonThreshold.rpcExclROIList |
◆ rpcFlags
python.L1.Base.Thresholds.MuonThreshold.rpcFlags |
◆ run
python.L1.Base.Thresholds.Threshold.run |
|
inherited |
◆ tgcFlags
python.L1.Base.Thresholds.MuonThreshold.tgcFlags |
◆ thr
python.L1.Base.Thresholds.MuonThreshold.thr |
◆ thresholdValues
python.L1.Base.Thresholds.Threshold.thresholdValues |
|
inherited |
◆ thrIdx
python.L1.Base.Thresholds.MuonThreshold.thrIdx |
◆ ttype
python.L1.Base.Thresholds.Threshold.ttype |
|
inherited |
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.