Skip to content

Commit

Permalink
ITS - allow disable check for decoding error (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolovalle authored Sep 30, 2024
1 parent 8210e78 commit a419b03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Modules/ITS/src/ITSDecodingErrorCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ Quality ITSDecodingErrorCheck::check(std::map<std::string, std::shared_ptr<Monit
continue;
}
for (int ifee = 0; ifee < h->GetNbinsX(); ifee++) {
for (int ierr = 0; ierr < h->GetNbinsY() - 1; ierr++) { // last y bin is recovery flag: do not check
for (int ierr = 0; ierr < h->GetNbinsY(); ierr++) {

if ((doFlatCheck && h->GetBinContent(ifee, ierr + 1) == 0) || (!doFlatCheck && h->GetBinContent(ifee + 1, ierr + 1) < vDecErrorLimits[ierr])) { // ok if below threshold
if (doFlatCheck && h->GetBinContent(ifee + 1, ierr + 1) < 200) { // ok if below threshold
continue;
}
if (!doFlatCheck && (vDecErrorLimits[ierr] < 0 || h->GetBinContent(ifee + 1, ierr + 1) < vDecErrorLimits[ierr])) { // ok if below threshold or if threshold is -1
continue;
}

Expand Down

0 comments on commit a419b03

Please sign in to comment.