From 22a6c8090007d9a68a6d619135bb0786e4ccceb7 Mon Sep 17 00:00:00 2001 From: jokonig Date: Wed, 4 Jun 2025 13:17:30 +0200 Subject: [PATCH] [EMCAL-792] Adjust warning and error messages in case of raw errors --- Modules/EMCAL/src/RawErrorCheck.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/EMCAL/src/RawErrorCheck.cxx b/Modules/EMCAL/src/RawErrorCheck.cxx index 16d9d560b5..af70213cf6 100644 --- a/Modules/EMCAL/src/RawErrorCheck.cxx +++ b/Modules/EMCAL/src/RawErrorCheck.cxx @@ -269,13 +269,13 @@ Quality RawErrorCheck::check(std::mapGetYaxis()->GetBinLabel(errorcode + 1)) + " above threshold " + std::to_string(thresholdTotalErrBad)); + result.addFlag(FlagTypeFactory::Unknown(), "Raw error " + std::string(errorhist->GetYaxis()->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 if (result != Quality::Medium) { result = Quality::Medium; } - result.addFlag(FlagTypeFactory::Unknown(), "Raw error " + std::string(errorhist->GetYaxis()->GetBinLabel(errorcode + 1)) + " above threshold " + std::to_string(thresholdTotalErrWarn) + " not critical "); + result.addFlag(FlagTypeFactory::Unknown(), "Raw error " + std::string(errorhist->GetYaxis()->GetBinLabel(errorcode + 1)) + " below critical threshold: Call oncall at beam dump"); } } } else if (std::find(errorhists.begin(), errorhists.end(), mo->getName()) != errorhists.end()) { @@ -301,7 +301,7 @@ Quality RawErrorCheck::check(std::mapGetYaxis()->GetBinLabel(errorcode + 1)) + " above threshold " + std::to_string(threshold)); + result.addFlag(FlagTypeFactory::Unknown(), "Raw error " + std::string(errorhist->GetYaxis()->GetBinLabel(errorcode + 1)) + " above critical threshold: Call oncall!"); } } } else if (std::find(gainhists.begin(), gainhists.end(), mo->GetName()) != gainhists.end()) { @@ -390,7 +390,7 @@ void RawErrorCheck::beautify(std::shared_ptr mo, Quality checkRes // Notify about found errors on the infoLogger: if (mNotifyInfologger) { for (const auto& flag : checkResult.getFlags()) { - ILOG(Warning, Devel) << "Non-critical raw Error in " << mo->GetName() << " found: " << flag.second << " call EMCal oncall at beam dump!" << ENDM; + ILOG(Warning, Devel) << "Non-critical raw Error in " << mo->GetName() << " found: " << flag.second << ENDM; } } }