#include <BasicFilters.h>
Public Types | |
enum | RemoveAction { DELETE, AVERAGE } |
Public Member Functions | |
DeglitchFilter (double threshold_above_neighbors=100, int n_neighbors=9, RemoveAction action=DELETE, int max_remove=10) | |
virtual void | processOne (AnalysisWaveform *wf, const RawAnitaHeader *=0, int ant=0, int pol=0) |
const char * | tag () const |
const char * | description () const |
Public Member Functions inherited from UniformFilterOperation | |
virtual void | process (FilteredAnitaEvent *event) |
Public Member Functions inherited from FilterOperation | |
virtual unsigned | nOutputs () const |
virtual const char * | outputName (unsigned i) const |
virtual unsigned | outputLength (unsigned i) const |
virtual void | fillOutput (unsigned i, double *v) const |
virtual | ~FilterOperation () |
Additional Inherited Members | |
Protected Member Functions inherited from FilterOperation | |
AnalysisWaveform * | getWf (FilteredAnitaEvent *ev, int i) |
AnalysisWaveform * | getWf (FilteredAnitaEvent *ev, int ant, AnitaPol::AnitaPol_t pol) |
Removes glitches
Definition at line 194 of file BasicFilters.h.
DeglitchFilter::DeglitchFilter | ( | double | threshold_above_neighbors = 100 , |
int | n_neighbors = 9 , |
||
RemoveAction | action = DELETE , |
||
int | max_remove = 10 |
||
) |
Construct the filter.
threshold_above_neighbors | the minimum abs(v) threshold above neigbhors to be considered a glitch |
n_neighbors | number of neighbors (on both sides, so up to 2 * n_neighbors + 1 are considered |
action | What to do when removing a point. If DELETE is used, will function on uneven waveform. AVERAGE will function on even waveform. |
max_remove | The maximum number of points to remove. If more than this are attempted, None are removed (since probably something silly is going on) |
Definition at line 189 of file BasicFilters.cc.
|
inlinevirtual |
human readable description, should provide sufficient information to understand what was done
Implements FilterOperation.
Definition at line 211 of file BasicFilters.h.
|
virtual |
operate on one waveform (ABL added moved this from UniformFitlerOperation so that FilterStrategy could call its this on single waveforms, and the weird argument structure is just so it matches ad sinsub)
Implements UniformFilterOperation.
Definition at line 206 of file BasicFilters.cc.
|
inlinevirtual |
short name for operation, will be used for output tree name, if there is one
Implements FilterOperation.
Definition at line 210 of file BasicFilters.h.