|
| | lorentz4 () |
| | Default constructor (uninitialized). More...
|
| |
| | lorentz4 (double _px, double _py, double _pz, double _e) |
| | Construct from px, py, pz, and energy. More...
|
| |
| | lorentz4 (vector3 v, double energy) |
| | Construct from a 3-vector and energy. More...
|
| |
| | ~lorentz4 () |
| |
| double | px () const |
| |
| double | py () const |
| |
| double | pz () const |
| |
| double | x () const |
| |
| double | y () const |
| |
| double | z () const |
| |
| double | theta () const |
| |
| double | phi () const |
| |
| double | m2 () const |
| |
| double | p () const |
| |
| double | e () const |
| |
| double | t () const |
| |
| vector3 | vect () const |
| |
| void | setX (double _p) |
| | Set the X momentum component. More...
|
| |
| void | setY (double _p) |
| | Set the Y momentum component. More...
|
| |
| void | setZ (double _p) |
| | Set the Z momentum component. More...
|
| |
| void | setT (double _eg) |
| | Set the energy/time component. More...
|
| |
| void | setXYZM (double _x, double _y, double _z, double _m) |
| | Set components from momentum and mass; energy is computed. More...
|
| |
| void | setXYZE (double _x, double _y, double _z, double _e) |
| | Set components from momentum and energy directly. More...
|
| |
| void | setVectM (vector3 &_v, double _mass) |
| | Set from a 3-vector and mass; energy is computed. More...
|
| |
| void | rotateX (double angle) |
| | Rotate the 3-momentum around the X axis. More...
|
| |
| void | rotateY (double angle) |
| | Rotate the 3-momentum around the Y axis. More...
|
| |
| void | rotateZ (double angle) |
| | Rotate the 3-momentum around the Z axis. More...
|
| |
| double | m () const |
| |
| vector3 | boostVector () |
| |
| void | boost (vector3 vb) |
| | Apply a Lorentz boost using a boost vector. More...
|
| |
| void | boost (double bx, double by, double bz) |
| | Apply a Lorentz boost using beta components. More...
|
| |
| void | print (const char *_line="LV ") |
| | Print the Lorentz vector components, magnitude, and mass to stdout. More...
|
| |
| lorentz4 & | operator= (const lorentz4 &) |
| | Copy-assignment operator. More...
|
| |
| lorentz4 | operator+ (const lorentz4 &) const |
| | Lorentz vector addition. More...
|
| |
| lorentz4 | operator- (const lorentz4 &) const |
| | Lorentz vector subtraction. More...
|
| |
| lorentz4 & | operator+= (const lorentz4 &) |
| | Add another Lorentz vector to this one in place. More...
|
| |
| lorentz4 & | operator-= (const lorentz4 &) |
| | Subtract another Lorentz vector from this one in place. More...
|
| |
Four-component Lorentz vector for relativistic kinematics.
Stores a 3-momentum vector and an energy component. Supports Lorentz boosts, invariant mass calculation, and standard arithmetic operators.
Definition at line 213 of file fizika.h.