Commit 805118e6 authored by Jihee Kim's avatar Jihee Kim
Browse files

Added python script to run crystal digitization and simulated ROOT file.

parent 9b38c346
from Gaudi.Configuration import *
from GaudiKernel.DataObjectHandleBase import DataObjectHandleBase
from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc
geo_service = GeoSvc("GeoSvc")
podioevent = EICDataSvc("EventDataSvc", inputs=["output_emcal_electrons.root"], OutputLevel=DEBUG)
from Configurables import PodioInput
from Configurables import Jug__Digi__CrystalEndcapsDigi as CrystalEndcapsDigi
podioinput = PodioInput("PodioReader", collections=["MCParticles","EcalHits"], OutputLevel=DEBUG)
emcaldigi = CrystalEndcapsDigi(inputHitCollection="EcalHits",outputHitCollection="RawDigiEcalHits")
out = PodioOutput("out", filename="digi_emcal_electrons.root")
out.outputCommands = ["keep *"]
TopAlg = [podioinput, emcaldigi, out],
EvtSel = 'NONE',
EvtMax = 5,
ExtSvc = [podioevent],
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment