example_crystalendcapsdigi.py 886 Bytes
Newer Older
1
2
3
4
5
6
from Gaudi.Configuration import *

from GaudiKernel.DataObjectHandleBase import DataObjectHandleBase
from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc

geo_service  = GeoSvc("GeoSvc")
7
podioevent   = EICDataSvc("EventDataSvc", inputs=["output_emcal_electrons_npsim.root"], OutputLevel=DEBUG)
8
9
10
11

from Configurables import PodioInput
from Configurables import Jug__Digi__CrystalEndcapsDigi as CrystalEndcapsDigi

12
podioinput = PodioInput("PodioReader", collections=["mcparticles","EcalHits"], OutputLevel=DEBUG)
13
14
emcaldigi = CrystalEndcapsDigi(inputHitCollection="EcalHits",outputHitCollection="RawDigiEcalHits")

15
out = PodioOutput("out", filename="digi_emcal_electrons_npsim.root")
16
17
18
19
20
out.outputCommands = ["keep *"]

ApplicationMgr(
    TopAlg = [podioinput, emcaldigi, out],
    EvtSel = 'NONE',
21
    EvtMax   = 100,
22
23
24
25
    ExtSvc = [podioevent],
    OutputLevel=DEBUG
 )