#include <CBAlgoShortestDist.h>
Public Member Functions | |
CBAlgoShortestDist () | |
Default constructor. More... | |
virtual | ~CBAlgoShortestDist () |
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 | SetDebug (bool on) |
Method to set debug mode. More... | |
void | SetMinHits (size_t 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... | |
virtual void | SetVerbose (bool doit=true) |
Setter function for verbosity. More... | |
Protected Attributes | |
bool | _debug |
size_t | _minHits |
bool to suppress lots of output if you want More... | |
double | _wire_2_cm |
Min Number of hits for cluster to be considered. More... | |
double | _time_2_cm |
double | _min_distance_unit |
Conversion factors ogtten from GeometryUtilities. 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 CBAlgoShortestDist ... these comments are used to generate doxygen documentation!
Definition at line 26 of file CBAlgoShortestDist.h.
cmtool::CBAlgoShortestDist::CBAlgoShortestDist | ( | ) |
Default constructor.
Definition at line 10 of file CBAlgoShortestDist.cxx.
|
inlinevirtual |
|
virtual |
Overloaded (from CBoolAlgoBase) Bool function.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 33 of file CBAlgoShortestDist.cxx.
|
inline |
|
inline |
Set Minimum Number of Hits to consider Cluster.
Definition at line 48 of file CBAlgoShortestDist.h.
|
inline |
Method to set cut value in cm^2 for distance compatibility test.
Definition at line 42 of file CBAlgoShortestDist.h.
double cmtool::CBAlgoShortestDist::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 111 of file CBAlgoShortestDist.cxx.
|
protected |
Definition at line 62 of file CBAlgoShortestDist.h.
|
protected |
minimum distance b/t start and end point of cluster to use it
Definition at line 70 of file CBAlgoShortestDist.h.
|
protected |
Conversion factors ogtten from GeometryUtilities.
Definition at line 68 of file CBAlgoShortestDist.h.
|
protected |
bool to suppress lots of output if you want
Definition at line 64 of file CBAlgoShortestDist.h.
|
protected |
Definition at line 66 of file CBAlgoShortestDist.h.
|
protected |
Min Number of hits for cluster to be considered.
Definition at line 66 of file CBAlgoShortestDist.h.