LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoAngleSeparate.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOANGLESEPARATE_H
15 #define RECOTOOL_CBALGOANGLESEPARATE_H
16 
17 #include <math.h>
18 #include <iostream>
20 
21 namespace cmtool {
28 
29  public:
30 
33 
35  virtual ~CBAlgoAngleSeparate(){};
36 
41  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
42  const ::cluster::ClusterParamsAlg &cluster2);
43 
45  void SetDebug(bool on) { _debug = on; }
46 
48  void SetMaxAngleSep(float angle) { _MaxAngle = angle; }
49 
51  void SetMinLength(float len) { _MinLen = len; }
52 
54  void SetMinHits(size_t n) { _minHits = n; }
55 
57  virtual void Reset(){}
58 
60  virtual void Report();
61 
62  protected:
63 
64  bool _debug;
65  float _MaxAngle;
66  float _MinLen;
67  size_t _minHits;
68 
69  };
70 }
71 
72 #endif
73  // end of doxygen group
74 
Class def header for algorithm classes for CMergeManager.
virtual void Report()
Function to report what&#39;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.