Commit fbbd4a74 authored by Tim Martin's avatar Tim Martin
Browse files

Add extra inputs and outputs to legacy navigation steering

parent 6c061ad6
......@@ -147,9 +147,12 @@ for i in outSequence.getAllChildren():
alg = xAODMaker__TrigDecisionCnvAlg()
alg.AODKey = "TrigDecision"
alg.xAODKey = "xTrigDecision"
alg.ExtraOutputs = [('xAOD::TrigDecision','StoreGateSvc+xTrigDecision')]
topSequence.insert(idx+1, alg)
from xAODTriggerCnv.xAODTriggerCnvConf import xAODMaker__TrigNavigationCnvAlg
topSequence.insert(idx+2, xAODMaker__TrigNavigationCnvAlg())
trigNavCnv = xAODMaker__TrigNavigationCnvAlg()
trigNavCnv.ExtraOutputs = [('xAOD::TrigNavigation','StoreGateSvc+TrigNavigation')]
topSequence.insert(idx+2, trigNavCnv)
_TriggerESDList = {}
_TriggerAODList = {}
from TrigEDMConfig.TriggerEDM import getTriggerEDMList
......
......@@ -141,6 +141,7 @@ class WritexAODTrigDecision ( object ) :
from xAODTriggerCnv.xAODTriggerCnvConf import xAODMaker__TrigDecisionCnvAlg
alg = xAODMaker__TrigDecisionCnvAlg()
alg.ExtraOutputs = [('xAOD::TrigDecision','StoreGateSvc+xTrigDecision')]
# In order for the conversion to work we need to setup the TrigDecisionTool such that it uses the old decision
ToolSvc.TrigDecisionTool.UseAODDecision = True
......@@ -154,7 +155,9 @@ class WritexAODTrigDecision ( object ) :
TopAlg += alg
from xAODTriggerCnv.xAODTriggerCnvConf import xAODMaker__TrigNavigationCnvAlg
TopAlg += xAODMaker__TrigNavigationCnvAlg()
navAlg = xAODMaker__TrigNavigationCnvAlg()
navAlg.ExtraOutputs = [('xAOD::TrigNavigation','StoreGateSvc+TrigNavigation')]
TopAlg += navAlg
log.info('TrigDecision writing to xAOD enabled')
......
......@@ -45,6 +45,7 @@ def navigationSlimming( config ):
if 'xAOD' in config:
ThinTool.ResultKey=''
ThinTool.xAODNavigationKey=config['result']
ThinTool.ExtraInputs = [('xAOD::TrigNavigation','StoreGateSvc+TrigNavigation')]
if 'result' in config:
ThinTool.ResultKey=config['result']
......
......@@ -501,6 +501,7 @@ class HLTTriggerResultGetter(Configured):
'features':edmlist})
tHLT.ActInPlace=True
slimmerHLT.ThinningTool = tHLT
slimmerHLT.ExtraInputs = [('xAOD::TrigNavigation','StoreGateSvc+TrigNavigation')]
topSequence += slimmerHLT
log.info("Configured slimming of HLT")
print(slimmerHLT.ThinningTool) # noqa: ATL901
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment