EcalCollector for fast simulation studies
EcalCollector for fast simulation studies
@gcorti @adavis @kreps @bsiddi @mrama This MR adds the final piece of code that is needed to export a training dataset for any fast simulation studies on top of the previous MRs: !738 (merged) !750 (merged) !747 (merged)
FYI I'm preparing an example of a configuration file.
Configuration
This can be added as a monitoring tool when configuring the external detector package:
Example for ecal studies
from Configurables import ExternalDetectorEmbedder
external = ExternalDetectorEmbedder("EcalCollectorEmbedder")
# configuration of the sensitive detector and hit extraction here!
moni = {
'EcalCollector': {
'Type': 'EcalCollector',
'OutputLevel': DEBUG,
},
}
external.Moni = moni
# some code here
from Configurables import ApplicationMgr
ApplicationMgr().ExtSvc += [ "NTupleSvc" ]
NTupleSvc().Output = ["FILE1 DATAFILE='GaussTraining.root' TYP='ROOT' OPT='NEW'"]
Example 1: Full LHCb Upgrade geometry & minbias
Example 2: Only ECAL with a PGun scanner
Edited by Michal Mazurek