Exemple #1
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]
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,
]
ApplicationMgr().TopAlg += [podioinput]

from Configurables import GeoSvc
geoservice = GeoSvc("GeoSvc")
geoservice.detectors=[  
  'file:Detector/DetFCChhBaseline1/compact/FCChh_DectEmptyMaster.xml',
  #'file:Detector/DetFCChhTrackerTkLayout/compact/Tracker.xml',
  'file:Detector/DetFCChhECalInclined/compact/FCChh_ECalBarrel_withCryostat.xml',
  'file:Detector/DetFCChhHCalTile/compact/FCChh_HCalBarrel_TileCal.xml',
  'file:Detector/DetFCChhHCalTile/compact/FCChh_HCalExtendedBarrel_TileCal.xml',
  'file:Detector/DetFCChhCalDiscs/compact/Endcaps_coneCryo.xml',
Exemple #3
0
from Gaudi.Configuration import *

from Configurables import K4DataSvc
podioevent = K4DataSvc("EventDataSvc")
podioevent.input = "output_k4test_exampledata.root"
from Configurables import CreateExampleEventData
producer = CreateExampleEventData()

from Configurables import PodioInput
inp = PodioInput("InputReader")
inp.collections = ["MCParticles", "SimTrackerHit"]

from Configurables import ApplicationMgr
ApplicationMgr( TopAlg=[inp],
                EvtSel="NONE",
                EvtMax=100,
                ExtSvc=[podioevent],
                OutputLevel=DEBUG,
                )


Exemple #4
0
from Gaudi.Configuration import *

algList = []

from Configurables import K4DataSvc
podioevent = K4DataSvc("EventDataSvc")
# podioevent.input = "output_k4test_exampledata.root"
podioevent.input = "/eos/experiment/fcc/ee/generation/DelphesEvents/fcc_tmp/p8_ee_Ztautau_ecm91_EvtGen_Tau2MuGamma/events_001720714.root"

from Configurables import PodioInput
inp = PodioInput("InputReader")
inp.collections = ["ReconstructedParticles"]
algList.append(inp)

from Configurables import EmptyAlg
test = EmptyAlg("My_Alg")
algList.append(test)

from Configurables import ApplicationMgr
ApplicationMgr( TopAlg=algList,
                EvtSel="NONE",
                EvtMax=100,
                ExtSvc=[podioevent],
                OutputLevel=DEBUG,
                )