ParticleBaseUtils.hh 56 bool operator()(const ParticleBase& p) const { return p.pT() >= ptcut.first && p.pT() < ptcut.second; }
86 bool operator()(const ParticleBase& p) const { return p.eta() >= etacut.first && p.eta() < etacut.second; }
115 AbsEtaInRange(double absetalow, double absetahigh) : AbsEtaInRange(make_pair(absetalow, absetahigh)) { }
116 AbsEtaInRange(const FourMomentum& p1, const FourMomentum& p2) : AbsEtaInRange(p1.abseta(), p2.abseta()) { }
117 bool operator()(const ParticleBase& p) const { return p.abseta() >= absetacut.first && p.abseta() < absetacut.second; }
147 bool operator()(const ParticleBase& p) const { return p.rap() >= rapcut.first && p.rap() < rapcut.second; }
176 AbsRapInRange(double absraplow, double absraphigh) : AbsRapInRange(make_pair(absraplow, absraphigh)) { }
177 AbsRapInRange(const FourMomentum& p1, const FourMomentum& p2) : AbsRapInRange(p1.absrap(), p2.absrap()) { }
178 bool operator()(const ParticleBase& p) const { return p.absrap() >= absrapcut.first && p.absrap() < absrapcut.second; }
195 : drcut(dr), rapscheme(PSEUDORAPIDITY) { refvec.setPx(vec.x()); refvec.setPy(vec.y()); refvec.setPz(vec.z()); }
210 : drcut(dr), rapscheme(PSEUDORAPIDITY) { refvec.setPx(vec.x()); refvec.setPy(vec.y()); refvec.setPz(vec.z()); }
220 DeltaRInRange(const ParticleBase& vec, const pair<double,double>& dr, RapScheme scheme=PSEUDORAPIDITY)
222 DeltaRInRange(const ParticleBase& vec, double drmin, double drmax, RapScheme scheme=PSEUDORAPIDITY)
224 DeltaRInRange(const FourMomentum& vec, const pair<double,double>& dr, RapScheme scheme=PSEUDORAPIDITY)
226 DeltaRInRange(const FourMomentum& vec, double drmin, double drmax, RapScheme scheme=PSEUDORAPIDITY)
229 : drcut(dr), rapscheme(PSEUDORAPIDITY) { refvec.setPx(vec.x()); refvec.setPy(vec.y()); refvec.setPz(vec.z()); }
303 bool operator()(const ParticleBase& p) const { return std::abs(deltaEta(p, refvec)) > detacut; }
317 bool operator()(const ParticleBase& p) const { return std::abs(deltaEta(p, refvec)) < detacut; }
353 bool operator()(const ParticleBase& p) const { return std::abs(deltaRap(p, refvec)) > drapcut; }
365 bool operator()(const ParticleBase& p) const { return std::abs(deltaRap(p, refvec)) < drapcut; }
407 DeltaRWRT(const ParticleBase& pb, RapScheme scheme=PSEUDORAPIDITY) : p(pb.mom()), rapscheme(scheme) {}
408 DeltaRWRT(const FourMomentum& p4, RapScheme scheme=PSEUDORAPIDITY) : p(p4), rapscheme(scheme) {}
409 DeltaRWRT(const Vector3& p3) : p(p3.mod(), p3.x(), p3.y(), p3.z()), rapscheme(PSEUDORAPIDITY) {}
485 ifilter_discard(tofilter, [&](const typename PBCONTAINER1::value_type& pbfilt){ return fn(pbfilt, pbcmp); });
505 if (any(tocompare, [&](const typename PBCONTAINER2::value_type& pbcmp){ return fn(pbfilt, pbcmp); })) {
527 if (!all(tocompare, [&](const typename PBCONTAINER2::value_type& pbcmp){ return fn(pbfilt, pbcmp); })) {
548 if (all(tocompare, [&](const typename PBCONTAINER2::value_type& pbcmp){ return fn(pbfilt, pbcmp); })) {
569 inline void idiscardIfAnyDeltaRLess(PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dR) {
576 inline PBCONTAINER1 discardIfAnyDeltaRLess(const PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dR) {
583 inline void idiscardIfAnyDeltaPhiLess(PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dphi) {
590 inline PBCONTAINER1 discardIfAnyDeltaPhiLess(const PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dphi) {
599 inline PBCONTAINER1 selectIfAnyDeltaRLess(const PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dR) {
608 inline void iselectIfAnyDeltaRLess(PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dR) {
614 inline PBCONTAINER1 selectIfAnyDeltaPhiLess(const PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dphi) {
623 inline void iselectIfAnyDeltaPhiLess(PBCONTAINER1& tofilter, const PBCONTAINER2& tocompare, double dphi) {
678 inline double pairPt(const ParticleBase& p1, const ParticleBase& p2) { return (p1.mom() + p2.mom()).pT(); }
681 inline double pairMass(const ParticleBase& p1, const ParticleBase& p2) { return (p1.mom() + p2.mom()).mass(); }
Specialized version of the FourVector with momentum/energy functionality. Definition: Vector4.hh:306 Base class for particle-like things like Particle and Jet. Definition: ParticleBase.hh:13 Vector3 p3() const Get the 3-momentum directly. Definition: ParticleBase.hh:108 const FourMomentum & mom() const Get equivalent single momentum four-vector (const) (alias). Definition: ParticleBase.hh:39 bool all(const CONTAINER &c) Return true if x is true for all x in container c, otherwise false. Definition: Utils.hh:356 bool any(const CONTAINER &c) Return true if x is true for any x in container c, otherwise false. Definition: Utils.hh:334 Jets & ifilter_discard(Jets &jets, const Cut &c) Filter a jet collection in-place to the subset that fails the supplied Cut. FourMomentum & setPz(double pz) Set z-component of momentum . Definition: Vector4.hh:360 Vector3 vector3() const Get the spatial part of the 4-vector as a 3-vector. Definition: Vector4.hh:167 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 pT() const Calculate the transverse momentum . Definition: Vector4.hh:633 function< bool(const ParticleBase &)> ParticleBaseSelector std::function instantiation for functors taking a ParticleBase and returning a bool Definition: ParticleBaseUtils.hh:19 function< bool(const ParticleBase &, const ParticleBase &)> ParticleBaseSorter std::function instantiation for functors taking two ParticleBase and returning a bool Definition: ParticleBaseUtils.hh:21 double pT(const ParticleBase &p) Unbound function access to pT. Definition: ParticleBaseUtils.hh:656 FourMomentum p4(const ParticleBase &p) Unbound function access to momentum. Definition: ParticleBaseUtils.hh:644 Vector3 pTvec(const ParticleBase &p) Unbound function access to pTvec. Definition: ParticleBaseUtils.hh:650 Vector3 p3(const ParticleBase &p) Unbound function access to p3. Definition: ParticleBaseUtils.hh:647 FourMomentum mom(const ParticleBase &p) Unbound function access to momentum. Definition: ParticleBaseUtils.hh:642 double absrap(const ParticleBase &p) Unbound function access to abs rapidity. Definition: ParticleBaseUtils.hh:671 double eta(const ParticleBase &p) Unbound function access to eta. Definition: ParticleBaseUtils.hh:662 double mass(const ParticleBase &p) Unbound function access to mass. Definition: ParticleBaseUtils.hh:674 double pairPt(const ParticleBase &p1, const ParticleBase &p2) Unbound function access to pair pT. Definition: ParticleBaseUtils.hh:678 double rap(const ParticleBase &p) Unbound function access to rapidity. Definition: ParticleBaseUtils.hh:668 double Et(const ParticleBase &p) Unbound function access to ET. Definition: ParticleBaseUtils.hh:659 double p(const ParticleBase &p) Unbound function access to p. Definition: ParticleBaseUtils.hh:653 double abseta(const ParticleBase &p) Unbound function access to abseta. Definition: ParticleBaseUtils.hh:665 double pairMass(const ParticleBase &p1, const ParticleBase &p2) Unbound function access to pair mass. Definition: ParticleBaseUtils.hh:681 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 RapScheme Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc. Definition: MathConstants.hh:46 Calculator of with respect to a given momentum. Definition: ParticleBaseUtils.hh:443 Calculator of with respect to a given momentum. Definition: ParticleBaseUtils.hh:465 Base type for Particle -> bool functors. Definition: ParticleBaseUtils.hh:25 (with respect to another momentum, vec) greater-than functor Definition: ParticleBaseUtils.hh:296 (with respect to another 4-momentum, vec) in-range functor Definition: ParticleBaseUtils.hh:324 (with respect to another momentum, vec) less-than functor Definition: ParticleBaseUtils.hh:310 Calculator of with respect to a given momentum. Definition: ParticleBaseUtils.hh:431 (with respect to another momentum, vec) greater-than functor Definition: ParticleBaseUtils.hh:244 (with respect to another 4-momentum, vec) in-range functor Definition: ParticleBaseUtils.hh:272 (with respect to another momentum, vec) less-than functor Definition: ParticleBaseUtils.hh:258 Calculator of with respect to a given momentum. Definition: ParticleBaseUtils.hh:419 (with respect to another 4-momentum, vec) greater-than functor Definition: ParticleBaseUtils.hh:189 (with respect to another 4-momentum, vec) in-range functor Definition: ParticleBaseUtils.hh:219 (with respect to another 4-momentum, vec) less-than functor Definition: ParticleBaseUtils.hh:204 (with respect to another momentum, vec) greater-than functor Definition: ParticleBaseUtils.hh:348 (with respect to another 4-momentum, vec) in-range functor Definition: ParticleBaseUtils.hh:372 (with respect to another momentum, vec) less-than functor Definition: ParticleBaseUtils.hh:360 Calculator of with respect to a given momentum. Definition: ParticleBaseUtils.hh:455 Base type for Particle -> double functors. Definition: ParticleBaseUtils.hh:400 Generated on Fri May 13 2022 23:02:06 for Rivet by |