Skip to content
Snippets Groups Projects

Add example code to make plots from calorimeter hits

Merged Carl Gwilliam requested to merge (removed):master-22.0.29-ecal into master
5 files
+ 210
2
Compare changes
  • Side-by-side
  • Inline
Files
5
 
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'"]
Loading