Skip to content

ProtoParticle Moni : Fix the conversion of the track type enum to string

Due to changes in the 2017 stack in how the track type enum to string conversion is handle, a small regression in the ProtoParticle monitoring occurred. It previously used

const auto type = std::to-string( track->type() ) + "/";

to construct the hist paths. This previously worked fine, giving paths like Long/. Now, its giving an exact representation of the enum as a number 1/ etc.

This MR fixes this by using instead

const auto type = LHCb::Track::TypesToString( track->type() ) + "/";

@adinolfi This bug is currently affecting the ProtoParticle plots in the prompt DQ. These will be fixed by this patch, once it is deployed and you update to use it.

Merge request reports

Loading