Commit 719ae83e authored by Jihee Kim's avatar Jihee Kim
Browse files

Modified python code for crystal digitization

parent 211aad01
......@@ -36,3 +36,6 @@ __pycache__/
*.py[cod]
*$py.class
.ipynb_checkpoints
# ROOT file
*.root
......@@ -4,21 +4,21 @@ 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)
podioevent = EICDataSvc("EventDataSvc", inputs=["output_emcal_electrons_npsim.root"], OutputLevel=DEBUG)
from Configurables import PodioInput
from Configurables import Jug__Digi__CrystalEndcapsDigi as CrystalEndcapsDigi
podioinput = PodioInput("PodioReader", collections=["MCParticles","EcalHits"], OutputLevel=DEBUG)
podioinput = PodioInput("PodioReader", collections=["mcparticles","EcalHits"], OutputLevel=DEBUG)
emcaldigi = CrystalEndcapsDigi(inputHitCollection="EcalHits",outputHitCollection="RawDigiEcalHits")
out = PodioOutput("out", filename="digi_emcal_electrons.root")
out = PodioOutput("out", filename="digi_emcal_electrons_npsim.root")
out.outputCommands = ["keep *"]
ApplicationMgr(
TopAlg = [podioinput, emcaldigi, out],
EvtSel = 'NONE',
EvtMax = 5,
EvtMax = 100,
ExtSvc = [podioevent],
OutputLevel=DEBUG
)
......
Markdown is supported
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