From 5bc0563e149db23da69bf0a92a7e7b478d048657 Mon Sep 17 00:00:00 2001 From: mmusich Date: Tue, 15 Feb 2022 09:34:29 +0100 Subject: [PATCH] transorm empty DetSet LogWarning into a LogError --- .../plugins/PixelThresholdClusterizer.cc | 8 +++++--- .../plugins/PixelThresholdClusterizerForBricked.cc | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc index a6bc90933634f..a521e3dab36af 100644 --- a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc +++ b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc @@ -130,9 +130,11 @@ void PixelThresholdClusterizer::clusterizeDetUnitT(const T& input, typename T::const_iterator begin = input.begin(); typename T::const_iterator end = input.end(); - // Do not bother for empty detectors - if (begin == end) - edm::LogWarning("clusterizeDetUnit()") << "No digis to clusterize"; + // this should never happen and the raw2digi does not create empty detsets + if (begin == end) { + edm::LogError("PixelThresholdClusterizer") << "@SUB=PixelThresholdClusterizer::clusterizeDetUnitT()" + << " No digis to clusterize"; + } // Set up the clusterization on this DetId. if (!setup(pixDet)) diff --git a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizerForBricked.cc b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizerForBricked.cc index d953323b45f88..11a26fff3b419 100644 --- a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizerForBricked.cc +++ b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizerForBricked.cc @@ -49,9 +49,12 @@ void PixelThresholdClusterizerForBricked::clusterizeDetUnitT(const T& input, edm::LogInfo("PixelThresholdClusterizerForBricked::clusterizeDetUnitT()"); - // Do not bother for empty detectors - if (begin == end) - edm::LogWarning("clusterizeDetUnit()") << "No digis to clusterize"; + // this should never happen and the raw2digi does not create empty detsets + if (begin == end) { + edm::LogError("PixelThresholdClusterizerForBricked") + << "@SUB=PixelThresholdClusterizerForBricked::clusterizeDetUnitT()" + << " No digis to clusterize"; + } // Set up the clusterization on this DetId. if (!setup(pixDet))