Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-19 09:09:41

0001 #ifndef Analysis_Observables_Momentum_Tensor_H
0002 #define Analysis_Observables_Momentum_Tensor_H
0003 
0004 #include "ATOOLS/Math/Vector.H"
0005 #include "ATOOLS/Math/Matrix.H"
0006 #include "ATOOLS/Phys/Particle_List.H"
0007 
0008 namespace ANALYSIS {
0009   class Momentum_Tensor {
0010   protected:
0011     double m_power;
0012     double m_eigenvalues[3];
0013     ATOOLS::Vec3D m_eigenvectors[3];
0014   public:
0015     Momentum_Tensor(double power);
0016     void Calculate(const ATOOLS::Particle_List & pl);
0017     void Evaluate(const ATOOLS::Matrix<3> & m);
0018     double EigenValue(const int i){ return m_eigenvalues[i]; }
0019     const ATOOLS::Vec3D & EigenVector(const int i) { return m_eigenvectors[i]; }
0020   };
0021 }
0022 
0023 
0024 #endif