LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "CBAlgoStartInCone.h"
Public Member Functions | |
CBAlgoStartInCone () | |
Default constructor. More... | |
virtual | ~CBAlgoStartInCone () |
Default destructor. More... | |
virtual bool | Bool (const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2) |
Merging Algorithm is Here. More... | |
void | reconfigure () |
Method to re-configure the instance. More... | |
void | SetMinHits (size_t n) |
Set Minimum number of hits for cone-cluster. More... | |
void | SetMinLen (double l) |
Set Minimum number of hits for cone-cluster. More... | |
void | SetVerbose (bool verbosity) |
Set Verbosity of messages. More... | |
void | SetDebug (bool debug) |
Set Debug for messages. More... | |
void | SetAngleCompat (double deg) |
Set Angle Compatibility betweeen the clusters. More... | |
void | SetLengthReach (double frac) |
Set Length Reach: How for out the cone extends as percent of cluster length. 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 | |
double | _wire_2_cm |
double | _time_2_cm |
size_t | _NhitsMin |
Conversion factors ogtten from GeometryUtilities. More... | |
double | _lenMin |
Larger cluster which determines cone must have this many hits. More... | |
bool | _verbose |
Larger cluster which determines cone must be at least this long. More... | |
bool | _debug |
double | _angleCompat |
double | _lengthReach |
Two clusters must have direction within this value of each other. More... | |
TFile * | _fout |
TFile pointer to an output file. More... | |
If start point of Cluster B in Cone region of Cluster A then merge
Definition at line 28 of file CBAlgoStartInCone.h.
cmtool::CBAlgoStartInCone::CBAlgoStartInCone | ( | ) |
Default constructor.
Definition at line 8 of file CBAlgoStartInCone.cxx.
References _time_2_cm, _wire_2_cm, reconfigure(), SetAngleCompat(), SetDebug(), SetLengthReach(), SetMinHits(), SetMinLen(), util::GeometryUtilities::TimeToCm(), and util::GeometryUtilities::WireToCm().
|
inlinevirtual |
Default destructor.
Definition at line 36 of file CBAlgoStartInCone.h.
References Bool(), and reconfigure().
|
virtual |
Merging Algorithm is Here.
Reimplemented from cmtool::CBoolAlgoBase.
Definition at line 33 of file CBAlgoStartInCone.cxx.
References _angleCompat, _debug, _lengthReach, _lenMin, _NhitsMin, and _verbose.
Referenced by ~CBAlgoStartInCone().
|
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().
void cmtool::CBAlgoStartInCone::reconfigure | ( | ) |
Method to re-configure the instance.
Definition at line 26 of file CBAlgoStartInCone.cxx.
Referenced by CBAlgoStartInCone(), and ~CBAlgoStartInCone().
|
inlinevirtualinherited |
Optional function: called after Bool() function is called for all possible cluster pairs by CMergeManager/CMatchManager IFF run with verbosity level kPerIteration. Maybe useful for debugging.
Reimplemented in cmtool::CFAlgoArray, cmtool::CPAlgoArray, cmtool::CBAlgoArray, cmtool::CBAlgoStartTrack, cmtool::CBAlgoPolyShortestDist, cmtool::CBAlgoProhibitAllTracks, cmtool::CBAlgoOutOfConeSeparate, cmtool::CBAlgoTrackSeparate, cmtool::CBAlgoAngleSeparate, cmtool::CFAlgo3DAngle, cmtool::CBAlgoMergeTinyWithBig, cmtool::CFAlgoShowerCompat, cmtool::CFAlgoTimeOverlap, cmtool::CBAlgoStartNearEnd, cmtool::CFAlgoVolumeOverlap, cmtool::CFAlgoWireOverlap, cmtool::CBAlgoProhibitBigClusters, cmtool::CFAlgoStartPointCompat, cmtool::CFAlgoStartPointMatch, cmtool::CFAlgoStartTimeCompat, cmtool::CFAlgoChargeDistrib, cmtool::CFAlgoQRatio, cmtool::CFAlgoZOverlap, cmtool::CPAlgoIgnoreTracks, cmtool::CBAlgoCenterOfMass, cmtool::CBAlgoCenterOfMassSmall, and cmtool::CFAlgoTimeProf.
Definition at line 73 of file CMAlgoBase.h.
Referenced by cmtool::CMergeManager::IterationEnd(), cmtool::CMatchManager::IterationProcess(), and cmtool::CMergeManager::IterationProcess().
|
inlinevirtualinherited |
Function to reset the algorithm instance called within CMergeManager/CMatchManager's Reset() ... maybe implemented via child class.
Reimplemented in cmtool::CBAlgoArray, cmtool::CFAlgoArray, cmtool::CPAlgoArray, cmtool::CBAlgoStartTrack, cmtool::CBAlgoPolyShortestDist, cmtool::CBAlgoProhibitAllTracks, cmtool::CBAlgoOutOfConeSeparate, cmtool::CBAlgoTrackSeparate, cmtool::CBAlgoMergeTinyWithBig, cmtool::CFAlgoShowerCompat, cmtool::CFAlgo3DAngle, cmtool::CFAlgoTimeOverlap, cmtool::CBAlgoAngleSeparate, cmtool::CFAlgoVolumeOverlap, cmtool::CFAlgoWireOverlap, cmtool::CBAlgoProhibitBigClusters, cmtool::CFAlgoStartPointCompat, cmtool::CFAlgoStartPointMatch, cmtool::CFAlgoStartTimeCompat, cmtool::CFAlgoChargeDistrib, cmtool::CFAlgoQRatio, cmtool::CFAlgoZOverlap, cmtool::CPAlgoIgnoreTracks, cmtool::CBAlgoStartNearEnd, cmtool::CBAlgoCenterOfMass, cmtool::CBAlgoCenterOfMassSmall, cmtool::CFAlgoTimeProf, cmtool::CBAlgoFake, and cmtool::CBAlgoMergeAll.
Definition at line 40 of file CMAlgoBase.h.
Referenced by cmtool::CMergeManager::Reset(), cmtool::CMatchManager::Reset(), and cmtool::CMManagerBase::Reset().
|
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 |
Set Angle Compatibility betweeen the clusters.
Definition at line 58 of file CBAlgoStartInCone.h.
References _angleCompat.
Referenced by CBAlgoStartInCone().
|
inline |
Set Debug for messages.
Definition at line 55 of file CBAlgoStartInCone.h.
References _debug, and tca::debug.
Referenced by CBAlgoStartInCone().
|
inline |
Set Length Reach: How for out the cone extends as percent of cluster length.
Definition at line 61 of file CBAlgoStartInCone.h.
References _lengthReach.
Referenced by CBAlgoStartInCone().
|
inline |
Set Minimum number of hits for cone-cluster.
Definition at line 46 of file CBAlgoStartInCone.h.
Referenced by CBAlgoStartInCone().
|
inline |
Set Minimum number of hits for cone-cluster.
Definition at line 49 of file CBAlgoStartInCone.h.
References _lenMin.
Referenced by CBAlgoStartInCone().
|
inlinevirtual |
Set Verbosity of messages.
Reimplemented from cmtool::CMAlgoBase.
Definition at line 52 of file CBAlgoStartInCone.h.
References _verbose.
|
protected |
Definition at line 71 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetAngleCompat().
|
protected |
Definition at line 70 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetDebug().
|
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 |
Two clusters must have direction within this value of each other.
Definition at line 72 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetLengthReach().
|
protected |
Larger cluster which determines cone must have this many hits.
Definition at line 68 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetMinLen().
|
protected |
Conversion factors ogtten from GeometryUtilities.
Definition at line 67 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetMinHits().
|
protected |
Definition at line 65 of file CBAlgoStartInCone.h.
Referenced by CBAlgoStartInCone().
|
protected |
Larger cluster which determines cone must be at least this long.
Definition at line 69 of file CBAlgoStartInCone.h.
Referenced by Bool(), and SetVerbose().
|
protected |
Definition at line 65 of file CBAlgoStartInCone.h.
Referenced by CBAlgoStartInCone().