LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoPolyShortestDist.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOPOLYSHORTESTDIST_H
15 #define RECOTOOL_CBALGOPOLYSHORTESTDIST_H
16 
17 #include <iostream>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
35 
39  virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
40 
44  //virtual void EventEnd();
45 
51  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
52 
56  //virtual void IterationEnd();
57 
62  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
63  const ::cluster::ClusterParamsAlg &cluster2);
64 
69  virtual void Report();
70 
72  virtual void Reset();
73 
74  //both clusters must have > this # of hits to be considered for merging
75  void SetMinNumHits(size_t nhits) { _min_hits = nhits; }
76 
77  void SetMaxNumHits(int nhits) { _max_hits = nhits; }
78 
79  void SetMinDistSquared(double dist) { _dist_sqrd_cut = dist; }
80 
81  void SetDebug(bool flag) { _debug = flag; }
82 
83  private:
84 
85 
87 
89 
90  bool _debug;
91 
92  double tmp_min_dist;
93  };
94 }
95 #endif
96  // end of doxygen group
97 
Class def header for algorithm classes for CMergeManager.
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
virtual void EventBegin(const std::vector< cluster::ClusterParamsAlg > &clusters)
CBAlgoPolyShortestDist()
Default constructor.
virtual ~CBAlgoPolyShortestDist()
Default destructor.