From 012dea74241ae169a19c2d47717726219907db55 Mon Sep 17 00:00:00 2001 From: Atul Jaiswal Date: Fri, 21 Jun 2024 20:41:02 +0200 Subject: [PATCH 1/2] Algo not found warning removed from L1TStag2uGTTiming module for the case of unprescaled/prescaled algo shortlist --- DQM/L1TMonitor/src/L1TStage2uGTTiming.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc b/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc index 9bb9706b1fc0e..7a42e508feb09 100644 --- a/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc +++ b/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc @@ -65,22 +65,14 @@ void L1TStage2uGTTiming::dqmBeginRun(edm::Run const& iRun, edm::EventSetup const for (unsigned int i = 0; i < unprescaledAlgoShortList_.size(); i++) { if (gtUtil_->getAlgBitFromName(unprescaledAlgoShortList_.at(i), algoBitUnpre_)) { unprescaledAlgoBitName_.emplace_back(unprescaledAlgoShortList_.at(i), algoBitUnpre_); - } else { - edm::LogWarning("L1TStage2uGTTiming") - << "Algo \"" << unprescaledAlgoShortList_.at(i) << "\" not found in the trigger menu " - << gtUtil_->gtTriggerMenuName() << ". Could not retrieve algo bit number."; - } + } } int algoBitPre_ = -1; for (unsigned int i = 0; i < prescaledAlgoShortList_.size(); i++) { if ((gtUtil_->getAlgBitFromName(prescaledAlgoShortList_.at(i), algoBitPre_))) { prescaledAlgoBitName_.emplace_back(prescaledAlgoShortList_.at(i), algoBitPre_); - } else { - edm::LogWarning("L1TStage2uGTTiming") - << "Algo \"" << prescaledAlgoShortList_.at(i) << "\" not found in the trigger menu " - << gtUtil_->gtTriggerMenuName() << ". Could not retrieve algo bit number."; - } + } } } From 5eb26e69da4380619fe3a35053b29a36c209a561 Mon Sep 17 00:00:00 2001 From: Atul Jaiswal Date: Sat, 29 Jun 2024 22:52:18 +0200 Subject: [PATCH 2/2] Code format corrected. Also replaced LogWarning with LogDebug messages --- DQM/L1TMonitor/src/L1TStage2uGTTiming.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc b/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc index 7a42e508feb09..8af08274daacd 100644 --- a/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc +++ b/DQM/L1TMonitor/src/L1TStage2uGTTiming.cc @@ -65,14 +65,22 @@ void L1TStage2uGTTiming::dqmBeginRun(edm::Run const& iRun, edm::EventSetup const for (unsigned int i = 0; i < unprescaledAlgoShortList_.size(); i++) { if (gtUtil_->getAlgBitFromName(unprescaledAlgoShortList_.at(i), algoBitUnpre_)) { unprescaledAlgoBitName_.emplace_back(unprescaledAlgoShortList_.at(i), algoBitUnpre_); - } + } else { + LogDebug("L1TStage2uGTTiming") << "Algo \"" << unprescaledAlgoShortList_.at(i) + << "\" not found in the trigger menu " << gtUtil_->gtTriggerMenuName() + << ". Could not retrieve algo bit number."; + } } int algoBitPre_ = -1; for (unsigned int i = 0; i < prescaledAlgoShortList_.size(); i++) { if ((gtUtil_->getAlgBitFromName(prescaledAlgoShortList_.at(i), algoBitPre_))) { prescaledAlgoBitName_.emplace_back(prescaledAlgoShortList_.at(i), algoBitPre_); - } + } else { + LogDebug("L1TStage2uGTTiming") << "Algo \"" << prescaledAlgoShortList_.at(i) + << "\" not found in the trigger menu " << gtUtil_->gtTriggerMenuName() + << ". Could not retrieve algo bit number."; + } } }