1 #ifndef RIVET_ParticleBase_HH 2 #define RIVET_ParticleBase_HH 4 #include "Rivet/Config/RivetCommon.hh" 5 #include "Rivet/Jet.fhh" 6 #include "Rivet/Tools/Cuts.fhh" 7 #include "Rivet/Math/Vectors.hh" 63 double pT()
const {
return pt(); }
Definition: MC_Cent_pPb.hh:10
double abseta() const
Get the directly (alias).
Definition: Vector4.hh:159
double Et2() const
Get the directly.
Definition: ParticleBase.hh:77
double energy() const
Get the energy directly (alias).
Definition: ParticleBase.hh:53
double eta() const
Synonym for pseudorapidity.
Definition: Vector4.hh:152
double absrapidity() const
Get the directly.
Definition: ParticleBase.hh:98
double pz() const
z component of momentum.
Definition: ParticleBase.hh:124
double absrap() const
Absolute rapidity.
Definition: Vector4.hh:605
virtual const FourMomentum & momentum() const =0
Get equivalent single momentum four-vector (const).
double pt2() const
Calculate the squared transverse momentum .
Definition: Vector4.hh:623
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:130
const FourMomentum & mom() const
Get equivalent single momentum four-vector (const) (alias).
Definition: ParticleBase.hh:39
double Et() const
Calculate the transverse energy .
Definition: Vector4.hh:641
double abseta() const
Get the directly (alias).
Definition: ParticleBase.hh:91
Vector3 ptvec() const
Synonym for pTvec.
Definition: Vector4.hh:614
double absrapidity() const
Absolute rapidity.
Definition: Vector4.hh:601
double p2() const
Get the modulus-squared of the 3-momentum.
Definition: Vector4.hh:586
double mass2() const
Get the squared mass (the Lorentz self-invariant).
Definition: Vector4.hh:572
double E2() const
Get the energy-squared.
Definition: ParticleBase.hh:56
double abspseudorapidity() const
Get the directly.
Definition: Vector4.hh:157
double rapidity() const
Calculate the rapidity.
Definition: Vector4.hh:592
double mass2() const
Get the mass**2 directly.
Definition: ParticleBase.hh:82
double theta() const
Synonym for polarAngle.
Definition: ParticleBase.hh:136
double dot(const FourVector &v) const
Angle between this 4-vector and another.
Definition: ParticleBase.hh:148
double mass() const
Get the mass directly.
Definition: ParticleBase.hh:80
double phi(const PhiMapping mapping=ZERO_2PI) const
Get the directly.
Definition: ParticleBase.hh:105
double E2() const
Get energy-squared .
Definition: Vector4.hh:540
double E() const
Get the energy directly.
Definition: ParticleBase.hh:51
double deltaEta(double eta1, double eta2, bool sign=false)
Definition: MathUtils.hh:586
double px2() const
x component of momentum, squared.
Definition: ParticleBase.hh:127
double pt2() const
Get the directly.
Definition: ParticleBase.hh:68
double p2() const
Get the 3-momentum magnitude-squared directly.
Definition: ParticleBase.hh:112
PhiMapping
Enum for range of to be mapped into.
Definition: MathConstants.hh:49
double azimuthalAngle(const PhiMapping mapping=ZERO_2PI) const
Azimuthal angle .
Definition: ParticleBase.hh:103
double Et() const
Get the directly.
Definition: ParticleBase.hh:75
double dot(const FourVector &v) const
Contract two 4-vectors, with metric signature (+ - - -).
Definition: Vector4.hh:179
virtual ~ParticleBase()
Virtual destructor.
Definition: ParticleBase.hh:20
double pseudorapidity() const
Get the directly.
Definition: ParticleBase.hh:85
double deltaPhi(double phi1, double phi2, bool sign=false)
Calculate the difference between two angles in radians.
Definition: MathUtils.hh:578
double angle(const ParticleBase &v) const
Angle between this vector and another.
Definition: ParticleBase.hh:139
double rap() const
Get the directly (alias).
Definition: ParticleBase.hh:96
double mass() const
Get the mass (the Lorentz self-invariant).
Definition: Vector4.hh:561
Vector3 pTvec() const
Get the transverse 3-momentum directly.
Definition: ParticleBase.hh:117
double pT2() const
Get the directly (alias).
Definition: ParticleBase.hh:70
Vector3 ptvec() const
Get the transverse 3-momentum directly.
Definition: ParticleBase.hh:115
Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector.
Definition: Vector4.hh:22
double p() const
Get the modulus of the 3-momentum.
Definition: Vector4.hh:581
ParticleBase()
Default constructor.
Definition: ParticleBase.hh:17
Vector3 p3() const
Get the 3-momentum directly.
Definition: ParticleBase.hh:108
double pT() const
Get the directly (alias).
Definition: ParticleBase.hh:63
double polarAngle() const
Angle subtended by the 3-vector and the z-axis.
Definition: ParticleBase.hh:134
Base class for particle-like things like Particle and Jet.
Definition: ParticleBase.hh:13
double deltaRap(double y1, double y2, bool sign=false)
Definition: MathUtils.hh:594
double deltaR(double rap1, double phi1, double rap2, double phi2)
Definition: MathUtils.hh:608
double E() const
Get energy (time component of momentum).
Definition: Vector4.hh:538
double angle(const Vector3 &v3) const
Angle between this vector and another (3-vector)
Definition: ParticleBase.hh:143
double absrap() const
Get the directly (alias).
Definition: ParticleBase.hh:100
RapScheme
Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc.
Definition: MathConstants.hh:46
double pt() const
Calculate the transverse momentum .
Definition: Vector4.hh:632
Vector3 vector3() const
Get the spatial part of the 4-vector as a 3-vector.
Definition: Vector4.hh:162
double perp2() const
Get the directly (alias).
Definition: ParticleBase.hh:72
double rapidity() const
Get the directly.
Definition: ParticleBase.hh:94
double energy2() const
Get the energy-squared (alias).
Definition: ParticleBase.hh:58
double pz2() const
z component of momentum, squared.
Definition: ParticleBase.hh:131
double angle(const FourVector &v) const
Angle between this vector and another.
Definition: ParticleBase.hh:141
double px() const
x component of momentum.
Definition: ParticleBase.hh:120
double eta() const
Get the directly (alias).
Definition: ParticleBase.hh:87
double angle(const FourVector &v) const
Angle between this vector and another.
Definition: Vector4.hh:80
double theta() const
Synonym for polarAngle.
Definition: Vector4.hh:143
double polarAngle() const
Angle subtended by the 3-vector and the z-axis.
Definition: Vector4.hh:139
Vector3 pTvec() const
Calculate the transverse momentum vector .
Definition: Vector4.hh:610
double phi(const PhiMapping mapping=ZERO_2PI) const
Synonym for azimuthalAngle.
Definition: Vector4.hh:134
double py2() const
y component of momentum, squared.
Definition: ParticleBase.hh:129
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
double perp() const
Get the directly (alias).
Definition: ParticleBase.hh:65
double pt() const
Get the directly.
Definition: ParticleBase.hh:61
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:301
double Et2() const
Calculate the transverse energy .
Definition: Vector4.hh:637
double p() const
Get the 3-momentum magnitude directly.
Definition: ParticleBase.hh:110
double py() const
y component of momentum.
Definition: ParticleBase.hh:122
std::enable_if< std::is_arithmetic< NUM >::value, int >::type sign(NUM val)
Find the sign of a number.
Definition: MathUtils.hh:245
double dot(const ParticleBase &v) const
Lorentz dot product between this 4-vector and another.
Definition: ParticleBase.hh:146
double abspseudorapidity() const
Get the directly.
Definition: ParticleBase.hh:89