LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoStartInCone.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOSTARTINCONE_H
15 #define RECOTOOL_CBALGOSTARTINCONE_H
16 
17 #include <iostream>
20 #include <math.h>
21 
22 namespace cmtool {
23 
29 
30  public:
31 
34 
36  virtual ~CBAlgoStartInCone(){};
37 
39  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
40  const ::cluster::ClusterParamsAlg &cluster2);
41 
43  void reconfigure();
44 
46  void SetMinHits(size_t n){ _NhitsMin = n; }
47 
49  void SetMinLen(double l){ _lenMin = l; }
50 
52  void SetVerbose(bool verbosity){ _verbose = verbosity; }
53 
55  void SetDebug(bool debug){ _debug = debug; }
56 
58  void SetAngleCompat(double deg){ _angleCompat = deg; }
59 
61  void SetLengthReach(double frac){ _lengthReach = frac; }
62 
63  protected:
64 
66 
67  size_t _NhitsMin;
68  double _lenMin;
69  bool _verbose;
70  bool _debug;
71  double _angleCompat;
72  double _lengthReach;
73 
74  };
75 
76 }
77 #endif
78  // end of doxygen group
79 
Class def header for algorithm classes for CMergeManager.
void SetAngleCompat(double deg)
Set Angle Compatibility betweeen the clusters.
bool _verbose
Larger cluster which determines cone must be at least this long.
void SetVerbose(bool verbosity)
Set Verbosity of messages.
size_t _NhitsMin
Conversion factors ogtten from GeometryUtilities.
void SetMinHits(size_t n)
Set Minimum number of hits for cone-cluster.
double _lenMin
Larger cluster which determines cone must have this many hits.
void SetLengthReach(double frac)
Set Length Reach: How for out the cone extends as percent of cluster length.
DebugStuff debug
Definition: DebugStruct.cxx:4
double _lengthReach
Two clusters must have direction within this value of each other.
void SetDebug(bool debug)
Set Debug for messages.
void SetMinLen(double l)
Set Minimum number of hits for cone-cluster.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Merging Algorithm is Here.
CBAlgoStartInCone()
Default constructor.
virtual ~CBAlgoStartInCone()
Default destructor.
Char_t n[5]
void reconfigure()
Method to re-configure the instance.