LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoOutOfConeSeparate.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOOUTOFCONESEPARATE_H
15 #define RECOTOOL_CBALGOOUTOFCONESEPARATE_H
16 
17 #include <math.h>
18 #include <iostream>
20 
21 namespace cmtool {
28 
29  public:
30 
33 
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 SetMaxAngleFar(float angle) { _MaxAngleFar = angle; }
52 
54  void SetStartAngleFalloff(float d) { _FallOff = d; }
55 
57  void SetMinLength(float len) { _MinLen = len; }
58 
60  void SetMinHits(size_t n) { _minHits = n; }
61 
63  virtual void Reset(){}
64 
66  virtual void Report(){}
67 
68  protected:
69 
70  bool _debug;
71  float _MaxAngle;
72  float _MaxAngleFar;
73  float _MinLen;
74  float _FallOff;
75  size_t _minHits;
76 
77  };
78 }
79 
80 #endif
81  // end of doxygen group
82 
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&#39;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:237
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.