Skip to content

Draft: Use VPVolumeID to convert DD4hep volume ID to sensor number

Thomas Latham requested to merge tlatham_use_vpvolumeid into master

Utilise the VPVolumeID class added in Detector!366 (merged) to convert the sensitive detector ID in the MCHit if appropriate.

In DetDesc simulation the sensDetID is the sensor number and hence is < VP::NSensors, while in DD4hep it will be the DD4hep volume ID, which is always a larger number. In the latter case the ID needs to be converted back to the sensor number.

Merge request reports