#include <CMatchManager.h>
Public Member Functions | |
CMatchManager (size_t nplanes) | |
virtual | ~CMatchManager () |
Default destructor. More... | |
virtual void | Reset () |
Method to reset itself. More... | |
void | AddMatchAlgo (CFloatAlgoBase *algo) |
A simple method to add an algorithm for merging. More... | |
const CMatchBookKeeper & | GetBookKeeper () const |
A method to obtain book keeper. More... | |
Public Member Functions inherited from cmtool::CMManagerBase | |
CMManagerBase () | |
Default constructor. More... | |
virtual | ~CMManagerBase ()=default |
Default destructor. More... | |
void | DebugMode (CMMSGLevel_t level) |
Method to enable debug mode (lots of couts) More... | |
void | ReportTimings (bool time_report=true) |
Method to enable timing profile cout. More... | |
void | Reset () |
Method to reset itself. More... | |
void | AddPriorityAlgo (CPriorityAlgoBase *algo) |
Setter to add an algorithm for priority determination. More... | |
void | MergeTillConverge (bool doit=true) |
Switch to continue merging till converges. More... | |
void | SetClusters (util::GeometryUtilities const &gser, const std::vector< std::vector< util::PxHit >> &clusters) |
A simple method to add a cluster. More... | |
void | SetClusters (const std::vector< cluster::ClusterParamsAlg > &clusters) |
A simple method to add a cluster. More... | |
const std::vector < cluster::ClusterParamsAlg > & | GetInputClusters () const |
A getter for input clusters. More... | |
void | SetMinNHits (unsigned int n) |
A setter for minimum # of hits ... passed onto ClusterParamsAlg. More... | |
void | Process (util::GeometryUtilities const &gser) |
A method to execute the main action, to be called per event. More... | |
void | SetAnaFile (TFile *fout) |
A setter for an analysis output file. More... | |
Protected Member Functions | |
virtual void | EventBegin () |
FMWK function called @ beginning of Process() More... | |
virtual void | IterationBegin () |
FMWK function called @ beginning of iterative loop inside Process() More... | |
virtual bool | IterationProcess (util::GeometryUtilities const &gser) |
FMWK function called @ iterative loop inside Process() More... | |
virtual void | IterationEnd () |
FMWK function called @ end of iterative loop inside Process() More... | |
virtual void | EventEnd () |
FMWK function called @ end of Process() More... | |
Protected Member Functions inherited from cmtool::CMManagerBase | |
void | ComputePriority (const std::vector< cluster::ClusterParamsAlg > &clusters) |
Function to compute priority. More... | |
Protected Attributes | |
CMatchBookKeeper | _book_keeper |
Book keeper instance. More... | |
::cmtool::CFloatAlgoBase * | _match_algo |
Merging algorithm. More... | |
size_t | _nplanes |
Number of planes. More... | |
Protected Attributes inherited from cmtool::CMManagerBase | |
bool | _time_report |
Timing verbosity flag. More... | |
unsigned int | _min_nhits |
Minimum number of hits: the limit set for ClusterParamsAlg. More... | |
CMMSGLevel_t | _debug_mode |
Debug mode switch. More... | |
std::vector < cluster::ClusterParamsAlg > | _in_clusters |
Input clusters. More... | |
::cmtool::CPriorityAlgoBase * | _priority_algo |
Priority algorithm. More... | |
TFile * | _fout |
Output analysis plot TFile. More... | |
std::multimap< float, size_t > | _priority |
Priority record. More... | |
bool | _merge_till_converge |
Iteration loop switch. More... | |
std::set< UChar_t > | _planes |
A holder for # of unique planes in the clusters, computed in ComputePriority() function. More... | |
Private Member Functions | |
CMatchManager () | |
Default constructor is private because we need an argument to configure w/ # planes in the detector. More... | |
Additional Inherited Members | |
Public Types inherited from cmtool::CMManagerBase | |
enum | CMMSGLevel_t { kPerMerging, kPerIteration, kPerEvent, kNone } |
Enum to specify message output level. More... | |
A class that instantiates merging algorithm(s) and run. The book-keeping of merged cluster sets are done by CMatchBookKeeper.
Definition at line 30 of file CMatchManager.h.
|
private |
Default constructor is private because we need an argument to configure w/ # planes in the detector.
Definition at line 21 of file CMatchManager.cxx.
cmtool::CMatchManager::CMatchManager | ( | size_t | nplanes | ) |
Definition at line 26 of file CMatchManager.cxx.
|
inlinevirtual |
|
inline |
A simple method to add an algorithm for merging.
Definition at line 47 of file CMatchManager.h.
|
protectedvirtual |
FMWK function called @ beginning of Process()
Reimplemented from cmtool::CMManagerBase.
Definition at line 43 of file CMatchManager.cxx.
|
protectedvirtual |
FMWK function called @ end of Process()
Reimplemented from cmtool::CMManagerBase.
Definition at line 69 of file CMatchManager.cxx.
|
inline |
A method to obtain book keeper.
Definition at line 54 of file CMatchManager.h.
|
protectedvirtual |
FMWK function called @ beginning of iterative loop inside Process()
Reimplemented from cmtool::CMManagerBase.
Definition at line 55 of file CMatchManager.cxx.
|
protectedvirtual |
FMWK function called @ end of iterative loop inside Process()
Reimplemented from cmtool::CMManagerBase.
Definition at line 62 of file CMatchManager.cxx.
|
protectedvirtual |
FMWK function called @ iterative loop inside Process()
Implements cmtool::CMManagerBase.
Definition at line 181 of file CMatchManager.cxx.
|
virtual |
Method to reset itself.
Definition at line 34 of file CMatchManager.cxx.
|
protected |
Book keeper instance.
Definition at line 81 of file CMatchManager.h.
|
protected |
Merging algorithm.
Definition at line 84 of file CMatchManager.h.
|
protected |
Number of planes.
Definition at line 87 of file CMatchManager.h.