hcalExtBarrelReadoutPhiEtaName = "ExtBarHCal_Readout_phieta"
hcalEndcapReadoutName = "HECPhiEtaReco"
hcalFwdReadoutName = "HFwdPhiEta"

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

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

from Configurables import FCCDataSvc
podioevent = FCCDataSvc("EventDataSvc")
# produced with Reconstruction/RecCalorimeter/tests/options/runFullCaloSystem_SimAndDigitisation.py
podioevent.input="root://eospublic.cern.ch//eos/experiment/fcc/hh/testsamples/output_fullCalo_SimAndDigi_e50GeV_3events.root"
ApplicationMgr().ExtSvc += [podioevent]


# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
podioinput = PodioInput()
podioinput.collections = [
  ecalBarrelCellsName,
  ecalEndcapCellsName,
  ecalFwdCellsName,
  hcalBarrelCellsName,
  hcalExtBarrelCellsName,
  hcalEndcapCellsName,
  hcalFwdCellsName,
]
Ejemplo n.º 2
0
from Gaudi.Configuration import *

from Configurables import ApplicationMgr

ApplicationMgr().EvtSel = 'NONE'
ApplicationMgr().EvtMax = 3

from Configurables import FCCDataSvc

podioevent = FCCDataSvc("EventDataSvc")
podioevent.input = "http://fccsw.web.cern.ch/fccsw/testsamples/out_particle_gun.root"
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]
hcalExtBarrelReadoutPhiEtaName = "ExtBarHCal_Readout_phieta"
hcalEndcapReadoutName = "HECPhiEtaReco"
hcalFwdReadoutName = "HFwdPhiEta"

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

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

from Configurables import FCCDataSvc
podioevent = FCCDataSvc("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]

# reads HepMC text file and write the HepMC::GenEvent to the data service
from Configurables import PodioInput
podioinput = PodioInput()
podioinput.collections = [
    ecalBarrelCellsName,
    ecalEndcapCellsName,
    ecalFwdCellsName,
    hcalBarrelCellsName,
    hcalExtBarrelCellsName,
    hcalEndcapCellsName,
    hcalFwdCellsName,
]
ApplicationMgr().TopAlg += [podioinput]