From ec9f90ba1d99eeea1c8c3f3fdae54eea1b77186a Mon Sep 17 00:00:00 2001 From: Nicolo Valle Date: Thu, 26 Sep 2024 11:17:29 +0200 Subject: [PATCH] ITS - allow disable check for decoding error --- Modules/ITS/src/ITSDecodingErrorCheck.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }