Skip to content

Commit b8c0fd1

Browse files
aphecetcheshahor02
authored andcommitted
only use adc selection if is not a no-op
1 parent f01d701 commit b8c0fd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Detectors/MUON/MCH/DigitFiltering/src/DigitFilter.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ o2::mch::DigitFilter createSelectSignal()
9696

9797
namespace o2::mch
9898
{
99-
DigitFilter createDigitFilter(int minADC, bool rejectBackground, bool selectSignal)
99+
DigitFilter createDigitFilter(uint32_t minADC, bool rejectBackground, bool selectSignal)
100100
{
101101
std::vector<DigitFilter> parts;
102102

103-
parts.emplace_back(createMinAdcCut(minADC));
103+
if (minADC > 0) {
104+
parts.emplace_back(createMinAdcCut(minADC));
105+
}
104106
if (rejectBackground) {
105107
parts.emplace_back(createRejectBackground());
106108
}

0 commit comments

Comments
 (0)