Skip to content

EcalCollector for fast simulation studies

Michal Mazurek requested to merge mimazure-ecal-collector into master

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

full_lhcb_stats_1

full_lhcb_stats_2

full_lhcb_stats_3

full_lhcb_stats_4

full_lhcb_stats_5

full_lhcb_stats_xy

full_lhcb_stats_xy_links

full_lhcb_stats_zy

full_lhcb_stats_zy_500

full_lhcb_stats_zy_links

Example 2: Only ECAL with a PGun scanner

only_ecal_stats_1

only_ecal_stats_2

only_ecal_stats_3

only_ecal_stats_4

only_ecal_stats_5

only_ecal_stats_xy

only_ecal_stats_xy_links

only_ecal_stats_zy

only_ecal_stats_zy_500

only_ecal_stats_zy_links

Edited by Michal Mazurek

Merge request reports

Loading