ANITA Analysis Framework
Public Member Functions | Friends | List of all members
FilterStrategy Class Reference

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 FilterOperationgetOperation (size_t i) const
 
size_t nOperations () const
 
void process (FilteredAnitaEvent *event)
 
virtual ~FilterStrategy ()
 

Friends

class FilteredAnitaEvent
 
class NoiseMonitor
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FilterStrategy()

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

◆ ~FilterStrategy()

virtual FilterStrategy::~FilterStrategy ( )
inlinevirtual

Destructor. Will write to output file if necessary

Definition at line 35 of file FilterStrategy.h.

Member Function Documentation

◆ addOperation()

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

◆ attachFile()

void FilterStrategy::attachFile ( TFile *  outfile)

Allow attachment of outfile after construct if haven't called this->process() yet

◆ done()

void FilterStrategy::done ( )

Output a string describing the strategy. User responsible for freeing. finish

◆ getOperation()

const FilterOperation* FilterStrategy::getOperation ( size_t  i) const
inline

Retrieve the ith filter operation

Definition at line 44 of file FilterStrategy.h.

◆ nOperations()

size_t FilterStrategy::nOperations ( ) const
inline

Count the number of operations

Definition at line 47 of file FilterStrategy.h.

◆ process()

void FilterStrategy::process ( FilteredAnitaEvent event)

Process an event using this strategy


The documentation for this class was generated from the following file: