Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:30:21

0001 from Gaudi.Configuration import *
0002 
0003 from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc
0004 
0005 podioevent   = EICDataSvc("EventDataSvc", inputs=["derp.root"], OutputLevel=DEBUG)
0006 geo_service  = GeoSvc(detectors=["topside/vertex_barrel.xml")
0007 
0008 # reads HepMC text file and write the HepMC::GenEvent to the data service
0009 from Configurables import PodioInput, ReadTestConsumer
0010 podioinput = PodioInput("PodioReader", collections=["mcparticles","FAEC_ShHits"], OutputLevel=DEBUG)
0011 checker = ReadTestConsumer()
0012 
0013 out = PodioOutput("out", filename="test.root")
0014 out.outputCommands = ["keep *"]
0015 
0016 ApplicationMgr(
0017     TopAlg = [podioinput, checker,
0018               out
0019               ],
0020     EvtSel = 'NONE',
0021     EvtMax   = 5,
0022     ExtSvc = [podioevent,geo_service],
0023     OutputLevel=DEBUG
0024  )
0025