Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down