ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::FourMomentum Class Reference

ComPWA four momentum class. More...

#include <FourMomentum.hpp>

Public Member Functions

 FourMomentum ()
 
 FourMomentum (double E)
 
 FourMomentum (double Px, double Py, double Pz, double E)
 
 FourMomentum (std::array< double, 4 > P4_)
 
 FourMomentum (std::vector< double > P4_)
 
double px () const
 
double py () const
 
double pz () const
 
double e () const
 
FourMomentum operator+ (const FourMomentum &pB) const
 
void operator+= (const FourMomentum &pB)
 
bool operator== (const FourMomentum &pB) const
 
double invariantMassSquared () const
 
double invariantMass () const
 
double threeMomentumSquared () const
 

Private Attributes

std::array< double, 4 > P4
 

Friends

std::ostream & operator<< (std::ostream &stream, const FourMomentum &p4)
 

Detailed Description

ComPWA four momentum class.

Definition at line 21 of file FourMomentum.hpp.

+ Collaboration diagram for ComPWA::FourMomentum:

Constructor & Destructor Documentation

◆ FourMomentum() [1/5]

ComPWA::FourMomentum::FourMomentum ( )
inline

Definition at line 24 of file FourMomentum.hpp.

◆ FourMomentum() [2/5]

ComPWA::FourMomentum::FourMomentum ( double  E)
inline

Definition at line 25 of file FourMomentum.hpp.

◆ FourMomentum() [3/5]

ComPWA::FourMomentum::FourMomentum ( double  Px,
double  Py,
double  Pz,
double  E 
)
inline

Definition at line 27 of file FourMomentum.hpp.

◆ FourMomentum() [4/5]

ComPWA::FourMomentum::FourMomentum ( std::array< double, 4 >  P4_)
inline

Definition at line 31 of file FourMomentum.hpp.

◆ FourMomentum() [5/5]

ComPWA::FourMomentum::FourMomentum ( std::vector< double >  P4_)
inline

Definition at line 33 of file FourMomentum.hpp.

Member Function Documentation

◆ e()

double ComPWA::FourMomentum::e ( ) const
inline

Definition at line 44 of file FourMomentum.hpp.

◆ invariantMass()

double ComPWA::FourMomentum::invariantMass ( ) const
inline

Definition at line 70 of file FourMomentum.hpp.

◆ invariantMassSquared()

double ComPWA::FourMomentum::invariantMassSquared ( ) const
inline

Definition at line 65 of file FourMomentum.hpp.

◆ operator+()

FourMomentum ComPWA::FourMomentum::operator+ ( const FourMomentum pB) const
inline

Definition at line 46 of file FourMomentum.hpp.

◆ operator+=()

void ComPWA::FourMomentum::operator+= ( const FourMomentum pB)
inline

Definition at line 52 of file FourMomentum.hpp.

◆ operator==()

bool ComPWA::FourMomentum::operator== ( const FourMomentum pB) const
inline

Definition at line 57 of file FourMomentum.hpp.

◆ px()

double ComPWA::FourMomentum::px ( ) const
inline

Definition at line 41 of file FourMomentum.hpp.

◆ py()

double ComPWA::FourMomentum::py ( ) const
inline

Definition at line 42 of file FourMomentum.hpp.

◆ pz()

double ComPWA::FourMomentum::pz ( ) const
inline

Definition at line 43 of file FourMomentum.hpp.

◆ threeMomentumSquared()

double ComPWA::FourMomentum::threeMomentumSquared ( ) const
inline

Definition at line 72 of file FourMomentum.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const FourMomentum p4 
)
friend

Definition at line 59 of file FourMomentum.hpp.

Member Data Documentation

◆ P4

std::array<double, 4> ComPWA::FourMomentum::P4
private

Definition at line 77 of file FourMomentum.hpp.


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