fixed an index by one offset issue.

This commit is contained in:
2026-02-23 13:02:46 +01:00
parent 9ec28171c8
commit cce7366799
+1 -1
View File
@@ -205,7 +205,7 @@ void PRunBase::DeadTimeCorrection(std::vector<PDoubleVector> &histos, PUIntVecto
Int_t gf = runData->GetNumberOfGoodFrames();
std::vector<float> t_dt = runData->GetDeadTimeParam();
for (UInt_t j=0; j<histos[i].size(); j++) {
n_true = histos[i][j] / (1.0 - histos[i][j] * t_dt[histoNo[i]] / (gf * fTimeResolution));
n_true = histos[i][j] / (1.0 - histos[i][j] * t_dt[histoNo[i]-1] / (gf * fTimeResolution));
histos[i][j] = n_true;
}
}