ATLAS Offline Software
Loading...
Searching...
No Matches
python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper Class Reference
Collaboration diagram for python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper:

Public Member Functions

 __init__ (self, flags, existingTriggerHelper)
 FindExtraChainsRun2 (self)
 Run2MatchAugmentationCfg (self, flags, name="PhysCommonTrigMatchExtraMuons")
 AddRun2MatchingToSlimmingHelper (self, SlimmingHelper, OutputContainerPrefix="TrigMatch_")

Public Attributes

 flags = flags
list extraChainList = []
 Now reduce the list based on the content of the first input AOD.
 existingTriggerHelper = existingTriggerHelper

Detailed Description

Definition at line 14 of file MuonsExtraTriggerConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.__init__ ( self,
flags,
existingTriggerHelper )

Definition at line 15 of file MuonsExtraTriggerConfig.py.

15 def __init__(self, flags, existingTriggerHelper):
16 self.flags = flags
17 TriggerAPI.setConfigFlags(flags)
18 self.extraChainList = []
19 self.existingTriggerHelper = existingTriggerHelper
20 self.FindExtraChainsRun2()
21

Member Function Documentation

◆ AddRun2MatchingToSlimmingHelper()

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.AddRun2MatchingToSlimmingHelper ( self,
SlimmingHelper,
OutputContainerPrefix = "TrigMatch_" )

Definition at line 61 of file MuonsExtraTriggerConfig.py.

62 OutputContainerPrefix = "TrigMatch_"):
63 AddRun2TriggerMatchingToSlimmingHelper(SlimmingHelper = SlimmingHelper,
64 OutputContainerPrefix = OutputContainerPrefix,
65 TriggerList = self.extraChainList)
66

◆ FindExtraChainsRun2()

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.FindExtraChainsRun2 ( self)

Definition at line 23 of file MuonsExtraTriggerConfig.py.

23 def FindExtraChainsRun2(self):
24
25 md = GetFileMD(self.flags.Input.Files)
26 hlt_menu = md.get('TriggerMenu', {}).get('HLTChains', None)
27
28 if self.flags.Trigger.EDMVersion <= 2:
29
30 # Trigger API for Runs 1, 2
31 allperiods = TriggerPeriod.y2015 | TriggerPeriod.y2016 | TriggerPeriod.y2017 | TriggerPeriod.y2018 | TriggerPeriod.future2e34
32 trig_bmu = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.mu_bphys, livefraction=0.8)
33
34
35 extra_file = read_trig_list_file("DerivationFrameworkMuons/run2ExtraMatchingTriggers.txt")
36
37
38 trigger_names_full = list(set(trig_bmu+extra_file))
39
40 if hlt_menu:
41 for chain_name in hlt_menu:
42 if chain_name in trigger_names_full:
43 self.extraChainList.append(chain_name)
44 else: # No means to filter based on in-file metadata
45 self.extraChainList = trigger_names_full
46
47 # remove overlap with the existing chains
48 self.extraChainList = [c for c in self.extraChainList if c not in self.existingTriggerHelper.Run2TriggerNamesNoTau and c not in self.existingTriggerHelper.Run2TriggerNamesTau ]
49
STL class.
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130

◆ Run2MatchAugmentationCfg()

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.Run2MatchAugmentationCfg ( self,
flags,
name = "PhysCommonTrigMatchExtraMuons" )

Definition at line 51 of file MuonsExtraTriggerConfig.py.

51 def Run2MatchAugmentationCfg(self, flags, name="PhysCommonTrigMatchExtraMuons"):
52 acc = ComponentAccumulator()
53 acc.merge(TriggerMatchingCommonRun2Cfg(
54 flags,
55 name = name,
56 OutputContainerPrefix = "TrigMatch_",
57 ChainNames = self.extraChainList))
58 return acc
59

Member Data Documentation

◆ existingTriggerHelper

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.existingTriggerHelper = existingTriggerHelper

Definition at line 19 of file MuonsExtraTriggerConfig.py.

◆ extraChainList

list python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.extraChainList = []

Now reduce the list based on the content of the first input AOD.

Definition at line 18 of file MuonsExtraTriggerConfig.py.

◆ flags

python.MuonsExtraTriggerConfig.MuonExtraTriggerHelper.flags = flags

Definition at line 16 of file MuonsExtraTriggerConfig.py.


The documentation for this class was generated from the following file: