3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from TriggerMenuMT.TriggerAPI.TriggerAPI
import TriggerAPI
6 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerPeriod, TriggerType
7 from AthenaConfiguration.AutoConfigFlags
import GetFileMD
8 from DerivationFrameworkPhys.TriggerListsHelper
import read_trig_list_file
9 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
10 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
15 def __init__(self, flags, existingTriggerHelper):
17 TriggerAPI.setConfigFlags(flags)
26 hlt_menu = md.get(
'TriggerMenu', {}).
get(
'HLTChains',
None)
28 if self.
flags.Trigger.EDMVersion <= 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)
38 trigger_names_full =
list(
set(trig_bmu+extra_file))
41 for chain_name
in hlt_menu:
42 if chain_name
in trigger_names_full:
56 OutputContainerPrefix =
"TrigMatch_",
62 OutputContainerPrefix = "TrigMatch_"):
64 OutputContainerPrefix = OutputContainerPrefix,