evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtVector4R.hh>

Public Member Functions

 EvtVector4R ()
 
 EvtVector4R (double e, double px, double py, double pz)
 
void set (int i, double d)
 
void set (double e, double px, double py, double pz)
 
EvtVector4Roperator *= (double c)
 
EvtVector4Roperator/= (double c)
 
EvtVector4Roperator+= (const EvtVector4R &v2)
 
EvtVector4Roperator-= (const EvtVector4R &v2)
 
double get (int i) const
 
double cont (const EvtVector4R &v4) const
 
double mass2 () const
 
double mass () const
 
void applyRotateEuler (double alpha, double beta, double gamma)
 
void applyBoostTo (const EvtVector4R &p4, bool inverse=false)
 
void applyBoostTo (const EvtVector3R &boost, bool inverse=false)
 
EvtVector4R cross (const EvtVector4R &v2)
 
double dot (const EvtVector4R &v2) const
 
double d3mag () const
 
double scalartripler3 (const EvtVector4R &p1, const EvtVector4R &p2, const EvtVector4R &p3) const
 
double dotr3 (const EvtVector4R &p1, const EvtVector4R &p2) const
 
double mag2r3 (const EvtVector4R &p1) const
 
double magr3 (const EvtVector4R &p1) const
 

Private Member Functions

double Square (double x) const
 

Private Attributes

double v [4]
 

Friends

EvtVector4R operator * (double d, const EvtVector4R &v2)
 
EvtVector4R operator * (const EvtVector4R &v2, double d)
 
EvtVector4R operator/ (const EvtVector4R &v2, double d)
 
double operator * (const EvtVector4R &v1, const EvtVector4R &v2)
 
EvtVector4R operator+ (const EvtVector4R &v1, const EvtVector4R &v2)
 
EvtVector4R operator- (const EvtVector4R &v1, const EvtVector4R &v2)
 
std::ostream & operator<< (std::ostream &s, const EvtVector4R &v)
 

Detailed Description

Definition at line 29 of file EvtVector4R.hh.

Constructor & Destructor Documentation

◆ EvtVector4R() [1/2]

EvtVector4R::EvtVector4R ( )

Definition at line 33 of file EvtVector4R.cpp.

◆ EvtVector4R() [2/2]

EvtVector4R::EvtVector4R ( double  e,
double  px,
double  py,
double  pz 
)

Definition at line 41 of file EvtVector4R.cpp.

Member Function Documentation

◆ applyBoostTo() [1/2]

void EvtVector4R::applyBoostTo ( const EvtVector4R p4,
bool  inverse = false 
)

Definition at line 110 of file EvtVector4R.cpp.

◆ applyBoostTo() [2/2]

void EvtVector4R::applyBoostTo ( const EvtVector3R boost,
bool  inverse = false 
)

Definition at line 121 of file EvtVector4R.cpp.

◆ applyRotateEuler()

void EvtVector4R::applyRotateEuler ( double  alpha,
double  beta,
double  gamma 
)

Definition at line 83 of file EvtVector4R.cpp.

◆ cont()

double EvtVector4R::cont ( const EvtVector4R v4) const
inline

Definition at line 147 of file EvtVector4R.hh.

◆ cross()

EvtVector4R EvtVector4R::cross ( const EvtVector4R v2)

Definition at line 173 of file EvtVector4R.cpp.

◆ d3mag()

double EvtVector4R::d3mag ( ) const

Definition at line 188 of file EvtVector4R.cpp.

◆ dot()

double EvtVector4R::dot ( const EvtVector4R v2) const

Definition at line 201 of file EvtVector4R.cpp.

◆ dotr3()

double EvtVector4R::dotr3 ( const EvtVector4R p1,
const EvtVector4R p2 
) const

Definition at line 231 of file EvtVector4R.cpp.

◆ get()

double EvtVector4R::get ( int  i) const
inline

Definition at line 162 of file EvtVector4R.hh.

◆ mag2r3()

double EvtVector4R::mag2r3 ( const EvtVector4R p1) const

Definition at line 238 of file EvtVector4R.cpp.

◆ magr3()

double EvtVector4R::magr3 ( const EvtVector4R p1) const

Definition at line 244 of file EvtVector4R.cpp.

◆ mass()

double EvtVector4R::mass ( ) const

Definition at line 49 of file EvtVector4R.cpp.

◆ mass2()

double EvtVector4R::mass2 ( ) const
inline

Definition at line 100 of file EvtVector4R.hh.

◆ operator *=()

EvtVector4R & EvtVector4R::operator *= ( double  c)
inline

Definition at line 120 of file EvtVector4R.hh.

◆ operator+=()

EvtVector4R & EvtVector4R::operator+= ( const EvtVector4R v2)
inline

Definition at line 80 of file EvtVector4R.hh.

◆ operator-=()

EvtVector4R & EvtVector4R::operator-= ( const EvtVector4R v2)
inline

Definition at line 90 of file EvtVector4R.hh.

◆ operator/=()

EvtVector4R & EvtVector4R::operator/= ( double  c)
inline

Definition at line 130 of file EvtVector4R.hh.

◆ scalartripler3()

double EvtVector4R::scalartripler3 ( const EvtVector4R p1,
const EvtVector4R p2,
const EvtVector4R p3 
) const

Definition at line 219 of file EvtVector4R.cpp.

◆ set() [1/2]

void EvtVector4R::set ( int  i,
double  d 
)
inline

Definition at line 167 of file EvtVector4R.hh.

◆ set() [2/2]

void EvtVector4R::set ( double  e,
double  px,
double  py,
double  pz 
)
inline

Definition at line 172 of file EvtVector4R.hh.

◆ Square()

double EvtVector4R::Square ( double  x) const
inlineprivate

Definition at line 70 of file EvtVector4R.hh.

Friends And Related Function Documentation

◆ operator * [1/3]

EvtVector4R operator * ( double  d,
const EvtVector4R v2 
)
friend

Definition at line 105 of file EvtVector4R.hh.

◆ operator * [2/3]

EvtVector4R operator * ( const EvtVector4R v2,
double  d 
)
friend

Definition at line 110 of file EvtVector4R.hh.

◆ operator * [3/3]

double operator * ( const EvtVector4R v1,
const EvtVector4R v2 
)
friend

Definition at line 141 of file EvtVector4R.hh.

◆ operator+

EvtVector4R operator+ ( const EvtVector4R v1,
const EvtVector4R v2 
)
friend

Definition at line 157 of file EvtVector4R.hh.

◆ operator-

EvtVector4R operator- ( const EvtVector4R v1,
const EvtVector4R v2 
)
friend

Definition at line 152 of file EvtVector4R.hh.

◆ operator/

EvtVector4R operator/ ( const EvtVector4R v2,
double  d 
)
friend

Definition at line 115 of file EvtVector4R.hh.

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const EvtVector4R v 
)
friend

Member Data Documentation

◆ v

double EvtVector4R::v[4]
private

Definition at line 68 of file EvtVector4R.hh.


The documentation for this class was generated from the following files: