Skip to content

Commit

Permalink
Increase permited equal or bigger neighbor bins to relax peaksFinder …
Browse files Browse the repository at this point in the history
…conditions (#140)
  • Loading branch information
JPorron authored Oct 26, 2024
1 parent 90d1813 commit 52aeac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestRawSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ vector<pair<UShort_t, double>> TRestRawSignal::GetPeaks(double threshold, UShort
if (j != i && smoothedValue <= smoothedValues[j]) {
numGreaterEqual++;
if (numGreaterEqual >
2) { // If more than one smoothed value is greater or equal, it's not a peak
3) { // If more than one smoothed value is greater or equal, it's not a peak
isPeak = false;
break;
}
Expand Down

0 comments on commit 52aeac4

Please sign in to comment.