rivet is hosted by Hepforge, IPPP Durham
Vector3.hh File Reference
Include dependency graph for Vector3.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector3
 Three-dimensional specialisation of Vector. More...

Namespaces

namespace  Rivet

Typedefs

typedef Vector3 ThreeVector

Functions

Vector3 multiply (const double, const Vector3 &)
Vector3 multiply (const Vector3 &, const double)
Vector3 add (const Vector3 &, const Vector3 &)
Vector3 operator* (const double, const Vector3 &)
Vector3 operator* (const Vector3 &, const double)
Vector3 operator/ (const Vector3 &, const double)
Vector3 operator+ (const Vector3 &, const Vector3 &)
Vector3 operator- (const Vector3 &, const Vector3 &)
double dot (const Vector3 &a, const Vector3 &b)
Vector3 cross (const Vector3 &a, const Vector3 &b)
Vector3 subtract (const Vector3 &a, const Vector3 &b)
double angle (const Vector3 &a, const Vector3 &b)
 Angle (in radians) between two 3-vectors.
double polarRadius2 (const Vector3 &v)
 Calculate transverse length sq. $ \rho^2 $ of a 3-vector.
double perp2 (const Vector3 &v)
 Synonym for polarRadius2.
double rho2 (const Vector3 &v)
 Synonym for polarRadius2.
double polarRadius (const Vector3 &v)
 Calculate transverse length $ \rho $ of a 3-vector.
double perp (const Vector3 &v)
 Synonym for polarRadius.
double rho (const Vector3 &v)
 Synonym for polarRadius.
double azimuthalAngle (const Vector3 &v, const PhiMapping mapping=ZERO_2PI)
 Calculate azimuthal angle of a 3-vector. Returns a number in (-pi, pi] or in [0, 2pi) according to the mapping scheme selected.
double phi (const Vector3 &v, const PhiMapping mapping=ZERO_2PI)
 Synonym for azimuthalAngle.
double polarAngle (const Vector3 &v)
 Calculate polar angle of a 3-vector.
double theta (const Vector3 &v)
 Synonym for polarAngle.
double pseudorapidity (const Vector3 &v)
 Calculate pseudorapidity of a 3-vector.
double eta (const Vector3 &v)
 Synonym for pseudorapidity.
\f$ |\Delta eta| \f$ calculations from 3-vectors
double deltaEta (const Vector3 &a, const Vector3 &b)
 Calculate the difference in pseudorapidity between two spatial vectors.
double deltaEta (const Vector3 &v, double eta2)
 Calculate the difference in pseudorapidity between two spatial vectors.
double deltaEta (double eta1, const Vector3 &v)
 Calculate the difference in pseudorapidity between two spatial vectors.
\f$ \Delta phi \f$ calculations from 3-vectors
double deltaPhi (const Vector3 &a, const Vector3 &b)
 Calculate the difference in azimuthal angle between two spatial vectors.
double deltaPhi (const Vector3 &v, double phi2)
 Calculate the difference in azimuthal angle between two spatial vectors.
double deltaPhi (double phi1, const Vector3 &v)
 Calculate the difference in azimuthal angle between two spatial vectors.
\f$ \Delta R \f$ calculations from 3-vectors
double deltaR (const Vector3 &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
double deltaR (const Vector3 &v, double eta2, double phi2)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
double deltaR (double eta1, double phi1, const Vector3 &v)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.