LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PCAxis.h"
Public Types | |
typedef std::vector< std::vector< double > > | EigenVectors |
Public Member Functions | |
PCAxis () | |
PCAxis (bool ok, int nHits, const double *eigenValues, const EigenVectors &eigenVecs, const double *avePos, const double aveHitDoca=9999., size_t id=0) | |
bool | getSvdOK () const |
int | getNumHitsUsed () const |
const double * | getEigenValues () const |
const EigenVectors & | getEigenVectors () const |
const double * | getAvePosition () const |
double | getAveHitDoca () const |
size_t | getID () const |
Private Attributes | |
bool | fSvdOK |
SVD Decomposition was successful. More... | |
int | fNumHitsUsed |
Number of hits in the decomposition. More... | |
double | fEigenValues [3] |
Eigen values from SVD decomposition. More... | |
EigenVectors | fEigenVectors |
The three principle axes. More... | |
double | fAvePosition [3] |
Average position of hits fed to PCA. More... | |
double | fAveHitDoca |
Average doca of hits used in PCA. More... | |
size_t | fID |
axis ID More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const PCAxis &a) |
bool | operator< (const PCAxis &a, const PCAxis &b) |
typedef std::vector<std::vector<double> > recob::PCAxis::EigenVectors |
recob::PCAxis::PCAxis | ( | ) |
Definition at line 20 of file PCAxis.cxx.
recob::PCAxis::PCAxis | ( | bool | ok, |
int | nHits, | ||
const double * | eigenValues, | ||
const EigenVectors & | eigenVecs, | ||
const double * | avePos, | ||
const double | aveHitDoca = 9999. , |
||
size_t | id = 0 |
||
) |
Definition at line 23 of file PCAxis.cxx.
References fAvePosition, and fEigenValues.
|
inline |
Definition at line 82 of file PCAxis.h.
References fAveHitDoca.
Referenced by recob::dumper::DumpPCAxis().
|
inline |
Definition at line 78 of file PCAxis.h.
References fAvePosition.
Referenced by recob::dumper::DumpPCAxis(), and cosmic::CosmicPCAxisTagger::produce().
|
inline |
Definition at line 70 of file PCAxis.h.
References fEigenValues.
Referenced by ShowerRecoTools::ShowerPCAEigenvalueLength::CalculateElement(), recob::dumper::DumpPCAxis(), and cosmic::CosmicPCAxisTagger::produce().
|
inline |
Definition at line 74 of file PCAxis.h.
References fEigenVectors.
Referenced by recob::dumper::DumpPCAxis(), ShowerRecoTools::ShowerPCADirection::GetPCAxisVector(), and cosmic::CosmicPCAxisTagger::produce().
|
inline |
Definition at line 86 of file PCAxis.h.
References fID.
Referenced by recob::dumper::DumpPCAxis(), and recob::operator<().
|
inline |
Definition at line 66 of file PCAxis.h.
References fNumHitsUsed.
Referenced by recob::dumper::DumpPCAxis().
|
inline |
Definition at line 62 of file PCAxis.h.
References fSvdOK.
Referenced by recob::dumper::DumpPCAxis().
Definition at line 69 of file PCAxis.cxx.
|
friend |
Definition at line 43 of file PCAxis.cxx.
|
private |
Average doca of hits used in PCA.
Definition at line 36 of file PCAxis.h.
Referenced by getAveHitDoca(), and recob::operator<<().
|
private |
Average position of hits fed to PCA.
Definition at line 35 of file PCAxis.h.
Referenced by getAvePosition(), recob::operator<<(), and PCAxis().
|
private |
Eigen values from SVD decomposition.
Definition at line 33 of file PCAxis.h.
Referenced by getEigenValues(), recob::operator<<(), and PCAxis().
|
private |
The three principle axes.
Definition at line 34 of file PCAxis.h.
Referenced by getEigenVectors(), and recob::operator<<().
|
private |
|
private |
Number of hits in the decomposition.
Definition at line 32 of file PCAxis.h.
Referenced by getNumHitsUsed(), and recob::operator<<().
|
private |
SVD Decomposition was successful.
Definition at line 31 of file PCAxis.h.
Referenced by getSvdOK(), and recob::operator<<().