All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FilterArray.h
Go to the documentation of this file.
1 /**
2  * \file FilterArray.h
3  *
4  * \ingroup Algorithms
5  *
6  * \brief Class def header for a class FilterArray
7  *
8  * @author david caratelli
9  */
10 
11 /** \addtogroup Algorithms
12 
13  @{*/
14 #ifndef OPT0FINDER_FILTERARRAY_H
15 #define OPT0FINDER_FILTERARRAY_H
16 
17 #include "OpT0Finder/Base/BaseTPCFilter.h"
18 namespace flashana {
19  /**
20  \class FilterArray
21  Implementation of flashana::BaseTPCFilter abstract algorithm class. \n
22  It applies a _very_ simple filtering: excludes TPC objects (flashana::QCluster_t) \n
23  that contains less than specified number of points. \n
24  */
25  class FilterArray : public BaseTPCFilter{
26 
27  public:
28 
29  /// Default constructor
30  FilterArray();
31 
32  /// Default destructor
34 
35  /// Implementation of virtualfunction
37 
38  /**
39  * @brief append a filter algorithm to the array
40  */
41  void AppendFilterAlgo(flashana::BaseTPCFilter* filter) { _filter_v.push_back(filter); }
42 
43  private:
44 
45  // array of filter algorithms to be applied
46  std::vector<flashana::BaseTPCFilter*> _filter_v;
47 
48  };
49 }
50 
51 #endif
52 /** @} */ // end of doxygen group
53 
void AppendFilterAlgo(flashana::BaseTPCFilter *filter)
append a filter algorithm to the array
Definition: FilterArray.h:41
std::vector< flashmatch::QCluster_t > QClusterArray_t
Collection of 3D point clusters (one use case is TPC object representation for track(s) and shower(s)...
IDArray_t Filter(const QClusterArray_t &)
Implementation of virtualfunction.
Definition: FilterArray.cxx:11
std::vector< flashana::BaseTPCFilter * > _filter_v
Definition: FilterArray.h:46
physics filters filter
std::vector< flashmatch::ID_t > IDArray_t
Index collection.
~FilterArray()
Default destructor.
Definition: FilterArray.h:33
FilterArray()
Default constructor.
Definition: FilterArray.cxx:8