Skip to content
Snippets Groups Projects
CaloSimHitExample_jobOptions.py 413 B
Newer Older
from AthenaCommon.GlobalFlags import globalflags

globalflags.InputFormat.set_Value_and_Lock('pool')

import AthenaPoolCnvSvc.ReadAthenaPool

svcMgr.EventSelector.InputCollections = ["my.HITS.pool.root"]

alg = CfgMgr.CaloSimHitAlg()
athAlgSeq += alg

theApp.EvtMax=-1
alg.McEventCollection = "TruthEvent"

svcMgr += CfgMgr.THistSvc()
svcMgr.THistSvc.Output += ["HIST DATAFILE='myHistoFile.root' OPT='RECREATE'"]