Skip to content

Allow updates of Velo motion system from YAML (new conditions DB)

Marco Clemencic requested to merge 236-motion-system-from-yaml into master

To be able to update the beam spot position from the Velo Motion System parameters in the new conditions database when running an Hlt built for DetDesc, I created a small algorithm that is able to extract the information from the YAML file passed as option and override the Motion System numbers in the Detector Transient Store.

Since this is a temporary workaround and only meant to work in DetDesc builds, there are a number of limitations

  • the code is not compiled and the tests are not run for DD4hep builds
  • the implementation is not particularly efficient (some transient store accesses might be moved to initialize)
  • configuration problems that could be detected at initialization time are reported as exceptions in operator()
  • there is no integration in PyConf yet

To use Velo Motion System parameters from YAML one has to add LHCb::DetDesc::VeloMotionSystemFromYaml configured with the path to the directory containing the YAML files with motion system conditions (in Online it would be /group/online/hlt/conditions.run3/lhcb-conditions-database/Conditions/VP/Motion.yml) and declare a control flow dependency between VeloMotionSystemFromYaml and the ReserveIOV algorithm instance.

/cc @sborghi @lgrillo @cocov

Closes #236 (closed)

Edited by Marco Clemencic

Merge request reports