Rivet API documentation
![]() |
Rivet 4.1.3
|
Vector3.hh
Specialized version of the ThreeVector with momentum functionality.
Definition Vector3.hh:349
double pt() const
Calculate the transverse momentum $p_T$.
Definition Vector3.hh:446
double pz() const
Get z-component of momentum $p_z$.
Definition Vector3.hh:412
double pT() const
Calculate the transverse momentum $p_T$.
Definition Vector3.hh:442
ThreeMomentum pTvec() const
Calculate the transverse momentum vector $\vec{p}_T$.
Definition Vector3.hh:424
double px() const
Get x-component of momentum $p_x$.
Definition Vector3.hh:402
double py() const
Get y-component of momentum $p_y$.
Definition Vector3.hh:407
ThreeMomentum & setPy(double py)
Set y-component of momentum $p_y$.
Definition Vector3.hh:384
ThreeMomentum & operator-=(const ThreeMomentum &v)
Subtract two 3-momenta.
Definition Vector3.hh:478
double pT2() const
Calculate the squared transverse momentum $p_T^2$.
Definition Vector3.hh:433
ThreeMomentum & setPz(double pz)
Set z-component of momentum $p_z$.
Definition Vector3.hh:390
double pt2() const
Calculate the squared transverse momentum $p_T^2$.
Definition Vector3.hh:437
ThreeMomentum & operator/=(double a)
Divide by a scalar.
Definition Vector3.hh:466
ThreeMomentum & operator+=(const ThreeMomentum &v)
Add two 3-momenta.
Definition Vector3.hh:472
ThreeMomentum & setPx(double px)
Set x-component of momentum $p_x$.
Definition Vector3.hh:378
ThreeMomentum operator-() const
Multiply all components by -1.
Definition Vector3.hh:484
ThreeMomentum & operator*=(double a)
Multiply by a scalar.
Definition Vector3.hh:460
double p2() const
Get the modulus-squared of the 3-momentum.
Definition Vector3.hh:420
Vector3 cross(const Vector3 &v) const
Cross-product with another vector.
Definition Vector3.hh:101
friend Vector3 add(const Vector3 &, const Vector3 &)
Unbound vector addition function.
Definition Vector3.hh:314
Vector3 & operator-=(const Vector3 &v)
In-place subtraction operator.
Definition Vector3.hh:260
double pseudorapidity() const
Purely geometric approximation to rapidity.
Definition Vector3.hh:221
friend Vector3 multiply(const double, const Vector3 &)
Unbound scalar-product function.
Definition Vector3.hh:287
friend Vector3 subtract(const Vector3 &, const Vector3 &)
Unbound vector subtraction function.
Definition Vector3.hh:321
double abseta() const
Convenience shortcut for fabs(eta()).
Definition Vector3.hh:234
double dot(const Vector3 &v) const
Dot-product with another vector.
Definition Vector3.hh:96
double phi(const PhiMapping mapping=ZERO_2PI) const
Synonym for azimuthalAngle.
Definition Vector3.hh:182
Vector3 & operator+=(const Vector3 &v)
In-place addition operator.
Definition Vector3.hh:254
Vector3 & operator*=(const double a)
In-place scalar multiplication operator.
Definition Vector3.hh:242
double polarRadius2() const
Square of the polar radius (.
Definition Vector3.hh:144
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:173
Vector3 & operator/=(const double a)
In-place scalar division operator.
Definition Vector3.hh:248
double angle(const Vector3 &v) const
Angle in radians to another vector.
Definition Vector3.hh:108
double polarAngle() const
Angle subtended by the vector and the z-axis.
Definition Vector3.hh:202
Vector3 operator-() const
In-place negation operator.
Definition Vector3.hh:266
Vector3 unitVec() const
Unit-normalized version of this vector.
Definition Vector3.hh:117
Vector3 polarVec() const
Polar projection of this vector into the x-y plane.
Definition Vector3.hh:129
Vector< N > & set(const size_t index, const double value)
Definition VectorN.hh:60
double pT(const Vector3 &a, const Vector3 &b)
Calculate transverse momentum of pair of 3-vectors.
Definition Vector3.hh:649
Definition MC_CENT_PPB_Projections.hh:10
constexpr std::enable_if_t< std::is_arithmetic_v< NUM >, int > sign(NUM val)
Find the sign of a number.
Definition MathUtils.hh:275
double deltaR(double rap1, double phi1, double rap2, double phi2)
Definition MathUtils.hh:708
double deltaPhi(double phi1, double phi2, bool sign=false)
Calculate the difference between two angles in radians.
Definition MathUtils.hh:678
double subtract(double a, double b, double tolerance=1e-5)
Subtract two numbers with FP fuzziness.
Definition MathUtils.hh:223
double deltaEta(double eta1, double eta2, bool sign=false)
Definition MathUtils.hh:686
double deltaR2(double rap1, double phi1, double rap2, double phi2)
Definition MathUtils.hh:701
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > sqr(NUM a)
Named number-type squaring operation.
Definition MathUtils.hh:218
double add(double a, double b, double tolerance=1e-5)
Add two numbers with FP fuzziness.
Definition MathUtils.hh:229
Vector3 cross(const Vector3 &a, const Vector3 &b)
Unbound cross-product function.
Definition Vector3.hh:282
double mapAngle(double angle, PhiMapping mapping)
Map an angle into the enum-specified range.
Definition MathUtils.hh:656
double mapAngle0ToPi(double angle)
Map an angle into the range [0, PI].
Definition MathUtils.hh:648
double angle(const Vector2 &a, const Vector2 &b)
Angle (in radians) between two 2-vectors.
Definition Vector2.hh:177
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:94
Generated on for Rivet by
