All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D Class Reference

Public Types

using EigenValues = Eigen::Vector3d
 
using EigenVectors = Eigen::Matrix3d
 

Public Member Functions

 PrincipalComponents3D ()
 
 PrincipalComponents3D (bool ok, int nHits, const EigenValues &eigenValues, const EigenVectors &eigenVecs, const Eigen::Vector3d &avePos)
 
bool getSvdOK () const
 
int getNumHitsUsed () const
 
const EigenValuesgetEigenValues () const
 
const EigenVectorsgetEigenVectors () const
 
const Eigen::Vector3d & getAvePosition () const
 
void flipAxis (size_t axis)
 

Private Attributes

bool fSVD_OK
 SVD Decomposition was successful. More...
 
int fNumHitsUsed
 Number of hits in the decomposition. More...
 
EigenValues fEigenValues
 Eigen values from SVD decomposition. More...
 
EigenVectors fEigenVectors
 The three principle axes. More...
 
Eigen::Vector3d fAvePosition
 Average position of hits fed to PCA. More...
 

Detailed Description

Definition at line 144 of file TPCPurityMonitor_module.cc.

Member Typedef Documentation

Definition at line 148 of file TPCPurityMonitor_module.cc.

Definition at line 149 of file TPCPurityMonitor_module.cc.

Constructor & Destructor Documentation

TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::PrincipalComponents3D ( )
inline

Definition at line 151 of file TPCPurityMonitor_module.cc.

151  :
152  fSVD_OK(false), fNumHitsUsed(0), fEigenValues(EigenValues::Zero()), fEigenVectors(EigenVectors::Zero()), fAvePosition(Eigen::Vector3d::Zero()) {}
Eigen::Vector3d fAvePosition
Average position of hits fed to PCA.
EigenValues fEigenValues
Eigen values from SVD decomposition.
TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::PrincipalComponents3D ( bool  ok,
int  nHits,
const EigenValues eigenValues,
const EigenVectors eigenVecs,
const Eigen::Vector3d &  avePos 
)
inline

Definition at line 154 of file TPCPurityMonitor_module.cc.

154  :
155  fSVD_OK(ok), fNumHitsUsed(nHits), fEigenValues(eigenValues), fEigenVectors(eigenVecs), fAvePosition(avePos) {}
Eigen::Vector3d fAvePosition
Average position of hits fed to PCA.
EigenValues fEigenValues
Eigen values from SVD decomposition.

Member Function Documentation

void TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::flipAxis ( size_t  axis)
inline

Definition at line 162 of file TPCPurityMonitor_module.cc.

162 { fEigenVectors.row(axis) = -fEigenVectors.row(axis);}
const Eigen::Vector3d& TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::getAvePosition ( ) const
inline

Definition at line 161 of file TPCPurityMonitor_module.cc.

161 {return fAvePosition;}
Eigen::Vector3d fAvePosition
Average position of hits fed to PCA.
const EigenValues& TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::getEigenValues ( ) const
inline

Definition at line 159 of file TPCPurityMonitor_module.cc.

159 {return fEigenValues;}
EigenValues fEigenValues
Eigen values from SVD decomposition.
const EigenVectors& TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::getEigenVectors ( ) const
inline

Definition at line 160 of file TPCPurityMonitor_module.cc.

160 {return fEigenVectors;}
int TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::getNumHitsUsed ( ) const
inline

Definition at line 158 of file TPCPurityMonitor_module.cc.

158 {return fNumHitsUsed;}
bool TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::getSvdOK ( ) const
inline

Definition at line 157 of file TPCPurityMonitor_module.cc.

157 {return fSVD_OK;}

Member Data Documentation

Eigen::Vector3d TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::fAvePosition
private

Average position of hits fed to PCA.

Definition at line 170 of file TPCPurityMonitor_module.cc.

EigenValues TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::fEigenValues
private

Eigen values from SVD decomposition.

Definition at line 168 of file TPCPurityMonitor_module.cc.

EigenVectors TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::fEigenVectors
private

The three principle axes.

Definition at line 169 of file TPCPurityMonitor_module.cc.

int TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::fNumHitsUsed
private

Number of hits in the decomposition.

Definition at line 167 of file TPCPurityMonitor_module.cc.

bool TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents3D::fSVD_OK
private

SVD Decomposition was successful.

Definition at line 166 of file TPCPurityMonitor_module.cc.


The documentation for this class was generated from the following file: