From f8f10fc965608c3eaf979e3223a28688ad0cf5b5 Mon Sep 17 00:00:00 2001
From: Ivan Razumov <iarspider@gmail.com>
Date: Wed, 20 Mar 2024 12:06:52 +0100
Subject: [PATCH] [CPP20][Analysis] Remove deprecated enum arithmetic

---
 DPGAnalysis/SiStripTools/plugins/TrackCount.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DPGAnalysis/SiStripTools/plugins/TrackCount.cc b/DPGAnalysis/SiStripTools/plugins/TrackCount.cc
index efd130d0aca72..6274b364df869 100644
--- a/DPGAnalysis/SiStripTools/plugins/TrackCount.cc
+++ b/DPGAnalysis/SiStripTools/plugins/TrackCount.cc
@@ -262,8 +262,8 @@ TrackCount::TrackCount(const edm::ParameterSet& iConfig)
   m_hnlayerphieta->GetXaxis()->SetTitle("#eta");
   m_hnlayerphieta->GetYaxis()->SetTitle("#phi");
 
-  m_halgo =
-      tfserv->make<TH1D>("algo", "Algorithm number", reco::TrackBase::algoSize, -0.5, reco::TrackBase::algoSize - 0.5);
+  m_halgo = tfserv->make<TH1D>(
+      "algo", "Algorithm number", reco::TrackBase::algoSize, -0.5, static_cast<int>(reco::TrackBase::algoSize) - 0.5);
   m_halgo->GetXaxis()->SetTitle("algorithm");
   m_halgo->GetYaxis()->SetTitle("Tracks");
   m_hphieta = tfserv->make<TH2D>("phivseta", "#phi vs #eta", netabin2d, etamin, etamax, 40, -M_PI, M_PI);