From 3ef1f75b3f7c6315fec9b91c464e2028938e11f8 Mon Sep 17 00:00:00 2001 From: jokonig Date: Mon, 30 Mar 2026 16:31:44 +0200 Subject: [PATCH] [EMCAL-519] Add protection to not override bad qualitiy with medium - If there are several errors present, the Medium quality can override the Bad quality. This should not happen and hence a protection is added --- Modules/EMCAL/src/RawErrorCheck.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/EMCAL/src/RawErrorCheck.cxx b/Modules/EMCAL/src/RawErrorCheck.cxx index 25910aad31..3a7a3928c3 100644 --- a/Modules/EMCAL/src/RawErrorCheck.cxx +++ b/Modules/EMCAL/src/RawErrorCheck.cxx @@ -271,7 +271,7 @@ Quality RawErrorCheck::check(std::mapGetYaxis()->GetBinLabel(errorcode + 1)) + " above critical threshold: Call oncall!"); - } else if (numErrors > thresholdTotalErrWarn) { // Number of raw error exceeds the threshold but is considered to be okay. Error can be fixed at beam dump + } else if (numErrors > thresholdTotalErrWarn && result != Quality::Bad) { // Number of raw error exceeds the threshold but is considered to be okay. Error can be fixed at beam dump if (result != Quality::Medium) { result = Quality::Medium; }