#include <CBAlgoShortestDistNonEndPoint.h>
Public Member Functions | |
CBAlgoShortestDistNonEndpoint () | |
Default constructor. More... | |
virtual | ~CBAlgoShortestDistNonEndpoint () |
Default destructor. More... | |
virtual bool | Bool (const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2) |
Overloaded (from CBoolAlgoBase) Bool function. More... | |
void | SetSquaredDistanceCut (double d) |
Method to set cut value in cm^2 for distance compatibility test. More... | |
void | SetVerbose (bool on) |
Method to set verbose mode. More... | |
void | SetDebug (bool on) |
Method to set debug mode. More... | |
void | SetMinHits (int n) |
Set Minimum Number of Hits to consider Cluster. More... | |
double | ShortestDistanceSquared (double point_x, double point_y, double start_x, double start_y, double end_x, double end_y) const |
Public Member Functions inherited from cmtool::CBoolAlgoBase | |
CBoolAlgoBase () | |
Default constructor. More... | |
virtual | ~CBoolAlgoBase () |
Default destructor. More... | |
Public Member Functions inherited from cmtool::CMAlgoBase | |
CMAlgoBase () | |
Default constructor. More... | |
virtual | ~CMAlgoBase () |
Default destructor. More... | |
virtual void | Reset () |
Function to reset the algorithm instance called within CMergeManager/CMatchManager's Reset() ... maybe implemented via child class. More... | |
virtual void | EventBegin (const std::vector< cluster::ClusterParamsAlg > &clusters) |
virtual void | EventEnd () |
virtual void | IterationBegin (const std::vector< cluster::ClusterParamsAlg > &clusters) |
virtual void | IterationEnd () |
virtual void | Report () |
void | SetAnaFile (TFile *fout) |
Setter function for an output plot TFile pointer. More... | |
Protected Attributes | |
bool | _verbose |
bool | _debug |
bool to suppress lots of output if you want More... | |
size_t | _minHits |
bool to suppress lots of output if you want More... | |
double | _min_distance_unit |
Min Number of hits for cluster to be considered. More... | |
double | _max_2D_dist2 |
minimum distance b/t start and end point of cluster to use it More... | |
Protected Attributes inherited from cmtool::CMAlgoBase | |
TFile * | _fout |
TFile pointer to an output file. More... | |
bool | _verbose |
Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager's verbosity level is >= kPerMerging. More... | |
User defined class CBAlgoShortestDistNonEndpoint ... these comments are used to generate doxygen documentation!
Definition at line 26 of file CBAlgoShortestDistNonEndPoint.h.
cmtool::CBAlgoShortestDistNonEndpoint::CBAlgoShortestDistNonEndpoint | ( | ) |
Default constructor.
Definition at line 8 of file CBAlgoShortestDistNonEndPoint.cxx.
|
inlinevirtual |
|
virtual |
Overloaded (from CBoolAlgoBase) Bool function.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 21 of file CBAlgoShortestDistNonEndPoint.cxx.
|
inline |
Method to set debug mode.
Definition at line 48 of file CBAlgoShortestDistNonEndPoint.h.
|
inline |
Set Minimum Number of Hits to consider Cluster.
Definition at line 51 of file CBAlgoShortestDistNonEndPoint.h.
|
inline |
Method to set cut value in cm^2 for distance compatibility test.
Definition at line 42 of file CBAlgoShortestDistNonEndPoint.h.
|
inlinevirtual |
Method to set verbose mode.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 45 of file CBAlgoShortestDistNonEndPoint.h.
double cmtool::CBAlgoShortestDistNonEndpoint::ShortestDistanceSquared | ( | double | point_x, |
double | point_y, | ||
double | start_x, | ||
double | start_y, | ||
double | end_x, | ||
double | end_y | ||
) | const |
Function to compute a distance between a 2D point (point_x, point_y) to a 2D finite line segment (start_x, start_y) => (end_x, end_y).
Definition at line 100 of file CBAlgoShortestDistNonEndPoint.cxx.
|
protected |
bool to suppress lots of output if you want
Definition at line 67 of file CBAlgoShortestDistNonEndPoint.h.
|
protected |
minimum distance b/t start and end point of cluster to use it
Definition at line 73 of file CBAlgoShortestDistNonEndPoint.h.
|
protected |
Min Number of hits for cluster to be considered.
Definition at line 71 of file CBAlgoShortestDistNonEndPoint.h.
|
protected |
bool to suppress lots of output if you want
Definition at line 69 of file CBAlgoShortestDistNonEndPoint.h.
|
protected |
Definition at line 65 of file CBAlgoShortestDistNonEndPoint.h.