#include <FilterOperation.h>
Public Member Functions | |
ConditionalFilterOperation (UniformFilterOperation *operation, bool(*condition)(FilteredAnitaEvent *ev, int ant, AnitaPol::AnitaPol_t pol), const char *condition_tag, const char *condition_description, bool own=false) | |
virtual const char * | tag () const |
virtual const char * | description () const |
virtual void | process (FilteredAnitaEvent *event) |
virtual void | processOne (AnalysisWaveform *awf, const RawAnitaHeader *header=0, int ant=0, int pol=0) |
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 () |
Protected Attributes | |
bool(* | fn )(FilteredAnitaEvent *, int, AnitaPol::AnitaPol_t) |
char * | condition_tag |
char * | condition_desc |
UniformFilterOperation * | fo |
bool | own |
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) |
A ConditionalFilterOperation only applies the passed FilterOperation if the condition is true. The tag and description are combinations of the passed operation and the condition tag and description provided.
Definition at line 75 of file FilterOperation.h.
ConditionalFilterOperation::ConditionalFilterOperation | ( | UniformFilterOperation * | operation, |
bool(*)(FilteredAnitaEvent *ev, int ant, AnitaPol::AnitaPol_t pol) | condition, | ||
const char * | condition_tag, | ||
const char * | condition_description, | ||
bool | own = false |
||
) |
Convert a UniformFilterOperation to a conditional operation. The UniformFilterOperation will only be applied to the event if the passed condition function returns true
Definition at line 19 of file FilterOperation.cc.
|
inlinevirtual |
human readable description, should provide sufficient information to understand what was done
Implements FilterOperation.
Definition at line 89 of file FilterOperation.h.
|
virtual |
operate on the FilteredAnitaEvent
Implements FilterOperation.
Definition at line 45 of file FilterOperation.cc.
|
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 FilterOperation.
Definition at line 63 of file FilterOperation.cc.
|
inlinevirtual |
short name for operation, will be used for output tree name, if there is one
Implements FilterOperation.
Definition at line 88 of file FilterOperation.h.