Skip to content

Commit

Permalink
Fix the createExampleEventData to use the new IOSvc
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 3, 2024
1 parent 2199981 commit e4f3b5a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions k4ProjectTemplate/options/createExampleEventData.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,18 @@
#
from Gaudi.Configuration import INFO
from Configurables import CreateExampleEventData
from Configurables import PodioOutput
from Configurables import ApplicationMgr
from Configurables import k4DataSvc
from k4FWCore import ApplicationMgr
from k4FWCore import IOSvc

podioevent = k4DataSvc("EventDataSvc")
iosvc = IOSvc("IOSvc")
iosvc.output = "output_k4test_exampledata.root"
iosvc.outputCommands = ["keep *"]

producer = CreateExampleEventData()

out = PodioOutput("out")
out.filename = "output_k4test_exampledata.root"
out.outputCommands = ["keep *"]

ApplicationMgr(TopAlg=[producer, out],
ApplicationMgr(TopAlg=[producer],
EvtSel="NONE",
EvtMax=100,
ExtSvc=[podioevent],
ExtSvc=[iosvc],
OutputLevel=INFO,
)

0 comments on commit e4f3b5a

Please sign in to comment.