Skip to content

Better handling of units in alignment conditions

Marco Clemencic requested to merge improve-units-handling into master

to make sure alignments units are taken into account correctly whether DD4hep is compiled with ROOT or Geant4 units, I changed the logic used in !95 (merged) to always use DD4hep units and, for backward compatibility, if there's no unit specified assume mm.

This supersedes !225 (closed), but it does not solve the change of units when crossing the DD4hep/LHCb interface.

Details:

  • make units explicit in test/ConditionsIOV examples
  • use DD4hep evaluator to parse alignment numbers
  • if alignments do not have units, assume mm (for backward compatibility)
  • add unit tests for alignment conditions parsing
  • make conditions overlay add units for alignments
Edited by Marco Clemencic

Merge request reports