Skip to content

Commit

Permalink
Fix warning on unused result
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Oct 31, 2023
1 parent a3aef6c commit 7ffc7ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Detectors/TPC/base/src/Painter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,7 @@ TH3F painter::convertCalDetToTH3(const std::vector<CalDet<DataT>>& 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;
Expand Down

0 comments on commit 7ffc7ba

Please sign in to comment.