Skip to content

Commit a419b03

Browse files
authored
ITS - allow disable check for decoding error (#2442)
1 parent 8210e78 commit a419b03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Modules/ITS/src/ITSDecodingErrorCheck.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,12 @@ Quality ITSDecodingErrorCheck::check(std::map<std::string, std::shared_ptr<Monit
7979
continue;
8080
}
8181
for (int ifee = 0; ifee < h->GetNbinsX(); ifee++) {
82-
for (int ierr = 0; ierr < h->GetNbinsY() - 1; ierr++) { // last y bin is recovery flag: do not check
82+
for (int ierr = 0; ierr < h->GetNbinsY(); ierr++) {
8383

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

0 commit comments

Comments
 (0)