LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoAngleSeparate.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOANGLESEPARATE_H
15 #define RECOTOOL_CBALGOANGLESEPARATE_H
16 
19 
20 namespace cmtool {
27 
28  public:
31 
33  virtual ~CBAlgoAngleSeparate(){};
34 
39  virtual bool Bool(const ::cluster::ClusterParamsAlg& cluster1,
40  const ::cluster::ClusterParamsAlg& cluster2);
41 
43  void SetDebug(bool on) { _debug = on; }
44 
46  void SetMaxAngleSep(float angle) { _MaxAngle = angle; }
47 
49  void SetMinLength(float len) { _MinLen = len; }
50 
52  void SetMinHits(size_t n) { _minHits = n; }
53 
55  virtual void Reset() {}
56 
58  virtual void Report();
59 
60  protected:
61  bool _debug;
62  float _MaxAngle;
63  float _MinLen;
64  size_t _minHits;
65  };
66 }
67 
68 #endif
69  // end of doxygen group
Class def header for algorithm classes for CMergeManager.
virtual void Report()
Function to report what's going on per merging.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
virtual ~CBAlgoAngleSeparate()
Default destructor.
CBAlgoAngleSeparate()
Default constructor.
Char_t n[5]
void SetMaxAngleSep(float angle)
Set Max Angle Separation for separation.
void SetMinLength(float len)
Set Minimum length for "big" cluster.
void SetDebug(bool on)
Set Debug Mode on or off.
void SetMinHits(size_t n)
SetMinimum number of hits for small cluster.