diff --git a/Modules/ITS/src/ITSDecodingErrorCheck.cxx b/Modules/ITS/src/ITSDecodingErrorCheck.cxx index 41a7ef16c9..f023b533bc 100644 --- a/Modules/ITS/src/ITSDecodingErrorCheck.cxx +++ b/Modules/ITS/src/ITSDecodingErrorCheck.cxx @@ -79,9 +79,12 @@ Quality ITSDecodingErrorCheck::check(std::mapGetNbinsX(); 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; }