#include <CBAlgoCenterOfMassSmall.h>
Public Member Functions | |
CBAlgoCenterOfMassSmall () | |
Default constructor. More... | |
virtual | ~CBAlgoCenterOfMassSmall () |
Default destructor. More... | |
virtual bool | Bool (const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2) |
virtual void | Reset () |
Function to reset the algorithm instance ... maybe implemented via child class. More... | |
virtual void | Report () |
Function to report what's going on per merging iteration. More... | |
void | SetDebug (bool on) |
Function to set Debug mode of output. More... | |
void | SetMaxHitsSmallClus (size_t n) |
Function to set Max hits for small clsuters. More... | |
void | SetMaxDistance (double d) |
Function to set Max Distance for COM to be from start-end. More... | |
void | SetMaxCOMDistance (double d) |
Function to set Max Distance between COMs. More... | |
void | UseCOMInPoly (bool on) |
Use COM in Poly algo to decide merging. More... | |
void | UseCOMClose (bool on) |
Use COM in Poly algo to decide merging. More... | |
void | UseCOMNearClus (bool on) |
Use COM in Poly algo to decide merging. More... | |
void | SetLengthReach (double frac) |
Set Length Reach: How for out the cone extends as percent of cluster length. 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 () | |
virtual | ~CMAlgoBase ()=default |
virtual void | EventBegin (const std::vector< cluster::ClusterParamsAlg > &) |
virtual void | EventEnd () |
virtual void | IterationBegin (const std::vector< cluster::ClusterParamsAlg > &) |
virtual void | IterationEnd () |
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 | _maxHits |
double | _MaxDist |
double | _MaxCOMDistSquared |
double | _lengthReach |
bool | _COMinPolyAlg |
How four out - as percent of cluster length - cone will extend from start point. More... | |
bool | _COMsClose |
bool | _COMNearClus |
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... | |
Designed mainly for small clusters (< 10 hits): Find Cluster's center of mass weighing by Q Then see if COM is in polygon/cone of a big cluster If so -> merge
Definition at line 28 of file CBAlgoCenterOfMassSmall.h.
cmtool::CBAlgoCenterOfMassSmall::CBAlgoCenterOfMassSmall | ( | ) |
Default constructor.
Definition at line 8 of file CBAlgoCenterOfMassSmall.cxx.
|
inlinevirtual |
|
virtual |
Core function: given the ClusterParamsAlg input, return whether a cluster should be merged or not.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 23 of file CBAlgoCenterOfMassSmall.cxx.
|
virtual |
Function to report what's going on per merging iteration.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 135 of file CBAlgoCenterOfMassSmall.cxx.
|
inlinevirtual |
Function to reset the algorithm instance ... maybe implemented via child class.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 46 of file CBAlgoCenterOfMassSmall.h.
|
inline |
|
inline |
Set Length Reach: How for out the cone extends as percent of cluster length.
Definition at line 73 of file CBAlgoCenterOfMassSmall.h.
|
inline |
Function to set Max Distance between COMs.
Definition at line 61 of file CBAlgoCenterOfMassSmall.h.
|
inline |
Function to set Max Distance for COM to be from start-end.
Definition at line 58 of file CBAlgoCenterOfMassSmall.h.
|
inline |
Function to set Max hits for small clsuters.
Definition at line 55 of file CBAlgoCenterOfMassSmall.h.
double cmtool::CBAlgoCenterOfMassSmall::ShortestDistanceSquared | ( | double | point_x, |
double | point_y, | ||
double | start_x, | ||
double | start_y, | ||
double | end_x, | ||
double | end_y | ||
) | const |
Definition at line 141 of file CBAlgoCenterOfMassSmall.cxx.
|
inline |
|
inline |
Use COM in Poly algo to decide merging.
Definition at line 64 of file CBAlgoCenterOfMassSmall.h.
|
inline |
Use COM in Poly algo to decide merging.
Definition at line 70 of file CBAlgoCenterOfMassSmall.h.
|
protected |
How four out - as percent of cluster length - cone will extend from start point.
Definition at line 87 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 89 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 88 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 82 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 86 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 85 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 84 of file CBAlgoCenterOfMassSmall.h.
|
protected |
Definition at line 83 of file CBAlgoCenterOfMassSmall.h.