Extracts a common baseline from waveforms. More...
#include <SharedWaveformBaseline.h>
Classes | |
struct | BaselineInfo_t |
Type for algorithm result. More... | |
struct | Params_t |
Algorithm configuration parameters. More... | |
Public Member Functions | |
SharedWaveformBaseline (Params_t params, std::string logCategory) | |
BaselineInfo_t | operator() (std::vector< raw::OpDetWaveform const * > const &waveforms) const |
Returns a common baseline from all the specified waveforms. More... | |
Params_t const & | parameters () const |
Returns the set of configuration parameters of this algorithm. More... | |
Private Attributes | |
Params_t | fParams |
Algorithm parameters. More... | |
std::string | fLogCategory |
Name of stream category for console messages. More... | |
Extracts a common baseline from waveforms.
This algorithm processes a group of waveforms at a time, and returns a common baseline for them. The baseline is learned by looking at a fixed size of the beginning of each of the waveforms, as follows:
nRMS
times the median of the RMS as maximum distance from that center in either direction;nExcessSamples
samples in a row that are outside of the acceptance range, that waveform is excluded;The parameters are specified at algorithm construction time and are contained in the Params_t
object.
Definition at line 52 of file SharedWaveformBaseline.h.
|
inline |
Definition at line 99 of file SharedWaveformBaseline.h.
auto opdet::SharedWaveformBaseline::operator() | ( | std::vector< raw::OpDetWaveform const * > const & | waveforms | ) | const |
Returns a common baseline from all the specified waveforms.
Definition at line 120 of file SharedWaveformBaseline.cxx.
|
inline |
Returns the set of configuration parameters of this algorithm.
Definition at line 109 of file SharedWaveformBaseline.h.
|
private |
Name of stream category for console messages.
Definition at line 114 of file SharedWaveformBaseline.h.
|
private |
Algorithm parameters.
Definition at line 112 of file SharedWaveformBaseline.h.