Belle II Software development
|
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.
|
inline |
Default constructor.
Definition at line 111 of file FourVector.h.
|
inline |
Constructor from the components.
Definition at line 115 of file FourVector.h.
|
inline |
Constructor from energy and three momentum.
Definition at line 119 of file FourVector.h.
|
inline |
Constructor from three momentum and mass.
Definition at line 123 of file FourVector.h.
|
inline |
Definition at line 89 of file FourVector.h.
|
inline |
Definition at line 91 of file FourVector.h.
|
inline |
Returns the i'th component (starting from 0=energy)
Definition at line 147 of file FourVector.h.
|
inline |
|
inline |
Returns the pseudo rapidity of the momentum / three vector squared.
Definition at line 145 of file FourVector.h.
|
inline |
Definition at line 90 of file FourVector.h.
|
inline |
Returns the mass / magnitude.
Definition at line 139 of file FourVector.h.
|
inline |
Returns the mass squared / magnitude squared.
Definition at line 138 of file FourVector.h.
|
inline |
|
inline |
|
inline |
Returns the momentum squared / magnitude of the three vector squared.
Definition at line 135 of file FourVector.h.
|
inline |
Returns the azimuthal angle of the momentum / three vector squared.
Definition at line 142 of file FourVector.h.
|
inline |
Returns the transverse momentum / magnitude of the 1 and 2 component vector.
Definition at line 133 of file FourVector.h.
|
inline |
Returns the transverse momentum squared / magnitude of the 1 and 2 component vector squared.
Definition at line 132 of file FourVector.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the polar angle of the momentum / three vector squared.
Definition at line 143 of file FourVector.h.
|
inline |
|
inline |
Definition at line 177 of file FourVector.h.
|
inline |
Definition at line 163 of file FourVector.h.
|
inline |
Definition at line 170 of file FourVector.h.
|
inline |
Definition at line 157 of file FourVector.h.
|
related |
Scalar product of a four vector.
Definition at line 224 of file FourVector.h.
|
related |
Scalar product of a four vector.
Definition at line 215 of file FourVector.h.
|
related |
Sum of two four vectors.
Definition at line 188 of file FourVector.h.
|
related |
Difference of two four vectors.
Definition at line 197 of file FourVector.h.
|
related |
Negative of a four vector.
Definition at line 206 of file FourVector.h.
|
related |
Prints a four vector.
Definition at line 234 of file FourVector.h.
|
private |
The energy / 0 component.
Definition at line 107 of file FourVector.h.
|
private |
The momentum three vector.
Definition at line 108 of file FourVector.h.