Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtVector4C.hh
Show All 39 Lines | class EvtVector4C final { | ||||
inline friend EvtComplex operator*( const EvtVector4C& v1, | inline friend EvtComplex operator*( const EvtVector4C& v1, | ||||
const EvtVector4R& v2 ); | const EvtVector4R& v2 ); | ||||
inline friend EvtComplex operator*( const EvtVector4C& v1, | inline friend EvtComplex operator*( const EvtVector4C& v1, | ||||
const EvtVector4C& v2 ); | const EvtVector4C& v2 ); | ||||
friend EvtVector4C operator+( const EvtVector4C& v1, const EvtVector4C& v2 ); | friend EvtVector4C operator+( const EvtVector4C& v1, const EvtVector4C& v2 ); | ||||
friend EvtVector4C operator-( const EvtVector4C& v1, const EvtVector4C& v2 ); | friend EvtVector4C operator-( const EvtVector4C& v1, const EvtVector4C& v2 ); | ||||
public: | public: | ||||
EvtVector4C(); | inline EvtVector4C(){}; | ||||
EvtVector4C( const EvtComplex&, const EvtComplex&, const EvtComplex&, | inline EvtVector4C( const EvtComplex&, const EvtComplex&, const EvtComplex&, | ||||
const EvtComplex& ); | const EvtComplex& ); | ||||
inline void set( int, const EvtComplex& ); | inline void set( int, const EvtComplex& ); | ||||
inline void set( const EvtComplex&, const EvtComplex&, const EvtComplex&, | inline void set( const EvtComplex&, const EvtComplex&, const EvtComplex&, | ||||
const EvtComplex& ); | const EvtComplex& ); | ||||
inline void set( double, double, double, double ); | inline void set( double, double, double, double ); | ||||
inline EvtVector4C( const EvtVector4R& v1 ); | inline EvtVector4C( const EvtVector4R& v1 ); | ||||
inline const EvtComplex& get( int ) const; | inline const EvtComplex& get( int ) const; | ||||
inline EvtComplex cont( const EvtVector4C& v4 ) const; | inline EvtComplex cont( const EvtVector4C& v4 ) const; | ||||
inline EvtVector4C conj() const; | inline EvtVector4C conj() const; | ||||
EvtVector3C vec() const; | EvtVector3C vec() const; | ||||
inline EvtVector4C& operator-=( const EvtVector4C& v2 ); | inline EvtVector4C& operator-=( const EvtVector4C& v2 ); | ||||
inline EvtVector4C& operator+=( const EvtVector4C& v2 ); | inline EvtVector4C& operator+=( const EvtVector4C& v2 ); | ||||
inline EvtVector4C& operator*=( const EvtComplex& c ); | inline EvtVector4C& operator*=( const EvtComplex& c ); | ||||
void applyRotateEuler( double alpha, double beta, double gamma ); | void applyRotateEuler( double alpha, double beta, double gamma ); | ||||
void applyBoostTo( const EvtVector4R& p4 ); | void applyBoostTo( const EvtVector4R& p4 ); | ||||
void applyBoostTo( const EvtVector3R& boost ); | void applyBoostTo( const EvtVector3R& boost ); | ||||
friend std::ostream& operator<<( std::ostream& s, const EvtVector4C& v ); | friend std::ostream& operator<<( std::ostream& s, const EvtVector4C& v ); | ||||
double dot( const EvtVector4C& p2 ); | double dot( const EvtVector4C& p2 ); | ||||
private: | private: | ||||
EvtComplex v[4]; | EvtComplex v[4]; | ||||
}; | }; | ||||
inline EvtVector4C::EvtVector4C( const EvtComplex& e0, const EvtComplex& e1, | |||||
const EvtComplex& e2, const EvtComplex& e3 ) | |||||
{ | |||||
v[0] = e0; | |||||
v[1] = e1; | |||||
v[2] = e2; | |||||
v[3] = e3; | |||||
} | |||||
EvtVector4C rotateEuler( const EvtVector4C& e, double alpha, double beta, | EvtVector4C rotateEuler( const EvtVector4C& e, double alpha, double beta, | ||||
double gamma ); | double gamma ); | ||||
EvtVector4C boostTo( const EvtVector4C& e, const EvtVector4R p4 ); | EvtVector4C boostTo( const EvtVector4C& e, const EvtVector4R p4 ); | ||||
EvtVector4C boostTo( const EvtVector4C& e, const EvtVector3R boost ); | EvtVector4C boostTo( const EvtVector4C& e, const EvtVector3R boost ); | ||||
inline EvtVector4C& EvtVector4C::operator+=( const EvtVector4C& v2 ) | inline EvtVector4C& EvtVector4C::operator+=( const EvtVector4C& v2 ) | ||||
{ | { | ||||
v[0] += v2.v[0]; | v[0] += v2.v[0]; | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |