From a419b03e3083daf55b808563f0be302dde531d4c Mon Sep 17 00:00:00 2001 From: nicolovalle <35177278+nicolovalle@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:55:22 +0200 Subject: [PATCH] ITS - allow disable check for decoding error (#2442) --- 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; }