You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/TPC/calibration/include/TPCCalibration/FastHisto.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ template <class T>
175
175
inlinevoid FastHisto<T>::fill(constfloat val, T weight)
176
176
{
177
177
constint indexBin = findBin(val);
178
-
if (indexBin == -1) { // if no underflow/overflow bin is used, but the value should be in the underflow/overflow bin return
178
+
if ((indexBin < 0) || (indexBin > static_cast<int>(mBinCont.size()) - 1)) { // if no underflow/overflow bin is used, but the value should be in the underflow/overflow bin return
179
179
return;
180
180
}
181
181
fillBin(indexBin, weight); // fill the correct index with given weight
0 commit comments