![]() |
Diana Software
|
Filter to select good waveform. More...
Public Member Functions | |
| void | GetCuts (const Diana::QEvent &ev) |
| Get cuts from config file. More... | |
| bool | Filter (const Diana::QEvent &ev) |
| return true if ev passes the cuts More... | |
Private Attributes | |
| int | fnPeaks |
| double | fBaselineSlope |
Filter to select good waveform.
Removes bad pulses based on number of peaks and baseline slope. Same as MBadPulse but it allows to select at the same time good noise, signal and heater waveform.
filter GoodWaveform verbosity = info enable = true NumberOfPeaks = 1 MaxBaselineSlope = .1 endmod
MaxBaselineSlope [double = 0]:
If the parameters are left blank, no cuts are implemented. On Noise events, the filter select waveforms with NumberOfPulses=0, irrespective of the value of NumberOfPeaks. On Signal and Pulser events applies the NumberOfPulses==NumberOfPeaks selection. The BaselineSlope cut, if not left blank, is always applied. All side events are rejected (up to now). All saturated events are rejected.
Definition at line 45 of file MGoodWaveform.hh.
| bool MGoodWaveform::Filter | ( | const Diana::QEvent & | ev | ) |
return true if ev passes the cuts
Definition at line 23 of file MGoodWaveform.cc.
References QPulseParameters::fIsSaturatedHigh, QPulseParameters::fIsSaturatedLow, QEvent::Get(), QPulseInfo::GetIsNoise(), QPulseInfo::GetIsPulser(), and QPulseInfo::GetIsSignal().
| void MGoodWaveform::GetCuts | ( | const Diana::QEvent & | ev | ) |
Get cuts from config file.
Definition at line 13 of file MGoodWaveform.cc.
|
private |
Definition at line 56 of file MGoodWaveform.hh.
|
private |
Definition at line 55 of file MGoodWaveform.hh.