LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoOutOfConeSeparate.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOOUTOFCONESEPARATE_H
15 #define RECOTOOL_CBALGOOUTOFCONESEPARATE_H
16 
19 
20 namespace cmtool {
27 
28  public:
31 
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 SetMaxAngleFar(float angle) { _MaxAngleFar = angle; }
50 
52  void SetStartAngleFalloff(float d) { _FallOff = d; }
53 
55  void SetMinLength(float len) { _MinLen = len; }
56 
58  void SetMinHits(size_t n) { _minHits = n; }
59 
61  virtual void Reset() {}
62 
64  virtual void Report() {}
65 
66  protected:
67  bool _debug;
68  float _MaxAngle;
69  float _MaxAngleFar;
70  float _MinLen;
71  float _FallOff;
72  size_t _minHits;
73  };
74 }
75 
76 #endif
77  // end of doxygen group
Class def header for algorithm classes for CMergeManager.
void SetMinLength(float len)
Set Minimum length for "big" cluster.
virtual void Report()
Function to report what's going on per merging.
void SetStartAngleFalloff(float d)
Set Distance at which cone-acceptance angle starts falling off as 1/distance. Value should be distanc...
void SetDebug(bool on)
Set Debug Mode on or off.
void SetMaxAngleSep(float angle)
Set Max Angle Separation for separation.
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
Float_t d
Definition: plot.C:235
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
void SetMinHits(size_t n)
SetMinimum number of hits for small cluster.
void SetMaxAngleFar(float angle)
Set Max Angle Separation for separation for far away clusters.
virtual ~CBAlgoOutOfConeSeparate()
Default destructor.
Char_t n[5]
CBAlgoOutOfConeSeparate()
Default constructor.