ANITA Analysis Framework
|
A filter strategy defines the sets of filters that are used and provides some introspection abilities. At its most basic level, the strategy will serially apply a set of filters. More...
#include <FilterStrategy.h>
Public Member Functions | |
void | addOperation (FilterOperation *f, bool enable_output=false) |
void | attachFile (TFile *outfile) |
void | done () |
FilterStrategy (TFile *outfile=0) | |
const FilterOperation * | getOperation (size_t i) const |
size_t | nOperations () const |
void | process (FilteredAnitaEvent *event) |
virtual | ~FilterStrategy () |
Friends | |
class | FilteredAnitaEvent |
class | NoiseMonitor |
A filter strategy defines the sets of filters that are used and provides some introspection abilities. At its most basic level, the strategy will serially apply a set of filters.
Definition at line 22 of file FilterStrategy.h.
FilterStrategy::FilterStrategy | ( | TFile * | outfile = 0 | ) |
Create a new empty strategy. If a pointer to a TFile is given, then trees may be written to that file if the operations define any output values
|
inlinevirtual |
Destructor. Will write to output file if necessary
Definition at line 35 of file FilterStrategy.h.
void FilterStrategy::addOperation | ( | FilterOperation * | f, |
bool | enable_output = false |
||
) |
Adds an operation to the strategy. This may only be done before any events are processed
void FilterStrategy::attachFile | ( | TFile * | outfile | ) |
Allow attachment of outfile after construct if haven't called this->process() yet
void FilterStrategy::done | ( | ) |
Output a string describing the strategy. User responsible for freeing. finish
|
inline |
Retrieve the ith filter operation
Definition at line 44 of file FilterStrategy.h.
|
inline |
Count the number of operations
Definition at line 47 of file FilterStrategy.h.
void FilterStrategy::process | ( | FilteredAnitaEvent * | event | ) |
Process an event using this strategy