3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import Format
9 """Configures HLTNavigation(tool) -> xAODNavigation and TrigDec::TrigDecision -> xAOD::TrigDecision """
11 doL1=flags.Trigger.L1.doCTP
12 doL2=flags.Trigger.decodeHLT
13 doEF=flags.Trigger.decodeHLT
14 doHLT=flags.Trigger.decodeHLT
17 if 'HLT' not in flags.Trigger.availableRecoMetadata:
22 if 'L1' not in flags.Trigger.availableRecoMetadata:
25 if flags.Trigger.EDMVersion == 1:
31 L1ResultKey =
"" if flags.Input.Format
is Format.BS
else "Lvl1Result"
33 decMaker = CompFactory.TrigDec.TrigDecisionMaker(
'TrigDecMaker',
38 L1ResultKey = L1ResultKey)
39 acc.addEventAlgo(decMaker)
42 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg
45 from TrigConfxAOD.TrigConfxAODConfig
import getxAODConfigSvc
46 cnvTool = CompFactory.xAODMaker.TrigDecisionCnvTool(
'TrigDecisionCnvTool',
50 decCnv = CompFactory.xAODMaker.TrigDecisionCnvAlg(CnvTool = cnvTool)
51 if "EventInfo#EventInfo" not in flags.Input.TypedCollections:
52 decCnv.EventInfoKey=
""
54 acc.addEventAlgo(decCnv)
59 from SGComps.AddressRemappingConfig
import InputRenameCfg
62 aodKey =
"HLTResult_HLT" if doHLT
else "HLTResult_EF"
65 acc.addEventAlgo( CompFactory.xAODMaker.TrigNavigationCnvAlg(
'TrigNavigationCnvAlg',
67 xAODKey =
"TrigNavigation") )
73 tdm = CompFactory.TrigDec.TrigDecisionMakerMT()
74 tdm.doL1 = flags.Trigger.L1.doCTP
75 tdm.doHLT = flags.Trigger.decodeHLT
76 if flags.Input.Format
is not Format.BS:
78 tdm.BitsMakerTool = CompFactory.TriggerBitsMakerTool()
79 acc.addEventAlgo( tdm )
82 if flags.Trigger.DecisionMakerValidation.Execute:
83 tdmv = CompFactory.TrigDec.TrigDecisionMakerValidator()
84 tdmv.doL1 = flags.Trigger.L1.doCTP
85 tdmv.doHLT = flags.Trigger.decodeHLT
86 tdmv.samplingFrequency = 1
87 tdmv.errorOnFailure = flags.Trigger.DecisionMakerValidation.ErrorMode
88 tdmv.EDMVersion = flags.Trigger.EDMVersion
89 from TrigDecisionTool.TrigDecisionToolConfig
import TrigDecisionToolCfg, getRun3NavigationContainerFromInput
92 acc.addEventAlgo( tdmv )