Skip to content

Commit d523c06

Browse files
davidrohrshahor02
authored andcommitted
Reduce verbosity and throttle alarms
1 parent 92ebd1b commit d523c06

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

Detectors/CPV/reconstruction/src/FullCluster.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ char FullCluster::getNumberOfLocalMax(gsl::span<int> maxAt) const
173173
maxAt[iDigitN] = i;
174174
iDigitN++;
175175
if (iDigitN >= maxAt.size()) { // Note that size of output arrays is limited:
176-
LOG(error) << "Too many local maxima, cluster multiplicity " << mMulDigit;
176+
static int nAlarms = 0;
177+
if (nAlarms++ < 5) {
178+
LOG(alarm) << "Too many local maxima, cluster multiplicity " << mMulDigit;
179+
}
177180
return 0;
178181
}
179182
}

Detectors/MUON/MCH/Workflow/src/PreClusterFinderSpec.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ class PreClusterFinderTask
173173
break;
174174
case CHECK_NO_LEFTOVER_DIGITS_ERROR:
175175
if (digitsSizesDiffer) {
176-
LOG(error) << "some digits have been lost during the preclustering";
176+
static int nAlarms = 0;
177+
if (nAlarms++ < 5) {
178+
LOG(alarm) << "some digits have been lost during the preclustering";
179+
}
177180
}
178181
break;
179182
case CHECK_NO_LEFTOVER_DIGITS_FATAL:

Detectors/PHOS/reconstruction/src/Clusterer.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,10 @@ char Clusterer::getNumberOfLocalMax(Cluster& clu, std::vector<CluElement>& cluel
677677
mMaxAt[iDigitN] = i + iFirst;
678678
iDigitN++;
679679
if (iDigitN >= NLOCMAX) { // Note that size of output arrays is limited:
680-
LOG(error) << "Too many local maxima, cluster multiplicity " << mIsLocalMax.size();
680+
static int nAlarms = 0;
681+
if (nAlarms++ < 5) {
682+
LOG(alarm) << "Too many local maxima, cluster multiplicity " << mIsLocalMax.size();
683+
}
681684
return -2;
682685
}
683686
}

0 commit comments

Comments
 (0)