Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtTensor4C.hh
Show All 27 Lines | |||||
class EvtVector4C; | class EvtVector4C; | ||||
class EvtVector4R; | class EvtVector4R; | ||||
class EvtVector3R; | class EvtVector3R; | ||||
namespace EvtGenFunctions { | namespace EvtGenFunctions { | ||||
EvtTensor4C directProd( const EvtVector4R& c1, const EvtVector4R& c2 ); | EvtTensor4C directProd( const EvtVector4R& c1, const EvtVector4R& c2 ); | ||||
EvtTensor4C directProd( const EvtVector4C& c1, const EvtVector4C& c2 ); | EvtTensor4C directProd( const EvtVector4C& c1, const EvtVector4C& c2 ); | ||||
EvtTensor4C directProd( const EvtVector4C& c1, const EvtVector4R& c2 ); | EvtTensor4C directProd( const EvtVector4C& c1, const EvtVector4R& c2 ); | ||||
EvtTensor4C asymProd( const EvtVector4R&, const EvtVector4R& ); | |||||
EvtVector4R asymProd( const EvtVector4R& a, const EvtVector4R& b, | |||||
const EvtVector4R& c ); | |||||
EvtVector4C asymProd( const EvtVector4C& a, const EvtVector4R& b, | |||||
const EvtVector4R& c ); | |||||
} // namespace EvtGenFunctions | } // namespace EvtGenFunctions | ||||
class EvtTensor4C final { | class EvtTensor4C final { | ||||
friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4R& c1, | friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4R& c1, | ||||
const EvtVector4R& c2 ); | const EvtVector4R& c2 ); | ||||
friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4C& c1, | friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4C& c1, | ||||
const EvtVector4C& c2 ); | const EvtVector4C& c2 ); | ||||
friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4C& c1, | friend EvtTensor4C EvtGenFunctions::directProd( const EvtVector4C& c1, | ||||
const EvtVector4R& c2 ); | const EvtVector4R& c2 ); | ||||
friend EvtTensor4C EvtGenFunctions::asymProd( const EvtVector4R&, | |||||
const EvtVector4R& ); | |||||
friend EvtTensor4C rotateEuler( const EvtTensor4C& e, double alpha, | friend EvtTensor4C rotateEuler( const EvtTensor4C& e, double alpha, | ||||
double beta, double gamma ); | double beta, double gamma ); | ||||
friend EvtTensor4C boostTo( const EvtTensor4C& e, const EvtVector4R p4 ); | friend EvtTensor4C boostTo( const EvtTensor4C& e, const EvtVector4R p4 ); | ||||
friend EvtTensor4C boostTo( const EvtTensor4C& e, const EvtVector3R boost ); | friend EvtTensor4C boostTo( const EvtTensor4C& e, const EvtVector3R boost ); | ||||
friend EvtTensor4C dual( const EvtTensor4C& t2 ); | friend EvtTensor4C dual( const EvtTensor4C& t2 ); | ||||
friend EvtTensor4C conj( const EvtTensor4C& t2 ); | friend EvtTensor4C conj( const EvtTensor4C& t2 ); | ||||
friend EvtTensor4C cont22( const EvtTensor4C& t1, const EvtTensor4C& t2 ); | friend EvtTensor4C cont22( const EvtTensor4C& t1, const EvtTensor4C& t2 ); | ||||
Show All 31 Lines | public: | ||||
friend std::ostream& operator<<( std::ostream& s, const EvtTensor4C& t ); | friend std::ostream& operator<<( std::ostream& s, const EvtTensor4C& t ); | ||||
EvtTensor4C& operator+=( const EvtTensor4C& t2 ); | EvtTensor4C& operator+=( const EvtTensor4C& t2 ); | ||||
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; | ||||
EvtTensor4C& addScaled( EvtComplex, const EvtTensor4C& ); | |||||
private: | private: | ||||
EvtComplex t[4][4]; | EvtComplex 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; | ||||
Show All 23 Lines |