11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory
import CompFactory
13 from PathResolver
import PathResolver
16 """Read a text file containing a list of triggers
18 Returns the list of triggers held in the file
24 if line ==
"" or line.startswith(
"#"):
30 """Adds the trigger matching info to the slimming helper"""
32 slimmingHelper = kwargs[
'SlimmingHelper']
33 triggerList = kwargs[
'TriggerList']
34 containerPrefix = kwargs[
'OutputContainerPrefix']
38 for chain
in triggerList
41 slimmingHelper.AllVariables += outputContainers
42 for cont
in outputContainers:
43 slimmingHelper.AppendToDictionary.update(
45 cont:
"xAOD::TrigCompositeContainer",
46 cont +
"Aux":
"AOD::AuxContainerBase!",
51 slimmingHelper = kwargs[
'SlimmingHelper']
52 slimmingHelper.AppendToDictionary.update(
54 "LVL1JetRoIs":
"xAOD::JetRoIContainer",
55 "LVL1JetRoIsAux":
"xAOD::JetRoIAuxContainer"
58 slimmingHelper.AllVariables += [
"LVL1JetRoIs"]
61 slimmingHelper = kwargs[
'SlimmingHelper']
62 slimmingHelper.AppendToDictionary.update(
64 "L1_jFexSRJetRoI":
"xAOD::jFexSRJetRoIContainer",
65 "L1_jFexSRJetRoIAux":
"xAOD::jFexSRJetRoIAuxContainer"
68 slimmingHelper.AllVariables += [
"L1_jFexSRJetRoI"]
72 """Configure the common trigger matching for run 2 DAODs using the run 2 analysis formalism (matching happens during derivation)"""
77 from DerivationFrameworkTrigger.TriggerMatchingToolConfig
import TriggerMatchingToolCfg
79 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
80 outputContainerPrefix = kwargs[
'OutputContainerPrefix']
81 acc.addEventAlgo(CommonAugmentation(f
"{outputContainerPrefix}TriggerMatchingKernel",
82 AugmentationTools=[PhysCommonTriggerMatchingTool]))
87 """Covert run 2 trigger navigation data these data into the run 3 formalism (matching happens from DAOD)"""
91 if not flags.Trigger.doEDMVersionConversion:
94 from AthenaCommon.Logging
import logging
95 msg = logging.getLogger(
'TriggerMatchingCommonRun2ToRun3Cfg')
96 msg.info(
'doEDMVersionConversion is True, now scheduling conversion of Run 2 trigger navigation to Run 3')
98 from TrigNavTools.NavConverterConfig
import NavConverterCfg
101 triggerList = kwargs[
'TriggerList']
103 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import TrigNavSlimmingMTDerivationCfg
110 """Configure the common trigger matching for run 3 DAODs using the run 3 formalism (matching happens from DAOD)"""
112 if flags.Trigger.EDMVersion != 3:
113 raise ValueError(
'This configuration can only be used for Run 3 trigger navigation')
115 triggerList = kwargs[
'TriggerList']
120 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import TrigNavSlimmingMTDerivationCfg