From 7ffc7ba5379bdb8c91041b2574e654287c4fa60d Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 31 Oct 2023 15:52:46 +0100 Subject: [PATCH] Fix warning on unused result --- Detectors/TPC/base/src/Painter.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Detectors/TPC/base/src/Painter.cxx b/Detectors/TPC/base/src/Painter.cxx index 7339a11e4c8e0..0f7b89b71e07a 100644 --- a/Detectors/TPC/base/src/Painter.cxx +++ b/Detectors/TPC/base/src/Painter.cxx @@ -927,9 +927,7 @@ TH3F painter::convertCalDetToTH3(const std::vector>& calDet, const const int binRBottomStart = std::clamp(histConvSum.GetYaxis()->FindBin(radiusPadCoord[0]) - 1, 1, nRBins); const int binRTopEnd = std::clamp(histConvSum.GetYaxis()->FindBin(radiusPadCoord[1]) + 1, 1, nRBins); int binPhiStart = std::min(histConvSum.GetXaxis()->FindBin(phiPadCoord[0]), histConvSum.GetXaxis()->FindBin(phiPadCoord[1])); - std::clamp(binPhiStart - 1, 1, nPhiBins); int binPhiEnd = std::max(histConvSum.GetXaxis()->FindBin(phiPadCoord[2]), histConvSum.GetXaxis()->FindBin(phiPadCoord[3])); - std::clamp(binPhiEnd + 1, 1, nPhiBins); // define boost geoemtry object polygon geoPad;