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") )