From f88e13801bcc08f0c0cdf806c045bb5fe7a0abd9 Mon Sep 17 00:00:00 2001 From: Tadej Novak <tadej.novak@cern.ch> Date: Wed, 23 Dec 2020 14:10:43 +0100 Subject: [PATCH] CP algs: Configure CutFlowSvc in tests when needed --- .../share/EventAlgorithmsTest_jobOptions.py | 4 ++++ .../share/OverlapAlgorithmsTest_jobOptions.py | 4 ++++ .../share/TriggerAlgorithmsTest_jobOptions.py | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/EventAlgorithmsTest_jobOptions.py b/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/EventAlgorithmsTest_jobOptions.py index 6fd7280dd7e..f34b58e95ca 100644 --- a/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/EventAlgorithmsTest_jobOptions.py +++ b/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/EventAlgorithmsTest_jobOptions.py @@ -27,6 +27,10 @@ theApp.EvtMax = 500 testFile = os.getenv ( inputfile[dataType] ) svcMgr.EventSelector.InputCollections = [testFile] +# Needed for filtering, Athena only for now +from EventBookkeeperTools.CutFlowHelpers import CreateCutFlowSvc +CreateCutFlowSvc(svcName="CutFlowSvc", seq=athAlgSeq, addMetaDataToAllOutputFiles=False) + from AsgAnalysisAlgorithms.AsgAnalysisAlgorithmsTest import makeEventAlgorithmsSequence algSeq = makeEventAlgorithmsSequence (dataType) print( algSeq ) # For debugging diff --git a/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/OverlapAlgorithmsTest_jobOptions.py b/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/OverlapAlgorithmsTest_jobOptions.py index 607ba788507..cbfed275941 100644 --- a/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/OverlapAlgorithmsTest_jobOptions.py +++ b/PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/share/OverlapAlgorithmsTest_jobOptions.py @@ -27,6 +27,10 @@ theApp.EvtMax = 500 testFile = os.getenv ( inputfile[dataType] ) svcMgr.EventSelector.InputCollections = [testFile] +# Needed for filtering, Athena only for now +from EventBookkeeperTools.CutFlowHelpers import CreateCutFlowSvc +CreateCutFlowSvc(svcName="CutFlowSvc", seq=athAlgSeq, addMetaDataToAllOutputFiles=False) + from AsgAnalysisAlgorithms.AsgAnalysisAlgorithmsTest import makeOverlapSequence algSeq = makeOverlapSequence (dataType) print( algSeq ) # For debugging diff --git a/PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/share/TriggerAlgorithmsTest_jobOptions.py b/PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/share/TriggerAlgorithmsTest_jobOptions.py index 8bd9e31e5eb..ce9fee129b9 100644 --- a/PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/share/TriggerAlgorithmsTest_jobOptions.py +++ b/PhysicsAnalysis/Algorithms/TriggerAnalysisAlgorithms/share/TriggerAlgorithmsTest_jobOptions.py @@ -27,6 +27,10 @@ theApp.EvtMax = 500 testFile = os.getenv ( inputfile[dataType] ) svcMgr.EventSelector.InputCollections = [testFile] +# Needed for filtering, Athena only for now +from EventBookkeeperTools.CutFlowHelpers import CreateCutFlowSvc +CreateCutFlowSvc(svcName="CutFlowSvc", seq=athAlgSeq, addMetaDataToAllOutputFiles=False) + from TriggerAnalysisAlgorithms.TriggerAnalysisAlgorithmsTest import makeSequence algSeq = makeSequence (dataType) print (algSeq) # For debugging -- GitLab