Use VPVolumeID to convert DD4hep volume ID to sensor number
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.
This implementation allows the following processing chains:
- Gauss (DetDesc) -> Boole (DetDesc)
- Gauss (DD4hep) -> Boole (DD4hep)
- Gauss (DetDesc) -> Boole (DD4hep)
but the following is not supported:
- Gauss (DD4hep) -> Boole (DetDesc)
This point was discussed at the Simulation meeting on 15/Oct/24 and was agreed upon.