![]() |
Rivet
3.1.2
|
Three-dimensional specialisation of Vector. More...
#include <Vector3.hh>
Public Types | |
using | EVector = Eigen::Matrix< double, N, 1 > |
Vector. | |
Public Member Functions | |
template<typename V3 > | |
Vector3 (const V3 &other) | |
Vector3 (const Vector< 3 > &other) | |
Vector3 (double x, double y, double z) | |
double | x () const |
double | y () const |
double | z () const |
Vector3 & | setX (double x) |
Vector3 & | setY (double y) |
Vector3 & | setZ (double z) |
double | dot (const Vector3 &v) const |
Dot-product with another vector. | |
Vector3 | cross (const Vector3 &v) const |
Cross-product with another vector. | |
double | angle (const Vector3 &v) const |
Angle in radians to another vector. | |
Vector3 | unitVec () const |
Unit-normalized version of this vector. | |
Vector3 | unit () const |
Synonym for unitVec. | |
Vector3 | polarVec () const |
Polar projection of this vector into the x-y plane. | |
Vector3 | perpVec () const |
Synonym for polarVec. | |
Vector3 | rhoVec () const |
Synonym for polarVec. | |
double | polarRadius2 () const |
Square of the polar radius (. | |
double | perp2 () const |
Synonym for polarRadius2. | |
double | rho2 () const |
Synonym for polarRadius2. | |
double | polarRadius () const |
Polar radius. | |
double | perp () const |
Synonym for polarRadius. | |
double | rho () const |
Synonym for polarRadius. | |
double | azimuthalAngle (const PhiMapping mapping=ZERO_2PI) const |
double | phi (const PhiMapping mapping=ZERO_2PI) const |
Synonym for azimuthalAngle. | |
double | tanTheta () const |
Tangent of the polar angle. | |
double | polarAngle () const |
Angle subtended by the vector and the z-axis. | |
double | theta () const |
Synonym for polarAngle. | |
double | pseudorapidity () const |
double | eta () const |
Synonym for pseudorapidity. | |
double | abseta () const |
Convenience shortcut for fabs(eta()) | |
Vector3 & | operator*= (const double a) |
Vector3 & | operator/= (const double a) |
Vector3 & | operator+= (const Vector3 &v) |
Vector3 & | operator-= (const Vector3 &v) |
Vector3 | operator- () const |
const double & | get (const size_t index) const |
double & | get (const size_t index) |
const double & | operator[] (const size_t index) const |
Direct access to vector elements by index. | |
double & | operator[] (const size_t index) |
Direct access to vector elements by index. | |
Vector< N > & | set (const size_t index, const double value) |
Set indexed value. | |
constexpr size_t | size () const |
Vector dimensionality. | |
bool | isZero (double tolerance=1E-5) const |
Check for nullness, allowing for numerical precision. | |
double | mod2 () const |
Calculate the modulus-squared of a vector. \( \sum_{i=1}^N x_i^2 \). | |
double | mod () const |
Calculate the modulus of a vector. \( \sqrt{\sum_{i=1}^N x_i^2} \). | |
bool | operator== (const Vector< N > &a) const |
bool | operator!= (const Vector< N > &a) const |
Static Public Member Functions | |
static Vector3 | mkX () |
static Vector3 | mkY () |
static Vector3 | mkZ () |
Friends | |
class | Matrix3 |
Vector3 | multiply (const double, const Vector3 &) |
Vector3 | multiply (const Vector3 &, const double) |
Vector3 | add (const Vector3 &, const Vector3 &) |
Vector3 | subtract (const Vector3 &, const Vector3 &) |
Three-dimensional specialisation of Vector.
|
inline |
Angle subtended by the vector's projection in x-y and the x-axis.
References Rivet::mapAngle().
Referenced by Rivet::FourVector::azimuthalAngle(), Rivet::deltaPhi(), Rivet::deltaR2(), and phi().
|
inline |
Purely geometric approximation to rapidity
Also invariant under z-boosts, equal to y for massless particles.
References Rivet::max(), Rivet::Vector< 3 >::mod(), and perp().
Referenced by Rivet::deltaEta(), Rivet::deltaR2(), eta(), and Rivet::FourVector::pseudorapidity().