#include <PCAxis.h>
Definition at line 25 of file PCAxis.h.
recob::PCAxis::PCAxis |
( |
| ) |
|
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 26 of file PCAxis.cxx.
bool fSvdOK
SVD Decomposition was successful.
double fEigenValues[3]
Eigen values from SVD decomposition.
EigenVectors fEigenVectors
The three principle axes.
int fNumHitsUsed
Number of hits in the decomposition.
double fAveHitDoca
Average doca of hits used in PCA.
double fAvePosition[3]
Average position of hits fed to PCA.
double recob::PCAxis::getAveHitDoca |
( |
| ) |
const |
|
inline |
Definition at line 68 of file PCAxis.h.
double fAveHitDoca
Average doca of hits used in PCA.
const double * recob::PCAxis::getAvePosition |
( |
| ) |
const |
|
inline |
Definition at line 67 of file PCAxis.h.
double fAvePosition[3]
Average position of hits fed to PCA.
const double * recob::PCAxis::getEigenValues |
( |
| ) |
const |
|
inline |
Definition at line 65 of file PCAxis.h.
double fEigenValues[3]
Eigen values from SVD decomposition.
Definition at line 66 of file PCAxis.h.
EigenVectors fEigenVectors
The three principle axes.
size_t recob::PCAxis::getID |
( |
| ) |
const |
|
inline |
int recob::PCAxis::getNumHitsUsed |
( |
| ) |
const |
|
inline |
Definition at line 64 of file PCAxis.h.
int fNumHitsUsed
Number of hits in the decomposition.
bool recob::PCAxis::getSvdOK |
( |
| ) |
const |
|
inline |
Definition at line 63 of file PCAxis.h.
bool fSvdOK
SVD Decomposition was successful.
Definition at line 73 of file PCAxis.cxx.
75 if(
a.getID() != b.
getID())
76 return a.getID() < b.getID();
std::ostream& operator<< |
( |
std::ostream & |
o, |
|
|
const PCAxis & |
a |
|
) |
| |
|
friend |
Definition at line 50 of file PCAxis.cxx.
54 o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
55 o <<
" PCAxis ID " <<
a.fID <<
" run with " <<
a.fNumHitsUsed <<
" space points" << std::endl;
56 o <<
" - center position: " << std::setw(6) <<
a.fAvePosition[0] <<
", " <<
a.fAvePosition[1] <<
", " <<
a.fAvePosition[2] << std::endl;
57 o <<
" - eigen values: " << std::setw(8) <<
std::right <<
a.fEigenValues[0] <<
", "
58 <<
a.fEigenValues[1] <<
", " <<
a.fEigenValues[2] << std::endl;
59 o <<
" - average doca: " <<
a.fAveHitDoca << std::endl;
60 o <<
" - Principle axis: " << std::setw(7) << std::setprecision(4) <<
a.fEigenVectors[0][0] <<
", " <<
a.fEigenVectors[0][1] <<
", " <<
a.fEigenVectors[0][2] << std::endl;
61 o <<
" - second axis: " << std::setw(7) << std::setprecision(4) <<
a.fEigenVectors[1][0] <<
", " <<
a.fEigenVectors[1][1] <<
", " <<
a.fEigenVectors[1][2] << std::endl;
62 o <<
" - third axis: " << std::setw(7) << std::setprecision(4) <<
a.fEigenVectors[2][0] <<
", " <<
a.fEigenVectors[2][1] <<
", " <<
a.fEigenVectors[2][2] << std::endl;
65 o <<
" Principal Components Axis is not valid" << std::endl;
double recob::PCAxis::fAveHitDoca |
|
private |
Average doca of hits used in PCA.
Definition at line 40 of file PCAxis.h.
double recob::PCAxis::fAvePosition[3] |
|
private |
Average position of hits fed to PCA.
Definition at line 39 of file PCAxis.h.
double recob::PCAxis::fEigenValues[3] |
|
private |
Eigen values from SVD decomposition.
Definition at line 37 of file PCAxis.h.
The three principle axes.
Definition at line 38 of file PCAxis.h.
size_t recob::PCAxis::fID |
|
private |
int recob::PCAxis::fNumHitsUsed |
|
private |
Number of hits in the decomposition.
Definition at line 36 of file PCAxis.h.
bool recob::PCAxis::fSvdOK |
|
private |
SVD Decomposition was successful.
Definition at line 35 of file PCAxis.h.
The documentation for this class was generated from the following files: