fixed an index by one offset issue.
Build and Deploy Documentation / build-and-deploy (push) Successful in 21s

This commit is contained in:
2026-02-23 13:02:46 +01:00
parent b29c7247e7
commit a005e5750f
+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;
}
}