Skip to content

Option to add sensitive detectors to logical volumes loaded from GDML

Dominik Muller requested to merge SensDetForGDML into master

Intended for CODEX studies. Configuration:

from Configurables import Gauss
Gauss().ReplaceWithGDML = [ {
    'volsToReplace': [''],
    'gdmlFile': 'codexb_box_shield.gdml',
    'volsToInstrument': {
        'CODEX_layer_type_0': ('GiGaSensDetTracker', 'CODEX', {})
    }
}]

Where

'volsToInstrument': {'CODEX_layer_type_0': ('GiGaSensDetTracker', 'CODEX', {})

maps the name of the logical volume name to a tuple of type and name of the sensitive detector with a dictionary to that is passed as **kwargs to the sensitive detector tool.

Adding a Get TrackerHitsAlg instance fills the MCHits into the TES.

from Configurables import GetTrackerHitsAlg
detHits = GaudiSequencer( "DetectorsHits" )

det = "Codex"
moni = GetTrackerHitsAlg(
    'Get' + det + 'Hits',
    MCHitsLocation = 'MC/' + det  + '/Hits',
    CollectionName = 'CODEX/Hits',
    Detectors = [ ]
    )
detHits.Members += [ moni ]

TODO: We need to configure the packer to include these hits as well

Merge request reports