64 return (i < 0 || i > 3) ? 0. :
m_lambda[i];
72 TVector3 nullVector(0., 0., 0.);
73 return (i < 0 || i > 3) ? nullVector :
m_eVector[i];
Class to calculate the Sphericity tensor eigenvalues and eigenvectors starting from an array of 3-mom...
void setMomenta(const std::vector< TVector3 > &momenta)
Sets the list of momenta to be used in the calculation overwriting the previous values.
TVector3 getEigenvector(short i) const
Returns the i-th Eigenvector.
void calculateEigenvalues()
Calculates eigenvalues and eigenvectors.
TVector3 m_eVector[3]
The eigenvectors.
~SphericityEigenvalues()
Default destructor.
double getEigenvalue(short i) const
Returns the i-th Eigenvalue.
SphericityEigenvalues(const std::vector< TVector3 > &momenta)
Constructor with an array of 3-momenta.
std::vector< TVector3 > m_momenta
The particles' momenta.
double m_lambda[3]
The eigenvalues.
Abstract base class for different kinds of events.