From e4f3b5ae561a47b75517f8cb8f6e107129f31ebd Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Wed, 3 Jul 2024 17:58:14 +0200 Subject: [PATCH] Fix the createExampleEventData to use the new IOSvc --- .../options/createExampleEventData.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/k4ProjectTemplate/options/createExampleEventData.py b/k4ProjectTemplate/options/createExampleEventData.py index 507970a..1f5175b 100644 --- a/k4ProjectTemplate/options/createExampleEventData.py +++ b/k4ProjectTemplate/options/createExampleEventData.py @@ -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, )