Vector4.hh 884 string err = "deltaR with scheme RAPIDITY can only be called with FourMomentum objects, not FourVectors";
925 string err = "deltaR with scheme RAPIDITY can only be called with FourMomentum objects, not FourVectors";
964 string err = "deltaR with scheme RAPIDITY can only be called with FourMomentum objects, not FourVectors";
1088 return deltaR2(a.rapidity(), a.azimuthalAngle(), FourMomentum(b).rapidity(), b.azimuthalAngle());
Specialized version of the FourVector with momentum/energy functionality. Definition: Vector4.hh:306 Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector. Definition: Vector4.hh:27 Object implementing Lorentz transform calculations and boosts. Definition: LorentzTrans.hh:21 double pseudorapidity() const Purely geometric approximation to rapidity. Definition: Vector3.hh:212 double phi(const PhiMapping mapping=ZERO_2PI) const Synonym for azimuthalAngle. Definition: Vector3.hh:183 double polarRadius2() const Square of the polar radius (. Definition: Vector3.hh:145 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:174 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:193 Vector3 polarVec() const Polar projection of this vector into the x-y plane. Definition: Vector3.hh:130 double mod2() const Calculate the modulus-squared of a vector. . Definition: VectorN.hh:84 Vector< N > & set(const size_t index, const double value) Set indexed value. Definition: VectorN.hh:60 const CONTAINER2 & transform(const CONTAINER1 &in, CONTAINER2 &out, const FN &f) A single-container-arg version of std::transform, aka map. Definition: Utils.hh:408 MOMS & isortBy(MOMS &pbs, const CMP &cmp) Sort a container of momenta by cmp and return by reference for non-const inputs. Definition: Vector4.hh:1435 MOMS & isortByE(MOMS &pbs) Sort a container of momenta by E (decreasing) and return by reference for non-const inputs. Definition: Vector4.hh:1460 MOMS & isortByEt(MOMS &pbs) Sort a container of momenta by Et (decreasing) and return by reference for non-const inputs. Definition: Vector4.hh:1471 bool cmpMomByDescEta(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing eta (pseudorapidity) Definition: Vector4.hh:1396 bool cmpMomByMass(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing mass. Definition: Vector4.hh:1382 bool cmpMomByP(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing 3-momentum magnitude |p|. Definition: Vector4.hh:1355 bool cmpMomByAscEt(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing transverse energy. Definition: Vector4.hh:1368 bool cmpMomByRap(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing rapidity. Definition: Vector4.hh:1411 bool cmpMomByE(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing energy. Definition: Vector4.hh:1373 MOMS sortBy(const MOMS &pbs, const CMP &cmp) Sort a container of momenta by cmp and return by value for const inputs. Definition: Vector4.hh:1441 bool cmpMomByAbsRap(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing absolute rapidity. Definition: Vector4.hh:1421 MOMS sortByPt(const MOMS &pbs) Sort a container of momenta by pT (decreasing) and return by value for const inputs. Definition: Vector4.hh:1454 MOMS sortByEt(const MOMS &pbs) Sort a container of momenta by Et (decreasing) and return by value for const inputs. Definition: Vector4.hh:1476 bool cmpMomByEt(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing transverse energy. Definition: Vector4.hh:1364 bool cmpMomByAscPt(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing pT. Definition: Vector4.hh:1350 bool cmpMomByAscP(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing 3-momentum magnitude |p|. Definition: Vector4.hh:1359 bool cmpMomByAscMass(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing mass. Definition: Vector4.hh:1386 MOMS sortByE(const MOMS &pbs) Sort a container of momenta by E (decreasing) and return by value for const inputs. Definition: Vector4.hh:1465 bool cmpMomByPt(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing pT. Definition: Vector4.hh:1346 bool cmpMomByAbsEta(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing absolute eta (pseudorapidity) Definition: Vector4.hh:1401 bool cmpMomByDescAbsEta(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing absolute eta (pseudorapidity) Definition: Vector4.hh:1406 bool cmpMomByEta(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing eta (pseudorapidity) Definition: Vector4.hh:1391 bool cmpMomByAscE(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by increasing energy. Definition: Vector4.hh:1377 bool cmpMomByDescAbsRap(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing absolute rapidity. Definition: Vector4.hh:1426 MOMS & isortByPt(MOMS &pbs) Sort a container of momenta by pT (decreasing) and return by reference for non-const inputs. Definition: Vector4.hh:1449 bool cmpMomByDescRap(const FourMomentum &a, const FourMomentum &b) Comparison to give a sorting by decreasing rapidity. Definition: Vector4.hh:1416 FourVector operator-() const Multiply all components (space and time) by -1. Definition: Vector4.hh:218 double p2() const Get the modulus-squared of the 3-momentum. Definition: Vector4.hh:591 double mass() const Get the mass (the Lorentz self-invariant). Definition: Vector4.hh:566 double rapidity() const Calculate the rapidity. Definition: Vector4.hh:597 FourMomentum reverse() const Multiply space components only by -1. Definition: Vector4.hh:757 FourMomentum & setPtPhiME(double pt, double phi, double mass, double E) Definition: Vector4.hh:522 FourMomentum & setRapPhiMPt(double y, double phi, double mass, double pt) Definition: Vector4.hh:463 FourVector & operator/=(double a) Divide by a scalar. Definition: Vector4.hh:200 FourMomentum & setPz(double pz) Set z-component of momentum . Definition: Vector4.hh:360 FourMomentum & setXYZE(double px, double py, double pz, double E) Alias for setPE. Definition: Vector4.hh:374 static FourMomentum mkThetaPhiME(double theta, double phi, double mass, double E) Make a vector from (theta,phi,energy) coordinates and the mass. Definition: Vector4.hh:803 Vector3 vector3() const Get the spatial part of the 4-vector as a 3-vector. Definition: Vector4.hh:167 double angle(const FourVector &v) const Angle between this vector and another. Definition: Vector4.hh:85 double pt() const Calculate the transverse momentum . Definition: Vector4.hh:637 double phi(const PhiMapping mapping=ZERO_2PI) const Synonym for azimuthalAngle. Definition: Vector4.hh:139 double contract(const FourVector &v) const Contract two 4-vectors, with metric signature (+ - - -). Definition: Vector4.hh:178 FourMomentum & setPE(double px, double py, double pz, double E) Set the p coordinates and energy simultaneously. Definition: Vector4.hh:367 static FourMomentum mkRapPhiME(double y, double phi, double mass, double E) Make a vector from (y,phi,energy) coordinates and the mass. Definition: Vector4.hh:793 double Et2() const Calculate the transverse energy . Definition: Vector4.hh:642 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:135 static FourMomentum mkXYZE(double px, double py, double pz, double E) Make a vector from (px,py,pz,E) coordinates. Definition: Vector4.hh:773 FourMomentum & setPy(double py) Set y-component of momentum . Definition: Vector4.hh:354 FourMomentum & setPx(double px) Set x-component of momentum . Definition: Vector4.hh:348 double pt2() const Calculate the squared transverse momentum . Definition: Vector4.hh:628 double dot(const FourVector &v) const Contract two 4-vectors, with metric signature (+ - - -). Definition: Vector4.hh:184 static FourMomentum mkPtPhiME(double pt, double phi, double mass, double E) Make a vector from (pT,phi,energy) coordinates and the mass. Definition: Vector4.hh:813 Vector3 pTvec() const Calculate the transverse momentum vector . Definition: Vector4.hh:615 FourVector & operator*=(double a) Multiply by a scalar. Definition: Vector4.hh:194 double operator*(const FourVector &v) const Contract two 4-vectors, with metric signature (+ - - -). Definition: Vector4.hh:189 FourMomentum & setRapPhiME(double y, double phi, double mass, double E) Definition: Vector4.hh:443 double mass2() const Get the squared mass (the Lorentz self-invariant). Definition: Vector4.hh:577 FourMomentum & setEtaPhiMPt(double eta, double phi, double mass, double pt) Definition: Vector4.hh:421 double pseudorapidity() const Pseudorapidity (defined purely by the 3-vector components) Definition: Vector4.hh:153 double pT2() const Calculate the squared transverse momentum . Definition: Vector4.hh:624 double polarRadius() const Magnitude of projection of 3-vector on to the plane. Definition: Vector4.hh:109 static FourMomentum mkEtaPhiME(double eta, double phi, double mass, double E) Make a vector from (eta,phi,energy) coordinates and the mass. Definition: Vector4.hh:783 double angle(const Vector3 &v3) const Angle between this vector and another (3-vector) Definition: Vector4.hh:89 Vector3 polarVec() const Projection of 3-vector on to the plane. Definition: Vector4.hh:122 double polarRadius2() const Mod-square of the projection of the 3-vector on to the plane This is a more efficient function than ... Definition: Vector4.hh:96 FourVector reverse() const Multiply space components only by -1. Definition: Vector4.hh:225 FourMomentum & operator-=(const FourMomentum &v) Subtract from this 4-vector. NB time as well as space components are subtracted. Definition: Vector4.hh:744 static FourMomentum mkXYZM(double px, double py, double pz, double mass) Make a vector from (px,py,pz) coordinates and the mass. Definition: Vector4.hh:778 FourMomentum & setThetaPhiME(double theta, double phi, double mass, double E) Definition: Vector4.hh:480 double E() const Get energy (time component of momentum). Definition: Vector4.hh:543 FourMomentum & setXYZM(double px, double py, double pz, double mass) Alias for setPM. Definition: Vector4.hh:396 FourMomentum & operator+=(const FourMomentum &v) Add to this 4-vector. NB time as well as space components are added. Definition: Vector4.hh:738 static FourMomentum mkEtaPhiMPt(double eta, double phi, double mass, double pt) Make a vector from (eta,phi,pT) coordinates and the mass. Definition: Vector4.hh:788 static FourMomentum mkRapPhiMPt(double y, double phi, double mass, double pt) Make a vector from (y,phi,pT) coordinates and the mass. Definition: Vector4.hh:798 double pT() const Calculate the transverse momentum . Definition: Vector4.hh:633 double polarAngle() const Angle subtended by the 3-vector and the z-axis. Definition: Vector4.hh:144 FourVector & operator-=(const FourVector &v) Subtract from this 4-vector. NB time as well as space components are subtracted. Definition: Vector4.hh:212 static FourMomentum mkThetaPhiMPt(double theta, double phi, double mass, double pt) Make a vector from (theta,phi,pT) coordinates and the mass. Definition: Vector4.hh:808 double abspseudorapidity() const Get the directly. Definition: Vector4.hh:162 FourVector & operator+=(const FourVector &v) Add to this 4-vector. Definition: Vector4.hh:206 FourMomentum & setThetaPhiMPt(double theta, double phi, double mass, double pt) Definition: Vector4.hh:503 FourMomentum operator-() const Multiply all components (time and space) by -1. Definition: Vector4.hh:750 double absrapidity() const Absolute rapidity. Definition: Vector4.hh:606 FourMomentum & setEtaPhiME(double eta, double phi, double mass, double E) Definition: Vector4.hh:405 FourMomentum & operator/=(double a) Divide by a scalar. Definition: Vector4.hh:732 FourMomentum & setE(double E) Set energy (time component of momentum). Definition: Vector4.hh:342 FourMomentum & operator*=(double a) Multiply by a scalar. Definition: Vector4.hh:726 FourMomentum & setPM(double px, double py, double pz, double mass) Set the p coordinates and mass simultaneously. Definition: Vector4.hh:388 Definition: MC_Cent_pPb.hh:10 double deltaR(double rap1, double phi1, double rap2, double phi2) Definition: MathUtils.hh:659 double deltaPhi(double phi1, double phi2, bool sign=false) Calculate the difference between two angles in radians. Definition: MathUtils.hh:629 double deltaEta(double eta1, double eta2, bool sign=false) Definition: MathUtils.hh:637 double deltaR2(double rap1, double phi1, double rap2, double phi2) Definition: MathUtils.hh:652 std::ostream & operator<<(std::ostream &os, const AnalysisInfo &ai) Stream an AnalysisInfo as a text description. Definition: AnalysisInfo.hh:362 double contract(const FourVector &a, const FourVector &b) Contract two 4-vectors, with metric signature (+ - - -). Definition: Vector4.hh:235 RapScheme Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc. Definition: MathConstants.hh:46 std::enable_if< std::is_arithmetic< NUM >::value, int >::type sign(NUM val) Find the sign of a number. Definition: MathUtils.hh:266 Cmp< T > cmp(const T &t1, const T &t2) Global helper function for easy creation of Cmp objects. Definition: Cmp.hh:255 std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type sqr(NUM a) Named number-type squaring operation. Definition: MathUtils.hh:219 std::enable_if< std::is_floating_point< NUM >::value, bool >::type isZero(NUM val, double tolerance=1e-8) Compare a number to zero. Definition: MathUtils.hh:24 double angle(const Vector2 &a, const Vector2 &b) Angle (in radians) between two 2-vectors. Definition: Vector2.hh:177 double rapidity(double E, double pz) Calculate a rapidity value from the supplied energy E and longitudinal momentum pz. Definition: MathUtils.hh:664 Generated on Fri May 13 2022 23:02:06 for Rivet by |