10#include <Math/Vector3D.h>
46 void setMomenta(
const std::vector<ROOT::Math::XYZVector>& momenta)
64 return (i < 0 || i > 3) ? 0. :
m_lambda[i];
72 ROOT::Math::XYZVector 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...
std::vector< ROOT::Math::XYZVector > m_momenta
The particles' momenta.
SphericityEigenvalues(const std::vector< ROOT::Math::XYZVector > &momenta)
Constructor with an array of 3-momenta.
void calculateEigenvalues()
Calculates eigenvalues and eigenvectors.
void setMomenta(const std::vector< ROOT::Math::XYZVector > &momenta)
Sets the list of momenta to be used in the calculation overwriting the previous values.
ROOT::Math::XYZVector getEigenvector(short i) const
Returns the i-th Eigenvector.
~SphericityEigenvalues()
Default destructor.
double getEigenvalue(short i) const
Returns the i-th Eigenvalue.
ROOT::Math::XYZVector m_eVector[3]
The eigenvectors.
double m_lambda[3]
The eigenvalues.
Abstract base class for different kinds of events.