|
Rivet
1.8.0
|
Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector. More...
#include <Vector4.hh>
Public Member Functions | |
| template<typename V4 > | |
| FourVector (const V4 &other) | |
| FourVector (const Vector< 4 > &other) | |
| FourVector (const double t, const double x, const double y, const double z) | |
| double | t () const |
| double | x () const |
| double | y () const |
| double | z () const |
| FourVector & | setT (const double t) |
| FourVector & | setX (const double x) |
| FourVector & | setY (const double y) |
| FourVector & | setZ (const double z) |
| double | invariant () const |
| double | angle (const FourVector &v) const |
| Angle between this vector and another. | |
| double | angle (const Vector3 &v3) const |
| Angle between this vector and another (3-vector) | |
| double | polarRadius2 () const |
Square of the projection of the 3-vector on to the plane This is a more efficient function than polarRadius, as it avoids the square root. Use it if you only need the squared value, or e.g. an ordering by magnitude. | |
| double | perp2 () const |
| Synonym for polarRadius2. | |
| double | rho2 () const |
| Synonym for polarRadius2. | |
| double | polarRadius () const |
Projection of 3-vector on to the plane. | |
| double | perp () const |
| Synonym for polarRadius. | |
| double | rho () const |
| Synonym for polarRadius. | |
| double | azimuthalAngle (const PhiMapping mapping=ZERO_2PI) const |
| Angle subtended by the 3-vector's projection in x-y and the x-axis. | |
| double | phi (const PhiMapping mapping=ZERO_2PI) const |
| Synonym for azimuthalAngle. | |
| double | polarAngle () const |
| Angle subtended by the 3-vector and the z-axis. | |
| double | theta () const |
| Synonym for polarAngle. | |
| double | pseudorapidity () const |
| Pseudorapidity (defined purely by the 3-vector components) | |
| double | eta () const |
| Synonym for pseudorapidity. | |
| Vector3 | vector3 () const |
| Get the spatial part of the 4-vector as a 3-vector. | |
| double | contract (const FourVector &v) const |
| Contract two 4-vectors, with metric signature (+ - - -). | |
| double | dot (const FourVector &v) const |
| Contract two 4-vectors, with metric signature (+ - - -). | |
| double | operator* (const FourVector &v) const |
| Contract two 4-vectors, with metric signature (+ - - -). | |
| FourVector & | operator*= (double a) |
| Multiply by a scalar. | |
| FourVector & | operator/= (double a) |
| Divide by a scalar. | |
| FourVector & | operator+= (const FourVector &v) |
| FourVector & | operator-= (const FourVector &v) |
| FourVector | operator- () const |
| Invert the vector. | |
Friends | |
| FourVector | multiply (const double a, const FourVector &v) |
| FourVector | multiply (const FourVector &v, const double a) |
| FourVector | add (const FourVector &a, const FourVector &b) |
| FourVector | transform (const LorentzTransform <, const FourVector &v4) |
Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector.
1.7.6.1