LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoShortestDistNonEndPoint.h
Go to the documentation of this file.
1 
14 #ifndef CBALGOSHORTESTDISTNONENDPOINT_H
15 #define CBALGOSHORTESTDISTNONENDPOINT_H
16 
17 #include <iostream>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
35 
37  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
38  const ::cluster::ClusterParamsAlg &cluster2);
39 
40 
42  void SetSquaredDistanceCut(double d) { _max_2D_dist2 = d; }
43 
45  void SetVerbose(bool on) { _verbose = on; }
46 
48  void SetDebug(bool on) { _debug = on; }
49 
51  void SetMinHits(int n) { _minHits = n; }
52 
57  double ShortestDistanceSquared(double point_x, double point_y,
58  double start_x, double start_y,
59  double end_x, double end_y ) const;
60 
61 
62 
63  protected:
64 
65  bool _verbose;
66 
67  bool _debug;
68 
69  size_t _minHits;
70 
72 
73  double _max_2D_dist2;
74 
75  };
76 
77 
78 } //end namespace cluster
79 
80 #endif
81  // end of doxygen group
82 
Class def header for algorithm classes for CMergeManager.
double ShortestDistanceSquared(double point_x, double point_y, double start_x, double start_y, double end_x, double end_y) const
virtual ~CBAlgoShortestDistNonEndpoint()
Default destructor.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Overloaded (from CBoolAlgoBase) Bool function.
size_t _minHits
bool to suppress lots of output if you want
void SetMinHits(int n)
Set Minimum Number of Hits to consider Cluster.
void SetVerbose(bool on)
Method to set verbose mode.
double _min_distance_unit
Min Number of hits for cluster to be considered.
Float_t d
Definition: plot.C:237
void SetSquaredDistanceCut(double d)
Method to set cut value in cm^2 for distance compatibility test.
double _max_2D_dist2
minimum distance b/t start and end point of cluster to use it
bool _debug
bool to suppress lots of output if you want
Char_t n[5]
void SetDebug(bool on)
Method to set debug mode.