LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "CBAlgoTrackSeparate.h"
Public Member Functions | |
CBAlgoTrackSeparate () | |
Default constructor. More... | |
virtual | ~CBAlgoTrackSeparate () |
Default destructor. More... | |
virtual bool | Bool (const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2) |
void | SetVerbose (bool on) |
Setter function for verbosity. More... | |
void | SetDebug (bool on) |
void | SetMinNumHits (size_t n) |
void | SetMinAngleDiff (float anglesep) |
void | SetMaxOpeningAngle (float maxangle) |
void | SetMinLength (float minlength) |
void | SetMinPolyHitDensity (float mindensity) |
void | SetMaxWidth (float maxwidth) |
void | SetUseEP (bool flag) |
void | SetEPCutoff (float epcut) |
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. 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 () |
void | SetAnaFile (TFile *fout) |
Setter function for an output plot TFile pointer. More... | |
Protected Attributes | |
bool | _verbose |
bool | _debug |
bool | _use_EP |
float | _ep_cut |
size_t | _MinNumHits |
float | _MinAngleDiff |
float | _MaxOpeningAngle |
float | _MinLength |
float | _MinDensity |
float | _MaxWidth |
double | _wire_2_cm |
double | _time_2_cm |
TFile * | _fout |
TFile pointer to an output file. More... | |
Definition at line 25 of file CBAlgoTrackSeparate.h.
cmtool::CBAlgoTrackSeparate::CBAlgoTrackSeparate | ( | ) |
Default constructor.
Definition at line 9 of file CBAlgoTrackSeparate.cxx.
References _time_2_cm, _wire_2_cm, SetDebug(), SetEPCutoff(), SetMaxOpeningAngle(), SetMaxWidth(), SetMinAngleDiff(), SetMinLength(), SetMinNumHits(), SetMinPolyHitDensity(), SetUseEP(), SetVerbose(), util::GeometryUtilities::TimeToCm(), and util::GeometryUtilities::WireToCm().
|
inlinevirtual |
|
virtual |
Core function: given the ClusterParamsAlg input, return whether a cluster should be merged or not.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 39 of file CBAlgoTrackSeparate.cxx.
References _debug, _ep_cut, _MaxOpeningAngle, _MaxWidth, _MinAngleDiff, _MinLength, _MinNumHits, _use_EP, and _verbose.
Referenced by ~CBAlgoTrackSeparate().
|
inlinevirtualinherited |
Optional function: called at the beginning of 1st iteration. This is called per event.
Reimplemented in cmtool::CFAlgoArray, cmtool::CPAlgoArray, cmtool::CBAlgoArray, and cmtool::CBAlgoPolyShortestDist.
Definition at line 45 of file CMAlgoBase.h.
Referenced by cmtool::CMergeManager::EventBegin().
|
inlinevirtualinherited |
Optional function: called at the end of event ... after the last merging iteration is over.
Reimplemented in cmtool::CFAlgoArray, cmtool::CPAlgoArray, and cmtool::CBAlgoArray.
Definition at line 51 of file CMAlgoBase.h.
Referenced by cmtool::CMatchManager::EventEnd(), and cmtool::CMergeManager::EventEnd().
|
inlinevirtualinherited |
Optional function: called at the beggining of each iteration over all pairs of clusters. This provides all clusters' information in case the algorithm need them. Note this is called per iteration which may be more than once per event.
Reimplemented in cmtool::CFAlgoArray, cmtool::CPAlgoArray, and cmtool::CBAlgoArray.
Definition at line 59 of file CMAlgoBase.h.
Referenced by cmtool::CMatchManager::EventBegin(), cmtool::CMatchManager::IterationBegin(), and cmtool::CMergeManager::IterationBegin().
|
inlinevirtualinherited |
Optional function: called at the end of each iteration over all pairs of clusters.
Reimplemented in cmtool::CFAlgoArray, cmtool::CPAlgoArray, and cmtool::CBAlgoArray.
Definition at line 65 of file CMAlgoBase.h.
Referenced by cmtool::CMatchManager::IterationEnd(), and cmtool::CMergeManager::IterationEnd().
|
virtual |
Function to report what's going on per merging.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 111 of file CBAlgoTrackSeparate.cxx.
Referenced by Reset().
|
inlinevirtual |
Function to reset the algorithm instance ... maybe implemented via child class.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 63 of file CBAlgoTrackSeparate.h.
References Report().
|
inlineinherited |
Setter function for an output plot TFile pointer.
Definition at line 77 of file CMAlgoBase.h.
References cmtool::CMAlgoBase::_fout.
Referenced by cmtool::CMergeManager::EventBegin().
|
inline |
Definition at line 44 of file CBAlgoTrackSeparate.h.
References _debug.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
inline |
Definition at line 60 of file CBAlgoTrackSeparate.h.
References _ep_cut.
Referenced by CBAlgoTrackSeparate().
|
inline |
Definition at line 50 of file CBAlgoTrackSeparate.h.
References _MaxOpeningAngle.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
inline |
Definition at line 56 of file CBAlgoTrackSeparate.h.
References _MaxWidth.
Referenced by CBAlgoTrackSeparate().
|
inline |
Definition at line 48 of file CBAlgoTrackSeparate.h.
References _MinAngleDiff.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
inline |
Definition at line 52 of file CBAlgoTrackSeparate.h.
References _MinLength.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
inline |
Definition at line 46 of file CBAlgoTrackSeparate.h.
References _MinNumHits, and n.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
inline |
Definition at line 54 of file CBAlgoTrackSeparate.h.
References _MinDensity.
Referenced by CBAlgoTrackSeparate().
|
inline |
Definition at line 58 of file CBAlgoTrackSeparate.h.
References _use_EP.
Referenced by CBAlgoTrackSeparate().
|
inlinevirtual |
Setter function for verbosity.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 42 of file CBAlgoTrackSeparate.h.
References _verbose.
Referenced by CBAlgoTrackSeparate(), and cluster::SimpleClusterMerger::SimpleClusterMerger().
|
protected |
Definition at line 71 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetDebug().
|
protected |
Definition at line 73 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetEPCutoff().
|
protectedinherited |
TFile pointer to an output file.
Definition at line 85 of file CMAlgoBase.h.
Referenced by cmtool::CMAlgoBase::CMAlgoBase(), and cmtool::CMAlgoBase::SetAnaFile().
|
protected |
Definition at line 76 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetMaxOpeningAngle().
|
protected |
Definition at line 79 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetMaxWidth().
|
protected |
Definition at line 75 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetMinAngleDiff().
|
protected |
Definition at line 78 of file CBAlgoTrackSeparate.h.
Referenced by SetMinPolyHitDensity().
|
protected |
Definition at line 77 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetMinLength().
|
protected |
Definition at line 74 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetMinNumHits().
|
protected |
Definition at line 81 of file CBAlgoTrackSeparate.h.
Referenced by CBAlgoTrackSeparate().
|
protected |
Definition at line 72 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetUseEP().
|
protected |
Definition at line 70 of file CBAlgoTrackSeparate.h.
Referenced by Bool(), and SetVerbose().
|
protected |
Definition at line 80 of file CBAlgoTrackSeparate.h.
Referenced by CBAlgoTrackSeparate().