From 2fdd2cef06134538694dee9fa2623c32a95d23b2 Mon Sep 17 00:00:00 2001 From: francescobrivio Date: Mon, 17 Jul 2023 15:54:41 +0200 Subject: [PATCH] change LogInfo to LogWarning in OnlineBeamSpotESProducer --- .../plugins/OnlineBeamSpotESProducer.cc | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc b/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc index e113ae2db20eb..a637d0b9ba952 100644 --- a/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc +++ b/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc @@ -97,22 +97,23 @@ const BeamSpotOnlineObjects* OnlineBeamSpotESProducer::compareBS(const BeamSpotO // 3. If both are newer than the limit threshold return the BS that // passes isGoodBS and has larger sigmaZ if (diffBStime1 > limitTime && diffBStime2 > limitTime) { - edm::LogInfo("OnlineBeamSpotESProducer") << "Defaulting to fake because both payloads are too old."; + edm::LogWarning("OnlineBeamSpotESProducer") + << "Defaulting to fake (fallback to PCL) because both payloads are too old."; return nullptr; } else if (diffBStime2 > limitTime) { if (isGoodBS(bs1)) { return bs1; } else { - edm::LogInfo("OnlineBeamSpotESProducer") - << "Defaulting to fake because the legacy Beam Spot is not suitable and HLT one is too old."; + edm::LogWarning("OnlineBeamSpotESProducer") << "Defaulting to fake (fallback to PCL) because the legacy Beam " + "Spot is not suitable and HLT one is too old."; return nullptr; } } else if (diffBStime1 > limitTime) { if (isGoodBS(bs2)) { return bs2; } else { - edm::LogInfo("OnlineBeamSpotESProducer") - << "Defaulting to fake because the HLT Beam Spot is not suitable and the legacy one too old."; + edm::LogWarning("OnlineBeamSpotESProducer") << "Defaulting to fake (fallback to PCL) because the HLT Beam Spot " + "is not suitable and the legacy one too old."; return nullptr; } } else { @@ -121,8 +122,8 @@ const BeamSpotOnlineObjects* OnlineBeamSpotESProducer::compareBS(const BeamSpotO } else if (bs2->sigmaZ() >= bs1->sigmaZ() && isGoodBS(bs2)) { return bs2; } else { - edm::LogInfo("OnlineBeamSpotESProducer") - << "Defaulting to fake because despite both payloads are young enough, none has passed the fit sanity checks"; + edm::LogWarning("OnlineBeamSpotESProducer") << "Defaulting to fake (fallback to PCL) because despite both " + "payloads are young enough, none has passed the fit sanity checks"; return nullptr; } } @@ -161,7 +162,8 @@ std::shared_ptr OnlineBeamSpotESProducer::produce(const B auto legacyRec = iRecord.tryToGetRecord(); auto hltRec = iRecord.tryToGetRecord(); if (not legacyRec and not hltRec) { - edm::LogInfo("OnlineBeamSpotESProducer") << "None of the Beam Spots in ES are available! \n returning a fake one."; + edm::LogWarning("OnlineBeamSpotESProducer") + << "None of the Beam Spots in ES are available! \n returning a fake one (fallback to PCL)."; return std::shared_ptr(&fakeBS_, edm::do_nothing_deleter()); } @@ -177,8 +179,8 @@ std::shared_ptr OnlineBeamSpotESProducer::produce(const B return std::shared_ptr(best, edm::do_nothing_deleter()); } else { return std::shared_ptr(&fakeBS_, edm::do_nothing_deleter()); - edm::LogInfo("OnlineBeamSpotESProducer") - << "None of the Online BeamSpots in the ES is suitable, \n returning a fake one. "; + edm::LogWarning("OnlineBeamSpotESProducer") + << "None of the Online BeamSpots in the ES is suitable, \n returning a fake one(fallback to PCL)."; } };