Merged requested to merge ProtoMoni-FixTrackTypeToStringConv-2017 into 2017-patches
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
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.