From 169ff67d2685f92f18ebd1ba834263dcb6552913 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 1 Aug 2023 11:44:17 +0200 Subject: [PATCH] Add an options file to run the TransformerMultiple --- ...runExampleFunctionalTransformerMultiple.py | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/k4FWCoreTest/options/runExampleFunctionalTransformerMultiple.py diff --git a/test/k4FWCoreTest/options/runExampleFunctionalTransformerMultiple.py b/test/k4FWCoreTest/options/runExampleFunctionalTransformerMultiple.py new file mode 100644 index 00000000..b6405439 --- /dev/null +++ b/test/k4FWCoreTest/options/runExampleFunctionalTransformerMultiple.py @@ -0,0 +1,33 @@ +from Gaudi.Configuration import INFO +from Gaudi import Configurables +from Configurables import ExampleFunctionalTransformerMultiple +from Configurables import ApplicationMgr +from Configurables import k4DataSvc +from Configurables import PodioOutput +from Configurables import PodioInput + +podioevent = k4DataSvc("EventDataSvc") +podioevent.input = "output_k4test_exampledata_producer_multiple.root" + +inp = PodioInput() +inp.collections = [ + "VectorFloat", + "MCParticles", + "SimTrackerHits", + "TrackerHits", + "Tracks", +] + +out = PodioOutput("out") +out.filename = "output_k4test_exampledata_transformer_multiple.root" +# Use this to keep all the existing collections in the input file +out.outputCommands = ["drop MCParticles"] + +transformer = ExampleFunctionalTransformerMultiple("ExampleFunctionalTransformerMultiple") + +ApplicationMgr(TopAlg=[inp, transformer, out], + EvtSel="NONE", + EvtMax=10, + ExtSvc=[k4DataSvc("EventDataSvc")], + OutputLevel=INFO, + )