diff --git a/Examples/options/export_detector_gdml.py b/Examples/options/export_detector_gdml.py index 603050e82..22d9f0c68 100644 --- a/Examples/options/export_detector_gdml.py +++ b/Examples/options/export_detector_gdml.py @@ -1,7 +1,7 @@ import os from Gaudi.Configuration import * -from Configurables import ApplicationMgr +from k4FWCore import ApplicationMgr app = ApplicationMgr() app.TopAlg = [] app.EvtSel = 'NONE' diff --git a/Examples/options/geant_fastsim.py b/Examples/options/geant_fastsim.py index 38241118b..20af7f719 100644 --- a/Examples/options/geant_fastsim.py +++ b/Examples/options/geant_fastsim.py @@ -4,15 +4,16 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc = ['RndmGenSvc'] -from Configurables import FCCDataSvc ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -126,9 +127,7 @@ ApplicationMgr().TopAlg += [hist] -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fastsim.root" -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.Output = "out_geant_fastsim.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fastsim_tklayout.py b/Examples/options/geant_fastsim_tklayout.py index f680029f1..a22230484 100644 --- a/Examples/options/geant_fastsim_tklayout.py +++ b/Examples/options/geant_fastsim_tklayout.py @@ -2,15 +2,17 @@ from Gaudi.Configuration import * -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] # Data service -from Configurables import FCCDataSvc -podioevent = FCCDataSvc("EventDataSvc") + +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] from Configurables import MomentumRangeParticleGun @@ -112,10 +114,8 @@ THistSvc().AutoFlush = True ApplicationMgr().TopAlg += hist -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.filename = "out_geant_fastsim_tklayout.root" -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fastsim_tklayout.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim.py b/Examples/options/geant_fullsim.py index 29068b06c..3cafe2a81 100644 --- a/Examples/options/geant_fullsim.py +++ b/Examples/options/geant_fullsim.py @@ -6,15 +6,16 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc = ['RndmGenSvc'] -from Configurables import FCCDataSvc ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -77,10 +78,8 @@ geantsim.eventProvider.GenParticles.Path = "allGenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.outputCommands = ["keep *"] -out.filename = "out_geant_fullsim.root" -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fccee_cld_hepevt.py b/Examples/options/geant_fullsim_fccee_cld_hepevt.py index 0fa9d0feb..9736980eb 100644 --- a/Examples/options/geant_fullsim_fccee_cld_hepevt.py +++ b/Examples/options/geant_fullsim_fccee_cld_hepevt.py @@ -4,15 +4,17 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import FCCDataSvc + ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] # from Configurables import HepMCReader @@ -127,12 +129,9 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fullsim_fccee_cld_hepevt.root" -out.OutputLevel = DEBUG -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_fccee_cld_hepevt.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fccee_cld_pgun.py b/Examples/options/geant_fullsim_fccee_cld_pgun.py index 68311608c..e9bcfccb4 100644 --- a/Examples/options/geant_fullsim_fccee_cld_pgun.py +++ b/Examples/options/geant_fullsim_fccee_cld_pgun.py @@ -4,15 +4,17 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import FCCDataSvc + ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] from Configurables import MomentumRangeParticleGun @@ -143,11 +145,8 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fullsim_fccee_cld_pgun.root" -out.OutputLevel = DEBUG -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_fccee_cld_pgun.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fccee_idea_hepevt.py b/Examples/options/geant_fullsim_fccee_idea_hepevt.py index c7aa3798a..4cb8878fb 100644 --- a/Examples/options/geant_fullsim_fccee_idea_hepevt.py +++ b/Examples/options/geant_fullsim_fccee_idea_hepevt.py @@ -3,14 +3,15 @@ from Gaudi.Configuration import * import GaudiKernel.SystemOfUnits as units -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = "NONE" ApplicationMgr().EvtMax = 100 ApplicationMgr().OutputLevel = INFO -from Configurables import FCCDataSvc -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] # from Configurables import HepMCReader @@ -100,9 +101,7 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fullsim_fccee_idea_hepevt.root" -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_fccee_idea_hepevt.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fccee_idea_pgun.py b/Examples/options/geant_fullsim_fccee_idea_pgun.py index 7e54233df..a135c941b 100644 --- a/Examples/options/geant_fullsim_fccee_idea_pgun.py +++ b/Examples/options/geant_fullsim_fccee_idea_pgun.py @@ -3,14 +3,15 @@ from Gaudi.Configuration import * import GaudiKernel.SystemOfUnits as units -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = "NONE" ApplicationMgr().EvtMax = 100 ApplicationMgr().OutputLevel = INFO -from Configurables import FCCDataSvc -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] # DD4hep geometry service @@ -106,9 +107,7 @@ geantsim.eventProvider = pgun ApplicationMgr().TopAlg += [geantsim] -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fullsim_fccee_idea_pgun.root" -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_fccee_idea_pgun.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fccee_lar_pgun.py b/Examples/options/geant_fullsim_fccee_lar_pgun.py index 5641eac7b..8f2877afb 100644 --- a/Examples/options/geant_fullsim_fccee_lar_pgun.py +++ b/Examples/options/geant_fullsim_fccee_lar_pgun.py @@ -4,19 +4,20 @@ from GaudiKernel import PhysicalConstants as constants from GaudiKernel.SystemOfUnits import MeV, GeV, tesla -from Configurables import ApplicationMgr +from Configurables import MetadataSvc, EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().StopOnSignal = True ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import MetadataSvc ApplicationMgr().ExtSvc += [MetadataSvc()] -from Configurables import FCCDataSvc + ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] from Configurables import MomentumRangeParticleGun @@ -256,12 +257,9 @@ ################ Output -from Configurables import PodioOutput -out = PodioOutput("out") -out.outputCommands = ["keep *", "drop ECalBarrelHits", "drop HCal*", "drop ECalBarrelCellsStep*", "drop ECalBarrelPositionedHits", "drop emptyCaloCells", "drop CaloClusterCells"] -import uuid -out.filename = "output_fullCalo_SimAndDigi.root" -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.outputCommands = ["keep *", "drop ECalBarrelHits", "drop HCal*", "drop ECalBarrelCellsStep*", "drop ECalBarrelPositionedHits", "drop emptyCaloCells", "drop CaloClusterCells"] +iosvc.Output = "output_fullCalo_SimAndDigi.root" #CPU information from Configurables import AuditorSvc, ChronoAuditor @@ -275,5 +273,4 @@ resegmentEcalBarrel.AuditExecute = True createEcalBarrelCells.AuditExecute = True createHcalBarrelCells.AuditExecute = True -out.AuditExecute = True # ApplicationMgr().ExtSvc += [audsvc] diff --git a/Examples/options/geant_fullsim_fcchh_main.py b/Examples/options/geant_fullsim_fcchh_main.py index 168646556..308ed6f61 100644 --- a/Examples/options/geant_fullsim_fcchh_main.py +++ b/Examples/options/geant_fullsim_fcchh_main.py @@ -10,15 +10,17 @@ from k4_workflow_blocks.fccsw.detector_fcc_hh_main import * -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import FCCDataSvc + ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -45,10 +47,8 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.outputCommands = ["keep *"] -out.filename = "out_geant_fullsim_fcchh_main.root" -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_fcchh_main.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/geant_fullsim_fcchh_tracker.py b/Examples/options/geant_fullsim_fcchh_tracker.py index 5584d4842..d0648bb61 100644 --- a/Examples/options/geant_fullsim_fcchh_tracker.py +++ b/Examples/options/geant_fullsim_fcchh_tracker.py @@ -9,15 +9,17 @@ from k4_workflow_blocks.fccsw.detector_fcc_hh_tracker import * -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import FCCDataSvc + ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -61,10 +63,8 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.outputCommands = ["keep *"] -out.filename = "out_geant_fullsim_fcchh_tracker.root" -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.outputCommands = ["keep *"] +iosvc.Output = "out_geant_fullsim_fcchh_tracker.root" diff --git a/Examples/options/geant_fullsim_field.py b/Examples/options/geant_fullsim_field.py index fbf5d187b..b4eae42cb 100644 --- a/Examples/options/geant_fullsim_field.py +++ b/Examples/options/geant_fullsim_field.py @@ -6,15 +6,16 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc = ['RndmGenSvc'] -from Configurables import FCCDataSvc ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -89,10 +90,8 @@ geantsim.eventProvider.GenParticles.Path = "GenParticles" ApplicationMgr().TopAlg += [geantsim] -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.outputCommands = ["keep *"] -out.filename = "out_geant_fullsim_field.root" -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.outputCommands = ["keep *"] +iosvc.Output = "out_geant_fullsim_field.root" diff --git a/Examples/options/geant_fullsim_userlimits.py b/Examples/options/geant_fullsim_userlimits.py index d944f876a..34a947143 100644 --- a/Examples/options/geant_fullsim_userlimits.py +++ b/Examples/options/geant_fullsim_userlimits.py @@ -3,14 +3,16 @@ from Gaudi.Configuration import * from GaudiKernel.SystemOfUnits import mm -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO # Data service -from Configurables import FCCDataSvc -podioevent = FCCDataSvc("EventDataSvc") + +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] @@ -79,11 +81,8 @@ -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_geant_fullsim_userlimits.root" -out.outputCommands = ["keep *"] -out.OutputLevel = DEBUG -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.Output = "out_geant_fullsim_userlimits.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/material_scan.py b/Examples/options/material_scan.py index 3fdc1a5bb..5846a4695 100644 --- a/Examples/options/material_scan.py +++ b/Examples/options/material_scan.py @@ -2,7 +2,7 @@ from Gaudi.Configuration import * -from Configurables import ApplicationMgr +from k4FWCore import ApplicationMgr ApplicationMgr().EvtSel = 'None' ApplicationMgr().EvtMax = 1 ApplicationMgr().OutputLevel = INFO diff --git a/Examples/options/particle_gun.py b/Examples/options/particle_gun.py index dc96d0e1e..8cac78ef7 100644 --- a/Examples/options/particle_gun.py +++ b/Examples/options/particle_gun.py @@ -4,14 +4,16 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +#### Data service +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO -#### Data service -from Configurables import k4DataSvc -podioevent = k4DataSvc("EventDataSvc") + +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] from Configurables import MomentumRangeParticleGun @@ -35,8 +37,6 @@ hepmc_converter.GenParticles.Path="GenParticles" ApplicationMgr().TopAlg += [hepmc_converter] -from Configurables import PodioOutput -out = PodioOutput("out") -out.outputCommands = ["keep *"] -out.filename = "out_particle_gun.root" -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.outputCommands = ["keep *"] +iosvc.Output = "out_particle_gun.root" diff --git a/Examples/options/pythia.py b/Examples/options/pythia.py index 164ae84f8..7a74a9ad3 100644 --- a/Examples/options/pythia.py +++ b/Examples/options/pythia.py @@ -9,15 +9,17 @@ from GaudiKernel import SystemOfUnits as units from Gaudi.Configuration import * -from Configurables import ApplicationMgr +#### Data service +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc +=["RndmGenSvc"] -#### Data service -from Configurables import k4DataSvc -podioevent = k4DataSvc("EventDataSvc") + +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] from Configurables import GaussSmearVertex @@ -61,10 +63,8 @@ genfilter.GenParticlesFiltered.Path = "GenParticlesStable" ApplicationMgr().TopAlg += [genfilter] -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_pythia.root" -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.Output = "out_pythia.root" +iosvc.outputCommands = ["keep *"] diff --git a/Examples/options/read_podio_input.py b/Examples/options/read_podio_input.py index 841e4bb7f..1604ef8d3 100644 --- a/Examples/options/read_podio_input.py +++ b/Examples/options/read_podio_input.py @@ -1,25 +1,17 @@ from Gaudi.Configuration import * -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 -from Configurables import FCCDataSvc -podioevent = FCCDataSvc("EventDataSvc") -podioevent.input = "http://fccsw.web.cern.ch/fccsw/testsamples/out_particle_gun.root" +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] -from Configurables import PodioInput -podioinput = PodioInput("PodioReader") -podioinput.collections = ["GenParticles"] -podioinput.OutputLevel = DEBUG -ApplicationMgr().TopAlg += [podioinput] - - -from Configurables import PodioOutput -out = PodioOutput("out") -out.filename = "out_read_podio_input.root" -out.OutputLevel = DEBUG -out.outputCommands = ["keep *"] -ApplicationMgr().TopAlg += [out] +iosvc = IOSvc() +iosvc.Input = "http://fccsw.web.cern.ch/fccsw/testsamples/out_particle_gun.root" +iosvc.CollectionNames = ["GenParticles"] +iosvc.Output = "out_read_podio_input.root" +iosvc.outputCommands = ["keep *"] diff --git a/k4_workflow_blocks/fccsw/c00_01_default_applicationmanager.py b/k4_workflow_blocks/fccsw/c00_01_default_applicationmanager.py index 34f178eaa..084055d2c 100644 --- a/k4_workflow_blocks/fccsw/c00_01_default_applicationmanager.py +++ b/k4_workflow_blocks/fccsw/c00_01_default_applicationmanager.py @@ -3,13 +3,14 @@ from GaudiKernel import SystemOfUnits as units from GaudiKernel import PhysicalConstants as constants -from Configurables import ApplicationMgr +from Configurables import EventDataSvc +from k4FWCore import ApplicationMgr, IOSvc + ApplicationMgr().EvtSel = 'NONE' ApplicationMgr().EvtMax = 2 ApplicationMgr().OutputLevel = INFO ApplicationMgr().ExtSvc += ['RndmGenSvc'] -from Configurables import FCCDataSvc ## Data service -podioevent = FCCDataSvc("EventDataSvc") +podioevent = EventDataSvc("EventDataSvc") ApplicationMgr().ExtSvc += [podioevent] diff --git a/k4_workflow_blocks/fccsw/c99_01_podio_output.py b/k4_workflow_blocks/fccsw/c99_01_podio_output.py index 294551569..41fbbe626 100644 --- a/k4_workflow_blocks/fccsw/c99_01_podio_output.py +++ b/k4_workflow_blocks/fccsw/c99_01_podio_output.py @@ -1,10 +1,9 @@ from Gaudi.Configuration import * +from k4FWCore import IOSvc -# PODIO algorithm -from Configurables import PodioOutput -out = PodioOutput() -out.outputCommands = ["keep *"] -out.filename = "out_geant_fullsim.root" -ApplicationMgr().TopAlg += [out] +# PODIO output +iosvc = IOSvc() +iosvc.outputCommands = ["keep *"] +iosvc.Output = "out_geant_fullsim.root"