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::PrincipalComponents2D Class Reference

Public Types

using EigenValues = Eigen::Vector2d
 
using EigenVectors = Eigen::Matrix2d
 

Public Member Functions

 PrincipalComponents2D ()
 
 PrincipalComponents2D (bool ok, int nHits, const EigenValues &eigenValues, const EigenVectors &eigenVecs, const Eigen::Vector2d &avePos)
 
bool getSvdOK () const
 
int getNumHitsUsed () const
 
const EigenValuesgetEigenValues () const
 
const EigenVectorsgetEigenVectors () const
 
const Eigen::Vector2d & 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::Vector2d fAvePosition
 Average position of hits fed to PCA. More...
 

Detailed Description

Definition at line 114 of file TPCPurityMonitor_module.cc.

Member Typedef Documentation

Definition at line 118 of file TPCPurityMonitor_module.cc.

Definition at line 119 of file TPCPurityMonitor_module.cc.

Constructor & Destructor Documentation

TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::PrincipalComponents2D ( )
inline

Definition at line 121 of file TPCPurityMonitor_module.cc.

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

Definition at line 124 of file TPCPurityMonitor_module.cc.

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

Member Function Documentation

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

Definition at line 132 of file TPCPurityMonitor_module.cc.

132 { fEigenVectors.row(axis) = -fEigenVectors.row(axis);}
const Eigen::Vector2d& TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::getAvePosition ( ) const
inline

Definition at line 131 of file TPCPurityMonitor_module.cc.

131 {return fAvePosition;}
Eigen::Vector2d fAvePosition
Average position of hits fed to PCA.
const EigenValues& TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::getEigenValues ( ) const
inline

Definition at line 129 of file TPCPurityMonitor_module.cc.

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

Definition at line 130 of file TPCPurityMonitor_module.cc.

130 {return fEigenVectors;}
int TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::getNumHitsUsed ( ) const
inline

Definition at line 128 of file TPCPurityMonitor_module.cc.

128 {return fNumHitsUsed;}
bool TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::getSvdOK ( ) const
inline

Definition at line 127 of file TPCPurityMonitor_module.cc.

127 {return fSVD_OK;}

Member Data Documentation

Eigen::Vector2d TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::fAvePosition
private

Average position of hits fed to PCA.

Definition at line 140 of file TPCPurityMonitor_module.cc.

EigenValues TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::fEigenValues
private

Eigen values from SVD decomposition.

Definition at line 138 of file TPCPurityMonitor_module.cc.

EigenVectors TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::fEigenVectors
private

The three principle axes.

Definition at line 139 of file TPCPurityMonitor_module.cc.

int TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::fNumHitsUsed
private

Number of hits in the decomposition.

Definition at line 137 of file TPCPurityMonitor_module.cc.

bool TPCPurityMonitor::TPCPurityMonitor::PrincipalComponents2D::fSVD_OK
private

SVD Decomposition was successful.

Definition at line 136 of file TPCPurityMonitor_module.cc.


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