LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Public Member Functions | |
ConvexHullPathFinder (const fhicl::ParameterSet &) | |
Constructor. More... | |
~ConvexHullPathFinder () | |
Destructor. More... | |
void | configure (fhicl::ParameterSet const &pset) override |
void | initializeHistograms (art::TFileDirectory &) override |
Interface for initializing histograms if they are desired Note that the idea is to put hisgtograms in a subfolder. More... | |
void | ModifyClusters (reco::ClusterParametersList &) const override |
Scan an input collection of clusters and modify those according to the specific implementing algorithm. More... | |
float | getTimeToExecute () const override |
If monitoring, recover the time to execute a particular function. More... | |
virtual void | configure (const fhicl::ParameterSet &)=0 |
Interface for configuring the particular algorithm tool. More... | |
Private Types | |
using | HitOrderTuple = std::tuple< float, float, reco::ProjectedPoint > |
using | HitOrderTupleList = std::list< HitOrderTuple > |
using | MinMaxPoints = std::pair< reco::ProjectedPoint, reco::ProjectedPoint > |
using | MinMaxPointPair = std::pair< MinMaxPoints, MinMaxPoints > |
using | KinkTuple = std::tuple< int, reco::ConvexHullKinkTuple, HitOrderTupleList, HitOrderTupleList > |
using | KinkTupleVec = std::vector< KinkTuple > |
Private Attributes | |
bool | fEnableMonitoring |
FHICL parameters. More... | |
size_t | fMinTinyClusterSize |
Minimum size for a "tiny" cluster. More... | |
float | fConvexHullKinkAngle |
Angle to declare a kink in convex hull calc. More... | |
float | fConvexHullMinSep |
Min hit separation to conisder in convex hull. More... | |
float | fTimeToProcess |
bool | fFillHistograms |
Histogram definitions. More... | |
TH1F * | fTopNum3DHits |
TH1F * | fTopNumEdges |
TH1F * | fTopEigen21Ratio |
TH1F * | fTopEigen20Ratio |
TH1F * | fTopEigen10Ratio |
TH1F * | fTopPrimaryLength |
TH1F * | fSubNum3DHits |
TH1F * | fSubNumEdges |
TH1F * | fSubEigen21Ratio |
TH1F * | fSubEigen20Ratio |
TH1F * | fSubEigen10Ratio |
TH1F * | fSubPrimaryLength |
TH1F * | fSubCosToPrevPCA |
TH1F * | fSubCosExtToPCA |
TH1F * | fSubMaxDefect |
TH1F * | fSubUsedDefect |
geo::Geometry * | fGeometry |
Tools. More... | |
std::unique_ptr< lar_cluster3d::IClusterAlg > | fClusterAlg |
Algorithm to do 3D space point clustering. More... | |
PrincipalComponentsAlg | fPCAAlg |
Definition at line 46 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 98 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 99 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 134 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 135 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 128 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 127 of file ConvexHullPathFinder_tool.cc.
|
explicit |
Constructor.
pset |
Definition at line 182 of file ConvexHullPathFinder_tool.cc.
References configure().
lar_cluster3d::ConvexHullPathFinder::~ConvexHullPathFinder | ( | ) |
|
private |
Definition at line 963 of file ConvexHullPathFinder_tool.cc.
References reco::ClusterHit3D::getArclenToPoca(), reco::ClusterParameters::getFullPCA(), and makeCandidateCluster().
Referenced by subDivideCluster().
|
private |
Definition at line 630 of file ConvexHullPathFinder_tool.cc.
References fMinTinyClusterSize, reco::ClusterParameters::getConvexHull(), reco::ConvexHull::getConvexHullKinkPoints(), reco::ClusterParameters::getFullPCA(), art::left(), makeCandidateCluster(), min, and art::right().
Referenced by subDivideCluster().
|
private |
Definition at line 689 of file ConvexHullPathFinder_tool.cc.
References fMinTinyClusterSize, reco::ClusterParameters::getConvexHull(), reco::ConvexHull::getConvexHullKinkPoints(), reco::ClusterParameters::getFullPCA(), reco::ConvexHull::getProjectedPointList(), art::left(), makeCandidateCluster(), min, orderHitsAlongEdge(), pruneHitOrderTupleLists(), and art::right().
|
private |
Definition at line 843 of file ConvexHullPathFinder_tool.cc.
References fFillHistograms, fMinTinyClusterSize, fSubMaxDefect, fSubUsedDefect, reco::ClusterParameters::getBestEdgeList(), reco::ClusterParameters::getConvexHull(), reco::ConvexHull::getConvexHullExtremePoints(), reco::ClusterParameters::getFullPCA(), reco::ClusterHit3D::getPosition(), art::left(), makeCandidateCluster(), and art::right().
Referenced by subDivideCluster().
|
private |
Definition at line 936 of file ConvexHullPathFinder_tool.cc.
References reco::ClusterParameters::getFullPCA(), and makeCandidateCluster().
Referenced by subDivideCluster().
|
private |
Definition at line 1015 of file ConvexHullPathFinder_tool.cc.
References fConvexHullKinkAngle, fConvexHullMinSep, reco::PrincipalComponents::getAvePosition(), lar_cluster3d::ConvexHull::getConvexHull(), reco::ClusterParameters::getConvexHull(), lar_cluster3d::ConvexHull::getConvexHullArea(), reco::ConvexHull::getConvexHullEdgeList(), reco::ConvexHull::getConvexHullEdgeMap(), reco::ConvexHull::getConvexHullExtremePoints(), reco::ConvexHull::getConvexHullKinkPoints(), reco::PrincipalComponents::getEigenVectors(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHitPairListPtr(), reco::ClusterHit3D::getPosition(), reco::ConvexHull::getProjectedPointList(), art::detail::indent(), art::left(), max, and art::right().
Referenced by completeCandidateCluster(), and ModifyClusters().
|
private |
Definition at line 1158 of file ConvexHullPathFinder_tool.cc.
|
private |
Definition at line 577 of file ConvexHullPathFinder_tool.cc.
References buildConvexHull(), fPCAAlg, reco::PrincipalComponents::getAveHitDoca(), reco::PrincipalComponents::getAvePosition(), reco::PrincipalComponents::getEigenValues(), reco::PrincipalComponents::getEigenVectors(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHitPairListPtr(), reco::PrincipalComponents::getNumHitsUsed(), reco::ClusterParameters::getSkeletonPCA(), reco::PrincipalComponents::getSvdOK(), and lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D().
Referenced by makeCandidateCluster().
|
pure virtualinherited |
Interface for configuring the particular algorithm tool.
ParameterSet | The input set of parameters for configuration |
|
override |
Definition at line 196 of file ConvexHullPathFinder_tool.cc.
References fClusterAlg, fConvexHullKinkAngle, fConvexHullMinSep, fEnableMonitoring, fGeometry, fMinTinyClusterSize, fTimeToProcess, and fhicl::ParameterSet::get().
Referenced by ConvexHullPathFinder().
|
private |
Definition at line 1183 of file ConvexHullPathFinder_tool.cc.
References DEFINE_ART_CLASS_TOOL.
|
inlineoverridevirtual |
If monitoring, recover the time to execute a particular function.
Implements lar_cluster3d::IClusterModAlg.
Definition at line 82 of file ConvexHullPathFinder_tool.cc.
References fTimeToProcess, and subDivideCluster().
|
overridevirtual |
Interface for initializing histograms if they are desired Note that the idea is to put hisgtograms in a subfolder.
TFileDirectory | - the folder to store the hists in |
Implements lar_cluster3d::IClusterModAlg.
Definition at line 213 of file ConvexHullPathFinder_tool.cc.
References dir, fFillHistograms, fSubCosExtToPCA, fSubCosToPrevPCA, fSubEigen10Ratio, fSubEigen20Ratio, fSubEigen21Ratio, fSubMaxDefect, fSubNum3DHits, fSubNumEdges, fSubPrimaryLength, fSubUsedDefect, fTopEigen10Ratio, fTopEigen20Ratio, fTopEigen21Ratio, fTopNum3DHits, fTopNumEdges, fTopPrimaryLength, art::TFileDirectory::make(), and art::TFileDirectory::mkdir().
|
private |
Definition at line 489 of file ConvexHullPathFinder_tool.cc.
References completeCandidateCluster(), reco::ClusterParameters::getConvexHull(), reco::ConvexHull::getConvexHullEdgeList(), reco::PrincipalComponents::getEigenValues(), reco::PrincipalComponents::getEigenVectors(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHitPairListPtr(), and art::detail::indent().
Referenced by breakClusterAtBigGap(), breakClusterByKinks(), breakClusterByKinksTrial(), breakClusterByMaxDefect(), and breakClusterInHalf().
|
private |
Definition at line 535 of file ConvexHullPathFinder_tool.cc.
References completeCandidateCluster(), reco::ClusterParameters::getBestEdgeList(), reco::PrincipalComponents::getEigenValues(), reco::PrincipalComponents::getEigenVectors(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHitPairListPtr(), and art::detail::indent().
|
overridevirtual |
Scan an input collection of clusters and modify those according to the specific implementing algorithm.
clusterParametersList | A list of cluster objects (parameters from associated hits) |
Top level interface for algorithm to consider pairs of clusters from the input list and determine if they are consistent with each other and, therefore, should be merged. This is done by looking at the PCA for each cluster and looking at the projection of the primary axis along the vector connecting their centers.
Implements lar_cluster3d::IClusterModAlg.
Definition at line 247 of file ConvexHullPathFinder_tool.cc.
References buildConvexHull(), reco::ClusterParameters::daughterList(), fEnableMonitoring, fFillHistograms, fMinTinyClusterSize, fTimeToProcess, fTopEigen10Ratio, fTopEigen20Ratio, fTopEigen21Ratio, fTopNum3DHits, fTopNumEdges, fTopPrimaryLength, reco::PrincipalComponents::getEigenValues(), reco::ClusterParameters::getHitPairListPtr(), min, and subDivideCluster().
|
private |
Definition at line 769 of file ConvexHullPathFinder_tool.cc.
References art::left(), and art::right().
Referenced by breakClusterByKinksTrial().
|
private |
Definition at line 811 of file ConvexHullPathFinder_tool.cc.
Referenced by breakClusterByKinksTrial().
|
private |
Use PCA to try to find path in cluster.
clusterParameters | The given cluster parameters object to try to split |
clusterParametersList | The list of clusters |
Definition at line 345 of file ConvexHullPathFinder_tool.cc.
References breakClusterAtBigGap(), breakClusterByKinks(), breakClusterByMaxDefect(), breakClusterInHalf(), fFillHistograms, fMinTinyClusterSize, fPCAAlg, fSubCosExtToPCA, fSubCosToPrevPCA, fSubEigen10Ratio, fSubEigen20Ratio, fSubEigen21Ratio, fSubNum3DHits, fSubNumEdges, fSubPrimaryLength, reco::ClusterParameters::getConvexHull(), reco::ConvexHull::getConvexHullExtremePoints(), reco::PrincipalComponents::getEigenValues(), reco::PrincipalComponents::getEigenVectors(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHitPairListPtr(), reco::ClusterHit3D::getPosition(), art::left(), min, lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc3DDocas(), art::right(), and reco::ClusterHit2D::USED.
Referenced by getTimeToExecute(), and ModifyClusters().
|
private |
Algorithm to do 3D space point clustering.
Definition at line 178 of file ConvexHullPathFinder_tool.cc.
Referenced by configure().
|
private |
Angle to declare a kink in convex hull calc.
Definition at line 146 of file ConvexHullPathFinder_tool.cc.
Referenced by buildConvexHull(), and configure().
|
private |
Min hit separation to conisder in convex hull.
Definition at line 147 of file ConvexHullPathFinder_tool.cc.
Referenced by buildConvexHull(), and configure().
|
private |
FHICL parameters.
Definition at line 144 of file ConvexHullPathFinder_tool.cc.
Referenced by configure(), and ModifyClusters().
|
private |
Histogram definitions.
Definition at line 153 of file ConvexHullPathFinder_tool.cc.
Referenced by breakClusterByMaxDefect(), initializeHistograms(), ModifyClusters(), and subDivideCluster().
|
private |
|
private |
Minimum size for a "tiny" cluster.
Definition at line 145 of file ConvexHullPathFinder_tool.cc.
Referenced by breakClusterByKinks(), breakClusterByKinksTrial(), breakClusterByMaxDefect(), configure(), ModifyClusters(), and subDivideCluster().
|
private |
Definition at line 179 of file ConvexHullPathFinder_tool.cc.
Referenced by completeCandidateCluster(), and subDivideCluster().
|
private |
Definition at line 169 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 168 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 166 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 165 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 164 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 170 of file ConvexHullPathFinder_tool.cc.
Referenced by breakClusterByMaxDefect(), and initializeHistograms().
|
private |
Definition at line 162 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 163 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 167 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and subDivideCluster().
|
private |
Definition at line 171 of file ConvexHullPathFinder_tool.cc.
Referenced by breakClusterByMaxDefect(), and initializeHistograms().
|
mutableprivate |
Definition at line 148 of file ConvexHullPathFinder_tool.cc.
Referenced by configure(), getTimeToExecute(), and ModifyClusters().
|
private |
Definition at line 159 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().
|
private |
Definition at line 158 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().
|
private |
Definition at line 157 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().
|
private |
Definition at line 155 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().
|
private |
Definition at line 156 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().
|
private |
Definition at line 160 of file ConvexHullPathFinder_tool.cc.
Referenced by initializeHistograms(), and ModifyClusters().