Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtTensor4C.hh
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | public: | ||||
EvtTensor4C& operator-=( const EvtTensor4C& t2 ); | EvtTensor4C& operator-=( const EvtTensor4C& t2 ); | ||||
EvtTensor4C conj() const; | EvtTensor4C conj() const; | ||||
EvtVector4C cont1( const EvtVector4C& v4 ) const; | EvtVector4C cont1( const EvtVector4C& v4 ) const; | ||||
EvtVector4C cont2( const EvtVector4C& v4 ) const; | EvtVector4C cont2( const EvtVector4C& v4 ) const; | ||||
EvtVector4C cont1( const EvtVector4R& v4 ) const; | EvtVector4C cont1( const EvtVector4R& v4 ) const; | ||||
EvtVector4C cont2( const EvtVector4R& v4 ) const; | EvtVector4C cont2( const EvtVector4R& v4 ) const; | ||||
private: | private: | ||||
EvtComplex t[4][4]; | EvtComplex m_t[4][4]; | ||||
}; | }; | ||||
inline EvtTensor4C operator+( const EvtTensor4C& t1, const EvtTensor4C& t2 ) | inline EvtTensor4C operator+( const EvtTensor4C& t1, const EvtTensor4C& t2 ) | ||||
{ | { | ||||
return EvtTensor4C( t1 ) += t2; | return EvtTensor4C( t1 ) += t2; | ||||
} | } | ||||
inline EvtTensor4C operator-( const EvtTensor4C& t1, const EvtTensor4C& t2 ) | inline EvtTensor4C operator-( const EvtTensor4C& t1, const EvtTensor4C& t2 ) | ||||
{ | { | ||||
return EvtTensor4C( t1 ) -= t2; | return EvtTensor4C( t1 ) -= t2; | ||||
} | } | ||||
inline void EvtTensor4C::set( int i, int j, const EvtComplex& c ) | inline void EvtTensor4C::set( int i, int j, const EvtComplex& c ) | ||||
{ | { | ||||
t[i][j] = c; | m_t[i][j] = c; | ||||
} | } | ||||
inline const EvtComplex& EvtTensor4C::get( int i, int j ) const | inline const EvtComplex& EvtTensor4C::get( int i, int j ) const | ||||
{ | { | ||||
return t[i][j]; | return m_t[i][j]; | ||||
} | } | ||||
inline EvtComplex EvtTensor4C::trace() const | inline EvtComplex EvtTensor4C::trace() const | ||||
{ | { | ||||
return t[0][0] - t[1][1] - t[2][2] - t[3][3]; | return m_t[0][0] - m_t[1][1] - m_t[2][2] - m_t[3][3]; | ||||
} | } | ||||
#endif | #endif |