LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoShortestDistSmallCluster.h
Go to the documentation of this file.
1 
14 #ifndef CBALGOSHORTESTDISTSMALLCLUSTER_H
15 #define CBALGOSHORTESTDISTSMALLCLUSTER_H
16 
17 #include <iostream>
20 
21 namespace cmtool {
28 
29  public:
30 
33 
36 
38  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
39  const ::cluster::ClusterParamsAlg &cluster2);
40 
41 
43  void SetSquaredDistanceCut(double d) { _max_2D_dist2 = d; }
44 
46  void SetDebug(bool on) { _debug = on; }
47 
49  void SetMinHits(size_t n) { _minHits = n; }
50 
52  void SetMaxHits(size_t n) { _maxHits = n; }
53 
58  double ShortestDistanceSquared(double point_x, double point_y,
59  double start_x, double start_y,
60  double end_x, double end_y ) const;
61 
62 
63 
64  protected:
65 
66  bool _debug;
67 
68  size_t _minHits;
69 
70  size_t _maxHits;
71 
73 
75 
76  double _max_2D_dist2;
77 
78  };
79 
80 
81 } //end namespace cluster
82 
83 #endif
84  // end of doxygen group
85 
Class def header for algorithm classes for CMergeManager.
size_t _minHits
bool to suppress lots of output if you want
virtual ~CBAlgoShortestDistSmallCluster()
Default destructor.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Overloaded (from CBoolAlgoBase) Bool function.
void SetMaxHits(size_t n)
Set Maximum Number of Hits to consider Cluster.
double _wire_2_cm
Max Number of hits for cluster to be considered.
size_t _maxHits
Min Number of hits for cluster to be considered.
double _max_2D_dist2
minimum distance b/t start and end point of cluster to use it
Float_t d
Definition: plot.C:237
void SetSquaredDistanceCut(double d)
Method to set cut value in cm^2 for distance compatibility test.
double _min_distance_unit
Conversion factors ogtten from GeometryUtilities.
double ShortestDistanceSquared(double point_x, double point_y, double start_x, double start_y, double end_x, double end_y) const
Char_t n[5]
void SetMinHits(size_t n)
Set Minimum Number of Hits to consider Cluster.
void SetDebug(bool on)
Method to set debug mode.