LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoProhibitBigClusters.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_H
15 #define RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_H
16 
17 #include <iostream>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
35 
36  //
37  // Author should be aware of 3 functions at least: Bool, Report, and Reset.
38  // More possibly-useful functions can be later part but commented out.
39  // All of these functions are virtual and defined in the base class.
40  //
41 
46  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
47  const ::cluster::ClusterParamsAlg &cluster2);
48 
53  virtual void Report();
54 
56  virtual void Reset();
57 
58 
59 
63  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
64 
68  //virtual void EventEnd();
69 
75  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
76 
80  //virtual void IterationEnd();
81 
82  void SetMinHits(size_t nhits) { _min_hits = nhits; }
83 
84  protected:
85 
86  size_t _min_hits;
87 
88  };
89 }
90 #endif
91  // end of doxygen group
92 
Class def header for algorithm classes for CMergeManager.
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
virtual ~CBAlgoProhibitBigClusters()
Default destructor.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)