LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "Cluster3D.h"
Public Types | |
typedef std::vector< std::vector< float > > | EigenVectors |
Public Member Functions | |
PrincipalComponents () | |
PrincipalComponents (bool ok, int nHits, const float *eigenValues, const EigenVectors &eigenVecs, const float *avePos, const float aveHitDoca=9999.) | |
bool | getSvdOK () const |
int | getNumHitsUsed () const |
const float * | getEigenValues () const |
const EigenVectors & | getEigenVectors () const |
const float * | getAvePosition () const |
const float | getAveHitDoca () const |
void | flipAxis (size_t axis) |
void | setAveHitDoca (double doca) const |
Private Attributes | |
bool | m_svdOK |
SVD Decomposition was successful. More... | |
int | m_numHitsUsed |
Number of hits in the decomposition. More... | |
float | m_eigenValues [3] |
Eigen values from SVD decomposition. More... | |
EigenVectors | m_eigenVectors |
The three principle axes. More... | |
float | m_avePosition [3] |
Average position of hits fed to PCA. More... | |
double | m_aveHitDoca |
Average doca of hits used in PCA. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const PrincipalComponents &a) |
bool | operator< (const PrincipalComponents &a, const PrincipalComponents &b) |
Definition at line 203 of file Cluster3D.h.
typedef std::vector<std::vector<float> > reco::PrincipalComponents::EigenVectors |
Definition at line 207 of file Cluster3D.h.
reco::PrincipalComponents::PrincipalComponents | ( | ) |
Definition at line 173 of file Cluster3D.cxx.
reco::PrincipalComponents::PrincipalComponents | ( | bool | ok, |
int | nHits, | ||
const float * | eigenValues, | ||
const EigenVectors & | eigenVecs, | ||
const float * | avePos, | ||
const float | aveHitDoca = 9999. |
||
) |
Definition at line 181 of file Cluster3D.cxx.
References m_avePosition, and m_eigenValues.
void reco::PrincipalComponents::flipAxis | ( | size_t | axis | ) |
Definition at line 195 of file Cluster3D.cxx.
References m_eigenVectors.
Referenced by lar_cluster3d::PCASeedFinderAlg::findTrackSeeds(), lar_cluster3d::ParallelHitsSeedFinderAlg::findTrackSeeds(), and lar_cluster3d::PCASeedFinderAlg::getHitsAtEnd().
|
inline |
Definition at line 229 of file Cluster3D.h.
Referenced by lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::HoughSeedFinderAlg::buildSeed(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis(), lar_cluster3d::Cluster3D::ProduceArtClusters(), and lar_cluster3d::Cluster3D::splitClustersWithHough().
|
inline |
Definition at line 228 of file Cluster3D.h.
Referenced by lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::buildConvexHull(), lar_cluster3d::ClusterPathFinder::buildConvexHull(), lar_cluster3d::HoughSeedFinderAlg::buildSeed(), lar_cluster3d::VoronoiPathFinder::buildVoronoiDiagram(), lar_cluster3d::ClusterPathFinder::buildVoronoiDiagram(), lar_cluster3d::ClusterMergeAlg::consistentClusters(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::HoughSeedFinderAlg::findHoughClusters(), lar_cluster3d::Cluster3D::MakeAndSavePCAPoints(), lar_cluster3d::ClusterMergeAlg::mergeClusters(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc2DDocas(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc3DDocas(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_reject3DOutliers(), and lar_cluster3d::Cluster3D::ProduceArtClusters().
|
inline |
Definition at line 226 of file Cluster3D.h.
Referenced by lar_cluster3d::Cluster3D::aParallelHitsCluster(), lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::ClusterMergeAlg::consistentClusters(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::HoughSeedFinderAlg::findHoughClusters(), lar_cluster3d::HoughSeedFinderAlg::findTrackHits(), lar_cluster3d::HoughSeedFinderAlg::findTrackSeeds(), lar_cluster3d::PCASeedFinderAlg::findTrackSeeds(), lar_cluster3d::Cluster3D::findTrackSeeds(), lar_cluster3d::ClusterMergeAlg::mergeClusters(), lar_cluster3d::ClusterMergeAlg::ModifyClusters(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc2DDocas(), lar_cluster3d::Cluster3D::ProduceArtClusters(), and lar_cluster3d::Cluster3D::splitClustersWithMST().
|
inline |
Definition at line 227 of file Cluster3D.h.
Referenced by lar_cluster3d::Cluster3D::aParallelHitsCluster(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::ClusterPathFinder::buildConvexHull(), lar_cluster3d::VoronoiPathFinder::buildConvexHull(), lar_cluster3d::HoughSeedFinderAlg::buildSeed(), lar_cluster3d::ClusterPathFinder::buildVoronoiDiagram(), lar_cluster3d::VoronoiPathFinder::buildVoronoiDiagram(), lar_cluster3d::MinSpanTreeAlg::CheckHitSorting(), lar_cluster3d::ClusterMergeAlg::consistentClusters(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::HoughSeedFinderAlg::findHoughClusters(), lar_cluster3d::PCASeedFinderAlg::findTrackSeeds(), lar_cluster3d::ParallelHitsSeedFinderAlg::findTrackSeeds(), lar_cluster3d::PCASeedFinderAlg::getHitsAtEnd(), lar_cluster3d::Cluster3D::MakeAndSavePCAPoints(), lar_cluster3d::ClusterMergeAlg::mergeClusters(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_2D(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc2DDocas(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc3DDocas(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_reject3DOutliers(), and lar_cluster3d::Cluster3D::ProduceArtClusters().
|
inline |
Definition at line 225 of file Cluster3D.h.
Referenced by lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), and lar_cluster3d::Cluster3D::ProduceArtClusters().
|
inline |
Definition at line 224 of file Cluster3D.h.
Referenced by lar_cluster3d::ClusterPathFinder::breakIntoTinyBits(), lar_cluster3d::VoronoiPathFinder::breakIntoTinyBits(), lar_cluster3d::ClusterParamsBuilder::BuildClusterInfo(), lar_cluster3d::HoughSeedFinderAlg::buildSeed(), lar_cluster3d::MinSpanTreeAlg::CheckHitSorting(), lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::ClusterParamsBuilder::FillClusterParams(), lar_cluster3d::MinSpanTreeAlg::FindBestPathInCluster(), lar_cluster3d::HoughSeedFinderAlg::findHitGaps(), lar_cluster3d::HoughSeedFinderAlg::findTrackSeeds(), lar_cluster3d::ParallelHitsSeedFinderAlg::findTrackSeeds(), lar_cluster3d::PCASeedFinderAlg::getHitsAtEnd(), lar_cluster3d::ClusterMergeAlg::mergeClusters(), lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis(), lar_cluster3d::Cluster3D::ProduceArtClusters(), and lar_cluster3d::Cluster3D::splitClustersWithHough().
|
inline |
Definition at line 232 of file Cluster3D.h.
References reco::ClusterHit2D::operator<, and reco::ClusterHit2D::operator<<.
Referenced by lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc2DDocas(), and lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_calc3DDocas().
|
friend |
Definition at line 224 of file Cluster3D.cxx.
|
friend |
Definition at line 204 of file Cluster3D.cxx.
|
mutableprivate |
Average doca of hits used in PCA.
Definition at line 218 of file Cluster3D.h.
Referenced by reco::operator<<().
|
private |
Average position of hits fed to PCA.
Definition at line 217 of file Cluster3D.h.
Referenced by reco::operator<<(), and PrincipalComponents().
|
private |
Eigen values from SVD decomposition.
Definition at line 215 of file Cluster3D.h.
Referenced by reco::operator<(), reco::operator<<(), and PrincipalComponents().
|
private |
The three principle axes.
Definition at line 216 of file Cluster3D.h.
Referenced by flipAxis(), and reco::operator<<().
|
private |
Number of hits in the decomposition.
Definition at line 214 of file Cluster3D.h.
Referenced by reco::operator<<().
|
private |
SVD Decomposition was successful.
Definition at line 213 of file Cluster3D.h.
Referenced by reco::operator<(), and reco::operator<<().