This merge request implements the functionality requested in BMK-77. Now compatible and tested (with lhcb-gen-sim) with the recent CI changes made by @valassi.