Skip to content

Commit

Permalink
Use k4DataSvc instead of FCCDataSvc (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt authored Oct 24, 2023
1 parent 6e590ab commit 31822c6
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from Gaudi.Configuration import *

# Data service
from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")

# DD4hep geometry service
from Configurables import GeoSvc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from Gaudi.Configuration import *

# Data service
from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")

# DD4hep geometry service
from Configurables import GeoSvc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
hcalFieldValues = [8]

from Gaudi.Configuration import *
from Configurables import ApplicationMgr,FCCDataSvc,PodioOutput
podioevent = FCCDataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")
from Configurables import ApplicationMgr,k4DataSvc,PodioOutput
podioevent = k4DataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")

#reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
hcalFieldValues = [8]

from Gaudi.Configuration import *
from Configurables import ApplicationMgr,FCCDataSvc,PodioOutput
podioevent = FCCDataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")
from Configurables import ApplicationMgr,k4DataSvc,PodioOutput
podioevent = k4DataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")

#reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
hcalFieldValues = [8]

from Gaudi.Configuration import *
from Configurables import ApplicationMgr,FCCDataSvc,PodioOutput
podioevent = FCCDataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")
from Configurables import ApplicationMgr,k4DataSvc,PodioOutput
podioevent = k4DataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +str(num_events) + "events.root")

#reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
num_events = 3

from Gaudi.Configuration import *
from Configurables import ApplicationMgr,FCCDataSvc,PodioOutput
podioevent = FCCDataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +
from Configurables import ApplicationMgr,k4DataSvc,PodioOutput
podioevent = k4DataSvc("EventDataSvc", input = "output_fullCalo_SimAndDigi_e50GeV_" +
str(num_events) + "events.root")

#reads HepMC text file and write the HepMC::GenEvent to the data service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_ecalSim_e50GeV_1events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_ecalSim_e50GeV_1events.root")

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
num_events = 3

from Gaudi.Configuration import *
from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_allCalo_reco.root")
podioevent = k4DataSvc("EventDataSvc", input="output_allCalo_reco.root")
# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
podioinput = PodioInput("PodioReader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
num_events = 3

from Gaudi.Configuration import *
from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_e50GeV_"+str(num_events)+"events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_e50GeV_"+str(num_events)+"events.root")
# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
podioinput = PodioInput("PodioReader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
hcalFwdReadoutName = "HFwdPhiEta"

from Gaudi.Configuration import *
from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

num_events = 3
ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = num_events
ApplicationMgr().OutputLevel = DEBUG

from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")
# produced with Reconstruction/RecCalorimeter/tests/options/runFullCaloSystem_SimAndDigitisation.py
podioevent.input="http://fccsw.web.cern.ch/fccsw/testsamples/output_fullCalo_SimAndDigi_e50GeV_3events.root"
ApplicationMgr().ExtSvc += [podioevent]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
num_events = 3

from Gaudi.Configuration import *
from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_pi50GeV_"+str(num_events)+"events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_pi50GeV_"+str(num_events)+"events.root")
# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
podioinput = PodioInput("PodioReader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from Gaudi.Configuration import *


from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")


############################################### Particle Gun setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc")
podioevent = k4DataSvc("EventDataSvc")

from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc", detectors=[ 'file:Detector/DetFCChhBaseline1/compact/FCChh_DectEmptyMaster.xml',
Expand Down
4 changes: 2 additions & 2 deletions RecCalorimeter/tests/options/runHcalDigitisationFlatNoise.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_hcalSim_e50GeV_eta036_10events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_hcalSim_e50GeV_eta036_10events.root")

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

podioevent = FCCDataSvc("EventDataSvc", input="output_hcalSim_e50GeV_eta036_10events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_hcalSim_e50GeV_eta036_10events.root")

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
4 changes: 2 additions & 2 deletions RecCalorimeter/tests/options/runPreparePileup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

# v01 production - min. bias events
podioevent = FCCDataSvc("EventDataSvc", input="http://fccsw.web.cern.ch/fccsw/testsamples/caloCells_minBiasEvent.root")
podioevent = k4DataSvc("EventDataSvc", input="http://fccsw.web.cern.ch/fccsw/testsamples/caloCells_minBiasEvent.root")

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
4 changes: 2 additions & 2 deletions RecFCCeeCalorimeter/tests/options/reproduceSegfault.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

from Gaudi.Configuration import *

from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
from Configurables import k4DataSvc
podioevent = k4DataSvc("EventDataSvc")

################## Particle gun setup
_pi = 3.14159
Expand Down
4 changes: 2 additions & 2 deletions RecFCCeeCalorimeter/tests/options/runCaloSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
ApplicationMgr().StopOnSignal = True
ApplicationMgr().ExtSvc += ['RndmGenSvc']

from Configurables import FCCDataSvc
from Configurables import k4DataSvc
## Data service
podioevent = FCCDataSvc("EventDataSvc")
podioevent = k4DataSvc("EventDataSvc")
ApplicationMgr().ExtSvc += [podioevent]

from Configurables import MomentumRangeParticleGun
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@


from Gaudi.Configuration import *
from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput
import sys

podioevent = FCCDataSvc("EventDataSvc")
podioevent = k4DataSvc("EventDataSvc")
podioevent.input = "output_fullCalo_SimAndDigi.root"
# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from Gaudi.Configuration import *

from Configurables import ApplicationMgr, FCCDataSvc, PodioOutput
from Configurables import ApplicationMgr, k4DataSvc, PodioOutput

# ECAL readouts
ecalBarrelReadoutName = "ECalBarrelEta"
Expand All @@ -15,7 +15,7 @@
# Number of events
num_events = 3

podioevent = FCCDataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_e50GeV_"+str(num_events)+"events.root")
podioevent = k4DataSvc("EventDataSvc", input="output_fullCalo_SimAndDigi_e50GeV_"+str(num_events)+"events.root")

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
Expand Down

0 comments on commit 31822c6

Please sign in to comment.