fixed an index by one offset issue.
Build and Deploy Documentation / build-and-deploy (push) Successful in 21s
Build and Deploy Documentation / build-and-deploy (push) Successful in 21s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user