Rivet API documentation
![]() |
Rivet 4.1.3
|
ParticleBase.hh
26 // /// @todo Can't do this because a) ParticleBase is pure-virtual; b) inheritance causality for Particle... urk
105 double azimuthalAngle(const PhiMapping mapping=ZERO_2PI) const { return momentum().azimuthalAngle(mapping); }
Specialized version of the FourVector with momentum/energy functionality.
Definition Vector4.hh:327
double p2() const
Get the modulus-squared of the 3-momentum.
Definition Vector4.hh:620
double mass() const
Get the mass (the Lorentz self-invariant).
Definition Vector4.hh:595
double rapidity() const
Calculate the rapidity.
Definition Vector4.hh:626
double pt() const
Calculate the transverse momentum .
Definition Vector4.hh:668
double Et2() const
Calculate the transverse energy .
Definition Vector4.hh:673
double pt2() const
Calculate the squared transverse momentum .
Definition Vector4.hh:659
Vector3 pTvec() const
Calculate the transverse momentum vector .
Definition Vector4.hh:646
double mass2() const
Get the squared mass (the Lorentz self-invariant).
Definition Vector4.hh:606
double E() const
Get energy (time component of momentum).
Definition Vector4.hh:572
double absrapidity() const
Absolute rapidity.
Definition Vector4.hh:637
Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector.
Definition Vector4.hh:30
Vector3 vector3() const
Get the spatial part of the 4-vector as a 3-vector.
Definition Vector4.hh:184
double angle(const FourVector &v) const
Angle between this vector and another.
Definition Vector4.hh:102
double phi(const PhiMapping mapping=ZERO_2PI) const
Synonym for azimuthalAngle.
Definition Vector4.hh:156
double azimuthalAngle(const PhiMapping mapping=ZERO_2PI) const
Angle subtended by the 3-vector's projection in x-y and the x-axis.
Definition Vector4.hh:152
double dot(const FourVector &v) const
Contract two 4-vectors, with metric signature (+ - - -).
Definition Vector4.hh:205
double polarAngle() const
Angle subtended by the 3-vector and the z-axis.
Definition Vector4.hh:161
double abspseudorapidity() const
Get the directly.
Definition Vector4.hh:179
Base class for particle-like things like Particle and Jet.
Definition ParticleBase.hh:13
double polarAngle() const
Angle subtended by the 3-vector and the z-axis.
Definition ParticleBase.hh:136
const FourMomentum & p4() const
Get the equivalent momentum four-vector (const) (alias).
Definition ParticleBase.hh:41
const FourMomentum & mom() const
Get the equivalent momentum four-vector (const) (alias).
Definition ParticleBase.hh:39
double dot(const ParticleBase &v) const
Lorentz dot product between this 4-vector and another.
Definition ParticleBase.hh:148
double absrap() const
Get the directly (alias).
Definition ParticleBase.hh:102
double abspseudorapidity() const
Get the directly.
Definition ParticleBase.hh:91
double angle(const ParticleBase &v) const
Angle between this vector and another.
Definition ParticleBase.hh:141
double dot(const FourVector &v) const
Angle between this 4-vector and another.
Definition ParticleBase.hh:150
Vector3 ptvec() const
Get the transverse 3-momentum directly.
Definition ParticleBase.hh:117
double mass2() const
Get the mass**2 directly.
Definition ParticleBase.hh:84
virtual const FourMomentum & momentum() const =0
Get the equivalent momentum four-vector (const).
double phi(const PhiMapping mapping=ZERO_2PI) const
Get the directly.
Definition ParticleBase.hh:107
double p() const
Get the 3-momentum magnitude directly.
Definition ParticleBase.hh:112
double energy2() const
Get the energy-squared (alias).
Definition ParticleBase.hh:60
double abseta() const
Get the directly (alias).
Definition ParticleBase.hh:93
ThreeMomentum p3() const
Get the 3-momentum directly.
Definition ParticleBase.hh:110
double perp2() const
Get the directly (alias).
Definition ParticleBase.hh:74
double pz2() const
z component of momentum, squared.
Definition ParticleBase.hh:133
Vector3 pTvec() const
Get the transverse 3-momentum directly.
Definition ParticleBase.hh:119
virtual ~ParticleBase()
Virtual destructor.
Definition ParticleBase.hh:20
double pseudorapidity() const
Get the directly.
Definition ParticleBase.hh:87
double angle(const FourVector &v) const
Angle between this vector and another.
Definition ParticleBase.hh:143
double absrapidity() const
Get the directly.
Definition ParticleBase.hh:100
double py2() const
y component of momentum, squared.
Definition ParticleBase.hh:131
double energy() const
Get the energy directly (alias).
Definition ParticleBase.hh:55
double azimuthalAngle(const PhiMapping mapping=ZERO_2PI) const
Azimuthal angle .
Definition ParticleBase.hh:105
double px2() const
x component of momentum, squared.
Definition ParticleBase.hh:129
double angle(const Vector3 &v3) const
Angle between this vector and another (3-vector).
Definition ParticleBase.hh:145
double p2() const
Get the 3-momentum magnitude-squared directly.
Definition ParticleBase.hh:114
Specialized version of the ThreeVector with momentum functionality.
Definition Vector3.hh:349
double eta(const ParticleBase &p)
Unbound function access to eta.
Definition ParticleBaseUtils.hh:665
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
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 deltaEta(double eta1, double eta2, bool sign=false)
Definition MathUtils.hh:686
RapScheme
Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc.
Definition MathConstants.hh:46
Generated on for Rivet by
