QCoincidenceScanner Class Reference

List of all members.


Detailed Description

scan QCoincidences searching for those that match particular patterns

Author:
Sergio Di Domizio
This class simply run specific coincidence filters on a list of coincidences. It only implements a filtering mechanism without making any physics assumptions. Such assumptions are made into specific filters.

Public Member Functions

 QCoincidenceScanner ()
 constructor
virtual ~QCoincidenceScanner ()
 destructor
void AddFilter (const QCoincidenceFilter *filter)
 register filter into chain
std::list< QCoincidenceFilter (const std::list< QCoincidence > &coincList) const
 apply registered filters to a list of coincidences

Private Attributes

std::list< const
QCoincidenceFilter * > 
fFilters

Member Function Documentation

void QCoincidenceScanner::AddFilter ( const QCoincidenceFilter filter  )  [inline]

register filter into chain

Parameters:
filter pointer to an object inheriting from QCoincidenceFilter
The new filter is added at the end of the existing list of registered filters

Referenced by MCoincidenceTester::Done(), and MCoincidenceFlagger::Done().

std::list< QCoincidence > QCoincidenceScanner::Filter ( const std::list< QCoincidence > &  coincList  )  const

apply registered filters to a list of coincidences

Parameters:
coincList list of coincidences the filters will be applied to
Returns:
list of coincidences passing filters
All the coincidences in the input list are processed by the first filter. The list of coincidence that pass the first filter is then given as input to the second filter, and so on till the last filter.

Referenced by MCoincidenceTester::Done(), and MCoincidenceFlagger::Done().


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

Generated on Tue Nov 16 10:50:04 2010 for CUORE Software by  doxygen 1.5.6