Add test for conversion from dd4hep::VolumeID to Calo::CellID
The conversion from dd4hep::DDSegmentation::VolumeID
to LHCb::Detector::Calo::CellID
is implemented by the functions:
-
cellIDfromVolumeID_ECAL
, -
cellIDfromVolumeID_HCAL
,
in Detector/Calo/include/Detector/Calo/DeCalorimeter.h
.
Eventual changes to Detector/ECAL/src/ECAL_geo.cpp
or Detector/HCAL/src/HCAL_geo.cpp
could make the conversion wrong.
This MR adds the tests in Core/tests/src/test_CaloVolumID.cpp
to automatically check if the conversion works.
The Conditions used for the test (tests/ConditionsIOV/Conditions/{Ecal,Hcal}
) are copy-pasted from the current (07/02/2024) master branch of the lhcb-condition-database
Validated by
-
Core Software -
RTA -
Simulation
Edited by Daniele Manuzzi