From 1d9eee110efcb85fec15599f84a457b03eec47d3 Mon Sep 17 00:00:00 2001
From: decianm <michel.de.cian@.cern.ch>
Date: Sat, 10 Jun 2023 00:23:52 +0200
Subject: [PATCH] fix range for track history histogram

---
 Tr/TrackMonitors/src/TrackMonitor.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Tr/TrackMonitors/src/TrackMonitor.cpp b/Tr/TrackMonitors/src/TrackMonitor.cpp
index ca2a48810bc..7bd5e18fe6c 100644
--- a/Tr/TrackMonitors/src/TrackMonitor.cpp
+++ b/Tr/TrackMonitors/src/TrackMonitor.cpp
@@ -309,7 +309,11 @@ private:
   mutable Gaudi::Accumulators::Histogram<1> m_trackMultiplicity{
       this, "TrackMultiplicityFine", "# tracks", {200, 0.0, 2000.}};
   mutable Gaudi::Accumulators::Histogram<1> m_type{this, "trackType", "track type", {11, -0.5, 10.5}};
-  mutable Gaudi::Accumulators::Histogram<1> m_history{this, "history", "track history", {24, -0.5, 23.5}};
+  mutable Gaudi::Accumulators::Histogram<1> m_history{
+      this,
+      "history",
+      "track history",
+      {int( LHCb::Event::Enum::Track::History::Last ), -0.5, int( LHCb::Event::Enum::Track::History::Last ) - 0.5}};
 
   mutable Gaudi::Accumulators::StatCounter<> m_NTracks{this, "#Tracks"};
 };
-- 
GitLab