LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoProhibitBigClusters.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_H
15 #define RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_H
16 
19 
20 namespace cmtool {
27 
28  public:
31 
34 
35  //
36  // Author should be aware of 3 functions at least: Bool, Report, and Reset.
37  // More possibly-useful functions can be later part but commented out.
38  // All of these functions are virtual and defined in the base class.
39  //
40 
45  virtual bool Bool(const ::cluster::ClusterParamsAlg& cluster1,
46  const ::cluster::ClusterParamsAlg& cluster2);
47 
52  virtual void Report();
53 
55  virtual void Reset();
56 
60  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
61 
65  //virtual void EventEnd();
66 
72  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
73 
77  //virtual void IterationEnd();
78 
79  void SetMinHits(size_t nhits) { _min_hits = nhits; }
80 
81  protected:
82  size_t _min_hits;
83  };
84 }
85 #endif
86  // end of doxygen group
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)