![]() |
Belle II Software
light-2303-iriomote
|
Yet another four vector class, with metric +—. More...
#include <FourVector.h>

Public Member Functions | |
| FourVector () | |
| Default constructor. | |
| FourVector (double E_, double px_, double py_, double pz_) | |
| Constructor from the components. | |
| FourVector (double E_, const ThreeVector &p_) | |
| Constructor from energy and three momentum. | |
| FourVector (const ThreeVector &p_, double m_) | |
| Constructor from three momentum and mass. | |
| double | getE () const |
| Returns the energy / 0 component. | |
| double | getPx () const |
| Returns the x momentum / 1 component. | |
| double | getPy () const |
| Returns the y momentum / 2 component. | |
| double | getPz () const |
| Returns the z momentum / 3 component. | |
| double | getM2 () const |
| Returns the mass squared / magnitude squared. | |
| double | getM () const |
| Returns the mass / magnitude. | |
| double | getMass () const |
| Returns the mass / magnitude. | |
| double | getP2 () const |
| Returns the momentum squared / magnitude of the three vector squared. | |
| double | getP () const |
| Returns the momentum / magnitude of the three vector. | |
| double | getPt2 () const |
| Returns the transverse momentum squared / magnitude of the 1 and 2 component vector squared. | |
| double | getPt () const |
| Returns the transverse momentum / magnitude of the 1 and 2 component vector. | |
| double | getPhi () const |
| Returns the azimuthal angle of the momentum / three vector squared. | |
| double | getTheta () const |
| Returns the polar angle of the momentum / three vector squared. | |
| double | getEta () const |
| Returns the pseudo rapidity of the momentum / three vector squared. | |
| double | getComponent (int i) const |
| Returns the i'th component (starting from 0=energy) | |
| ThreeVector | getBeta () const |
| double | getGamma () const |
| ThreeVector | getBetaGamma () const |
| const ThreeVector & | getThreeVector () const |
| Returns the momentum three vector. | |
| FourVector & | boost (const FourVector &P) |
| void | decayto (FourVector &d1, FourVector &d2) const |
| void | setValues (double E_, double px_, double py_, double pz_) |
| FourVector & | operator+= (const FourVector &rhs) |
| FourVector & | operator-= (const FourVector &rhs) |
| FourVector & | operator*= (double rhs) |
Private Attributes | |
| double | E |
| The energy / 0 component. | |
| ThreeVector | p |
| The momentum three vector. | |
Related Functions | |
(Note that these are not member functions.) | |
| FourVector | operator+ (const FourVector &lhs, const FourVector &rhs) |
| Sum of two four vectors. | |
| FourVector | operator- (const FourVector &lhs, const FourVector &rhs) |
| Difference of two four vectors. | |
| FourVector | operator- (const FourVector &rhs) |
| Negative of a four vector. | |
| FourVector | operator* (double lhs, const FourVector &rhs) |
| Scalar product of a four vector. | |
| double | operator* (const FourVector &lhs, const FourVector &rhs) |
| Scalar product of a four vector. | |
| std::ostream & | operator<< (std::ostream &os, const FourVector &rhs) |
| Prints a four vector. | |
Yet another four vector class, with metric +—.
Author: Benno List Last update:
by:
Definition at line 43 of file FourVector.h.