Rivet API documentation
![]() |
Rivet 4.1.3
|
Vector3.hh
Specialized version of the ThreeVector with momentum functionality.
Definition Vector3.hh:377
double pt() const
Calculate the transverse momentum $p_T$.
Definition Vector3.hh:491
double pz() const
Get z-component of momentum $p_z$.
Definition Vector3.hh:449
double pT() const
Calculate the transverse momentum $p_T$.
Definition Vector3.hh:487
ThreeMomentum pTvec() const
Calculate the transverse momentum vector $\vec{p}_T$.
Definition Vector3.hh:469
double px() const
Get x-component of momentum $p_x$.
Definition Vector3.hh:431
double py() const
Get y-component of momentum $p_y$.
Definition Vector3.hh:440
ThreeMomentum & setPy(double py)
Set y-component of momentum $p_y$.
Definition Vector3.hh:413
ThreeMomentum & operator-=(const ThreeMomentum &v)
Subtract two 3-momenta.
Definition Vector3.hh:523
double pT2() const
Calculate the squared transverse momentum $p_T^2$.
Definition Vector3.hh:478
ThreeMomentum & setPz(double pz)
Set z-component of momentum $p_z$.
Definition Vector3.hh:419
double pt2() const
Calculate the squared transverse momentum $p_T^2$.
Definition Vector3.hh:482
ThreeMomentum & operator/=(double a)
Divide by a scalar.
Definition Vector3.hh:511
ThreeMomentum & operator+=(const ThreeMomentum &v)
Add two 3-momenta.
Definition Vector3.hh:517
ThreeMomentum & setPx(double px)
Set x-component of momentum $p_x$.
Definition Vector3.hh:407
ThreeMomentum operator-() const
Multiply all components by -1.
Definition Vector3.hh:529
ThreeMomentum & operator*=(double a)
Multiply by a scalar.
Definition Vector3.hh:505
double p2() const
Get the modulus-squared of the 3-momentum.
Definition Vector3.hh:463
Vector3 cross(const Vector3 &v) const
Cross-product with another vector.
Definition Vector3.hh:129
friend Vector3 add(const Vector3 &, const Vector3 &)
Unbound vector addition function.
Definition Vector3.hh:342
Vector3 & operator-=(const Vector3 &v)
In-place subtraction operator.
Definition Vector3.hh:290
double pseudorapidity() const
Purely geometric approximation to rapidity.
Definition Vector3.hh:251
friend Vector3 multiply(const double, const Vector3 &)
Unbound scalar-product function.
Definition Vector3.hh:315
friend Vector3 subtract(const Vector3 &, const Vector3 &)
Unbound vector subtraction function.
Definition Vector3.hh:349
double abseta() const
Convenience shortcut for fabs(eta()).
Definition Vector3.hh:264
double dot(const Vector3 &v) const
Dot-product with another vector.
Definition Vector3.hh:124
double phi(const PhiMapping mapping=ZERO_2PI) const
Synonym for azimuthalAngle.
Definition Vector3.hh:212
Vector3 & operator+=(const Vector3 &v)
In-place addition operator.
Definition Vector3.hh:284
Vector3 & operator*=(const double a)
In-place scalar multiplication operator.
Definition Vector3.hh:272
double polarRadius2() const
Square of the polar radius (.
Definition Vector3.hh:174
double azimuthalAngle(const PhiMapping mapping=ZERO_2PI) const
Angle subtended by the vector's projection in x-y and the x-axis.
Definition Vector3.hh:203
Vector3 & operator/=(const double a)
In-place scalar division operator.
Definition Vector3.hh:278
double angle(const Vector3 &v) const
Angle in radians to another vector.
Definition Vector3.hh:136
double polarAngle() const
Angle subtended by the vector and the z-axis.
Definition Vector3.hh:232
Vector3 operator-() const
In-place negation operator.
Definition Vector3.hh:296
Vector3 unitVec() const
Unit-normalized version of this vector.
Definition Vector3.hh:145
Vector3 polarVec() const
Polar projection of this vector into the x-y plane.
Definition Vector3.hh:159
Vector< N > & set(const size_t index, const double value)
Definition VectorN.hh:63
double pT(const Vector3 &a, const Vector3 &b)
Calculate transverse momentum of pair of 3-vectors.
Definition Vector3.hh:691
Definition LHCbCommon.hh:9
constexpr std::enable_if_t< std::is_arithmetic_v< NUM >, int > sign(NUM val)
Find the sign of a number.
Definition MathUtils.hh:295
double deltaR(double rap1, double phi1, double rap2, double phi2)
Definition MathUtils.hh:754
double deltaPhi(double phi1, double phi2, bool sign=false)
Calculate the difference between two angles in radians.
Definition MathUtils.hh:724
double subtract(double a, double b, double tolerance=1e-5)
Subtract two numbers with FP fuzziness.
Definition MathUtils.hh:242
double deltaEta(double eta1, double eta2, bool sign=false)
Definition MathUtils.hh:732
double deltaR2(double rap1, double phi1, double rap2, double phi2)
Definition MathUtils.hh:747
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > sqr(NUM a)
Named number-type squaring operation.
Definition MathUtils.hh:237
double add(double a, double b, double tolerance=1e-5)
Add two numbers with FP fuzziness.
Definition MathUtils.hh:248
Vector3 cross(const Vector3 &a, const Vector3 &b)
Unbound cross-product function.
Definition Vector3.hh:310
double mapAngle(double angle, PhiMapping mapping)
Map an angle into the enum-specified range.
Definition MathUtils.hh:706
double mapAngle0ToPi(double angle)
Map an angle into the range [0, PI].
Definition MathUtils.hh:698
double angle(const Vector2 &a, const Vector2 &b)
Angle (in radians) between two 2-vectors.
Definition Vector2.hh:194
std::enable_if_t< std::is_arithmetic_v< N1 > &&std::is_arithmetic_v< N2 >, bool > fuzzyLessEquals(N1 a, N2 b, double tolerance=1e-5)
Compare two floating point numbers for <= with a degree of fuzziness.
Definition MathUtils.hh:103
Generated on for Rivet by
