Skip to content

Commit

Permalink
Add an options file to run the TransformerMultiple
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Aug 1, 2023
1 parent 78b68a2 commit 169ff67
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 169ff67

Please sign in to comment.