|
std::string | toString (const AnalysisInfo &ai) |
| String representation.
|
|
std::ostream & | operator<< (std::ostream &os, const AnalysisInfo &ai) |
| Stream an AnalysisInfo as a text description.
|
|
template<typename T , typename FN = T(const ParticleBase&)> |
T | sum (const DressedLeptons &c, FN &&fn, const T &start=T()) |
| Generic sum function, adding fn(x ) for all x in container c, starting with start.
|
|
Jets | operator+ (const Jets &a, const Jets &b) |
|
LorentzTransform | inverse (const LorentzTransform <) |
|
LorentzTransform | combine (const LorentzTransform &a, const LorentzTransform &b) |
|
FourVector | transform (const LorentzTransform <, const FourVector &v4) |
|
string | toString (const LorentzTransform <) |
|
std::ostream & | operator<< (std::ostream &out, const LorentzTransform <) |
|
double | mT (double pT1, double pT2, double dphi) |
|
template<size_t N> |
EigenSystem< N > | diagonalize (const Matrix< N > &m) |
|
template<size_t N> |
const string | toString (const typename EigenSystem< N >::EigenPair &e) |
|
template<size_t N> |
ostream & | operator<< (std::ostream &out, const typename EigenSystem< N >::EigenPair &e) |
|
template<size_t N> |
Matrix< N > | multiply (const Matrix< N > &a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | divide (const Matrix< N > &, const double) |
|
template<size_t N> |
Matrix< N > | operator* (const Matrix< N > &a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | add (const Matrix< N > &a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | subtract (const Matrix< N > &a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | operator+ (const Matrix< N > a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | operator- (const Matrix< N > a, const Matrix< N > &b) |
|
template<size_t N> |
Matrix< N > | multiply (const double a, const Matrix< N > &m) |
|
template<size_t N> |
Matrix< N > | multiply (const Matrix< N > &m, const double a) |
|
template<size_t N> |
Matrix< N > | operator* (const double a, const Matrix< N > &m) |
|
template<size_t N> |
Matrix< N > | operator* (const Matrix< N > &m, const double a) |
|
template<size_t N> |
Vector< N > | multiply (const Matrix< N > &a, const Vector< N > &b) |
|
template<size_t N> |
Vector< N > | operator* (const Matrix< N > &a, const Vector< N > &b) |
|
template<size_t N> |
Matrix< N > | transpose (const Matrix< N > &m) |
|
template<size_t N> |
Matrix< N > | inverse (const Matrix< N > &m) |
|
template<size_t N> |
double | det (const Matrix< N > &m) |
|
template<size_t N> |
double | trace (const Matrix< N > &m) |
|
template<size_t N> |
string | toString (const Matrix< N > &m) |
| Make string representation.
|
|
template<size_t N> |
std::ostream & | operator<< (std::ostream &out, const Matrix< N > &m) |
| Stream out string representation.
|
|
template<size_t N> |
bool | fuzzyEquals (const Matrix< N > &ma, const Matrix< N > &mb, double tolerance=1E-5) |
| Compare two matrices by index, allowing for numerical precision.
|
|
template<size_t N> |
bool | isZero (const Matrix< N > &m, double tolerance=1E-5) |
| External form of numerically safe nullness check.
|
|
Vector2 | multiply (const double, const Vector2 &) |
|
Vector2 | multiply (const Vector2 &, const double) |
|
Vector2 | add (const Vector2 &, const Vector2 &) |
|
Vector2 | operator* (const double, const Vector2 &) |
|
Vector2 | operator* (const Vector2 &, const double) |
|
Vector2 | operator/ (const Vector2 &, const double) |
|
Vector2 | operator+ (const Vector2 &, const Vector2 &) |
|
Vector2 | operator- (const Vector2 &, const Vector2 &) |
|
double | dot (const Vector2 &a, const Vector2 &b) |
|
Vector2 | subtract (const Vector2 &a, const Vector2 &b) |
|
double | angle (const Vector2 &a, const Vector2 &b) |
| Angle (in radians) between two 2-vectors.
|
|
Vector3 | multiply (const double a, const Vector3 &v) |
| Unbound scalar-product function.
|
|
Vector3 | multiply (const Vector3 &v, const double a) |
| Unbound scalar-product function.
|
|
Vector3 | add (const Vector3 &a, const Vector3 &b) |
| Unbound vector addition function.
|
|
Vector3 | operator* (const double a, const Vector3 &v) |
| Unbound scalar multiplication operator.
|
|
Vector3 | operator* (const Vector3 &v, const double a) |
| Unbound scalar multiplication operator.
|
|
Vector3 | operator/ (const Vector3 &v, const double a) |
| Unbound scalar division operator.
|
|
Vector3 | operator+ (const Vector3 &a, const Vector3 &b) |
| Unbound vector addition operator.
|
|
Vector3 | operator- (const Vector3 &a, const Vector3 &b) |
| Unbound vector subtraction operator.
|
|
ThreeMomentum | multiply (const double, const ThreeMomentum &) |
|
ThreeMomentum | multiply (const ThreeMomentum &, const double) |
|
ThreeMomentum | add (const ThreeMomentum &, const ThreeMomentum &) |
|
ThreeMomentum | operator* (const double, const ThreeMomentum &) |
|
ThreeMomentum | operator* (const ThreeMomentum &, const double) |
|
ThreeMomentum | operator/ (const ThreeMomentum &, const double) |
|
ThreeMomentum | operator+ (const ThreeMomentum &, const ThreeMomentum &) |
|
ThreeMomentum | operator- (const ThreeMomentum &, const ThreeMomentum &) |
|
double | dot (const Vector3 &a, const Vector3 &b) |
| Unbound dot-product function.
|
|
Vector3 | cross (const Vector3 &a, const Vector3 &b) |
| Unbound cross-product function.
|
|
Vector3 | subtract (const Vector3 &a, const Vector3 &b) |
| Unbound vector subtraction function.
|
|
double | angle (const Vector3 &a, const Vector3 &b) |
| Angle (in radians) between two 3-vectors.
|
|
Vector3 | operator+ (const ThreeMomentum &a, const Vector3 &b) |
|
Vector3 | operator+ (const Vector3 &a, const ThreeMomentum &b) |
|
Vector3 | operator- (const ThreeMomentum &a, const Vector3 &b) |
|
Vector3 | operator- (const Vector3 &a, const ThreeMomentum &b) |
|
double | deltaEta (const Vector3 &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two spatial vectors.
|
|
double | deltaEta (const Vector3 &v, double eta2, bool sign=false) |
| Calculate the difference in pseudorapidity between two spatial vectors.
|
|
double | deltaEta (double eta1, const Vector3 &v, bool sign=false) |
| Calculate the difference in pseudorapidity between two spatial vectors.
|
|
double | deltaPhi (const Vector3 &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two spatial vectors.
|
|
double | deltaPhi (const Vector3 &v, double phi2, bool sign=false) |
| Calculate the difference in azimuthal angle between two spatial vectors.
|
|
double | deltaPhi (double phi1, const Vector3 &v, bool sign=false) |
| Calculate the difference in azimuthal angle between two spatial vectors.
|
|
double | deltaR2 (const Vector3 &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | deltaR (const Vector3 &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | deltaR2 (const Vector3 &v, double eta2, double phi2) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | deltaR (const Vector3 &v, double eta2, double phi2) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | deltaR2 (double eta1, double phi1, const Vector3 &v) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | deltaR (double eta1, double phi1, const Vector3 &v) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
|
|
double | mT (const Vector3 &vis, const Vector3 &invis) |
|
double | pT (const Vector3 &a, const Vector3 &b) |
| Calculate transverse momentum of pair of 3-vectors.
|
|
double | contract (const FourVector &a, const FourVector &b) |
| Contract two 4-vectors, with metric signature (+ - - -).
|
|
double | dot (const FourVector &a, const FourVector &b) |
| Contract two 4-vectors, with metric signature (+ - - -).
|
|
FourVector | multiply (const double a, const FourVector &v) |
|
FourVector | multiply (const FourVector &v, const double a) |
|
FourVector | operator* (const double a, const FourVector &v) |
|
FourVector | operator* (const FourVector &v, const double a) |
|
FourVector | operator/ (const FourVector &v, const double a) |
|
FourVector | add (const FourVector &a, const FourVector &b) |
|
FourVector | operator+ (const FourVector &a, const FourVector &b) |
|
FourVector | operator- (const FourVector &a, const FourVector &b) |
|
double | invariant (const FourVector &lv) |
|
double | angle (const FourVector &a, const FourVector &b) |
| Angle (in radians) between spatial parts of two Lorentz vectors.
|
|
double | angle (const Vector3 &a, const FourVector &b) |
| Angle (in radians) between spatial parts of two Lorentz vectors.
|
|
double | angle (const FourVector &a, const Vector3 &b) |
| Angle (in radians) between spatial parts of two Lorentz vectors.
|
|
FourMomentum | multiply (const double a, const FourMomentum &v) |
|
FourMomentum | multiply (const FourMomentum &v, const double a) |
|
FourMomentum | operator* (const double a, const FourMomentum &v) |
|
FourMomentum | operator* (const FourMomentum &v, const double a) |
|
FourMomentum | operator/ (const FourMomentum &v, const double a) |
|
FourMomentum | add (const FourMomentum &a, const FourMomentum &b) |
|
FourMomentum | operator+ (const FourMomentum &a, const FourMomentum &b) |
|
FourMomentum | operator- (const FourMomentum &a, const FourMomentum &b) |
|
bool | cmpMomByPt (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing pT.
|
|
bool | cmpMomByAscPt (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing pT.
|
|
bool | cmpMomByP (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing 3-momentum magnitude |p|.
|
|
bool | cmpMomByAscP (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing 3-momentum magnitude |p|.
|
|
bool | cmpMomByEt (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing transverse energy.
|
|
bool | cmpMomByAscEt (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing transverse energy.
|
|
bool | cmpMomByE (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing energy.
|
|
bool | cmpMomByAscE (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing energy.
|
|
bool | cmpMomByMass (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing mass.
|
|
bool | cmpMomByAscMass (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing mass.
|
|
bool | cmpMomByEta (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing eta (pseudorapidity)
|
|
bool | cmpMomByDescEta (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing eta (pseudorapidity)
|
|
bool | cmpMomByAbsEta (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing absolute eta (pseudorapidity)
|
|
bool | cmpMomByDescAbsEta (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing absolute eta (pseudorapidity)
|
|
bool | cmpMomByRap (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing rapidity.
|
|
bool | cmpMomByDescRap (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing rapidity.
|
|
bool | cmpMomByAbsRap (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by increasing absolute rapidity.
|
|
bool | cmpMomByDescAbsRap (const FourMomentum &a, const FourMomentum &b) |
| Comparison to give a sorting by decreasing absolute rapidity.
|
|
template<typename MOMS , typename CMP > |
MOMS & | isortBy (MOMS &pbs, const CMP &cmp) |
| Sort a container of momenta by cmp and return by reference for non-const inputs.
|
|
template<typename MOMS , typename CMP > |
MOMS | sortBy (const MOMS &pbs, const CMP &cmp) |
| Sort a container of momenta by cmp and return by value for const inputs.
|
|
template<typename MOMS > |
MOMS & | isortByPt (MOMS &pbs) |
| Sort a container of momenta by pT (decreasing) and return by reference for non-const inputs.
|
|
template<typename MOMS > |
MOMS | sortByPt (const MOMS &pbs) |
| Sort a container of momenta by pT (decreasing) and return by value for const inputs.
|
|
template<typename MOMS > |
MOMS & | isortByE (MOMS &pbs) |
| Sort a container of momenta by E (decreasing) and return by reference for non-const inputs.
|
|
template<typename MOMS > |
MOMS | sortByE (const MOMS &pbs) |
| Sort a container of momenta by E (decreasing) and return by value for const inputs.
|
|
template<typename MOMS > |
MOMS & | isortByEt (MOMS &pbs) |
| Sort a container of momenta by Et (decreasing) and return by reference for non-const inputs.
|
|
template<typename MOMS > |
MOMS | sortByEt (const MOMS &pbs) |
| Sort a container of momenta by Et (decreasing) and return by value for const inputs.
|
|
double | mass (const FourMomentum &a, const FourMomentum &b) |
| Calculate mass of two 4-vectors.
|
|
double | mass2 (const FourMomentum &a, const FourMomentum &b) |
| Calculate mass^2 of two 4-vectors.
|
|
double | mT (const FourMomentum &vis, const FourMomentum &invis) |
|
double | mT (const FourMomentum &vis, const Vector3 &invis) |
|
double | mT (const Vector3 &vis, const FourMomentum &invis) |
|
double | pT (const FourMomentum &vis, const FourMomentum &invis) |
| Calculate transverse momentum of two 4-vectors.
|
|
double | pT (const FourMomentum &vis, const Vector3 &invis) |
| Calculate transverse momentum of a 4-vector and a 3-vector.
|
|
double | pT (const Vector3 &vis, const FourMomentum &invis) |
| Calculate transverse momentum of a 4-vector and a 3-vector.
|
|
std::string | toString (const FourVector &lv) |
| Render a 4-vector as a string.
|
|
std::ostream & | operator<< (std::ostream &out, const FourVector &lv) |
| Write a 4-vector to an ostream.
|
|
template<size_t N> |
bool | fuzzyEquals (const Vector< N > &va, const Vector< N > &vb, double tolerance=1E-5) |
| Compare two vectors by index, allowing for numerical precision.
|
|
template<size_t N> |
bool | isZero (const Vector< N > &v, double tolerance=1E-5) |
| External form of numerically safe nullness check.
|
|
Particles | operator+ (const Particles &a, const Particles &b) |
|
template<class RandomAccessIterator , class WeightIterator , class RandomNumberGenerator > |
void | weighted_shuffle (RandomAccessIterator first, RandomAccessIterator last, WeightIterator fw, WeightIterator lw, RandomNumberGenerator &g) |
| Make an event mixed together from several events.
|
|
void | pxcone_ (int mode, int ntrak, int itkdm, const double *ptrak, double coner, double epslon, double ovlim, int mxjet, int &njet, double *pjet, int *ipass, int *ijmul, int *ierr) |
|
std::string | version () |
| A function to get the Rivet version string.
|
|
bool | compatibleBeamID (PdgId p, PdgId allowed) |
| Find whether ParticleName p is compatible with the template ParticleName allowed.
|
|
bool | compatibleBeamIDs (const PdgIdPair &pair, const PdgIdPair &allowedpair) |
| Find whether PdgIdPair pair is compatible with the template PdgIdPair allowedpair.
|
|
bool | compatibleBeamIDs (const ParticlePair &ppair, const PdgIdPair &allowedpair) |
| Check particle compatibility of two Particle pairs.
|
|
bool | compatibleBeamIDs (const ParticlePair &a, const ParticlePair &b) |
| Check particle compatibility of two Particle pairs.
|
|
bool | compatibleBeamEnergies (const pair< double, double > &energies, const pair< double, double > &allowedenergies, const double reltol=1e-3) |
| Check the energy compatibility of two pairs of particle energies.
|
|
bool | compatibleBeamEnergies (const ParticlePair &ppair, const pair< double, double > &allowedenergies, double reltol=1e-3) |
| Check the energy compatibility of a pair of particles.
|
|
bool | compatibleBeamEnergies (const ParticlePair &ppair, const ParticlePair &allowedppair, double reltol=1e-3) |
| Check the energy compatibility of two Particle pairs.
|
|
bool | compatibleBeamEnergy (const pair< double, double > &energies, double allowedsqrts, double reltol=1e-3) |
| Check the sqrt(s) compatibility of two massless opposing beams.
|
|
bool | compatibleBeamEnergy (const ParticlePair &ppair, const pair< double, double > &allowedenergies, double reltol=1e-3) |
| Check the sqrt(s) compatibility of two massless opposing beams.
|
|
bool | compatibleBeamEnergy (const ParticlePair &ppair, const double allowedsqrts, double reltol=1e-3) |
| Check the sqrt(s) compatibility of a Particle pair.
|
|
bool | compatibleBeams (const ParticlePair &ppair, const PdgIdPair &allowedpids, double allowedsqrts) |
| Check the particle ID and beam-energy compatibility of two Particle pairs.
|
|
bool | compatibleBeams (const ParticlePair &ppair, const PdgIdPair &allowedpids, const pair< double, double > &allowedenergies) |
| Check the particle ID and beam-energy compatibility of two Particle pairs.
|
|
bool | compatibleBeams (const ParticlePair &a, const ParticlePair &b) |
| Check the particle ID and beam-energy compatibility of two Particle pairs.
|
|
ParticlePair | beams (const Event &e) |
| Get beam particles from an event.
|
|
bool | validBeams (const ParticlePair &beams) |
| Check if the given beam pair is valid.
|
|
bool | validBeams (const Event &e) |
| Check if the event's beam pair is valid.
|
|
PdgIdPair | beamIDs (const ParticlePair &beams) |
| Get beam particle IDs from a pair of Particles.
|
|
PdgIdPair | beamIDs (const Event &e) |
| Get beam particle IDs from an event.
|
|
PdgIdPair | beamEnergies (const ParticlePair &beams) |
| Get beam particle energies from a pair of Particles.
|
|
PdgIdPair | beamEnergies (const Event &e) |
| Get beam particle energies from an event.
|
|
double | sqrtS (double ea, double eb) |
| Get beam centre-of-mass energy from a pair of beam energies.
|
|
double | sqrtS (const pair< double, double > &energies) |
| Get beam centre-of-mass energy from a pair of beam energies.
|
|
double | sqrtS (const FourMomentum &pa, const FourMomentum &pb) |
| Get beam centre-of-mass energy from a pair of beam momenta.
|
|
double | sqrtS (const ParticlePair &beams) |
| Get beam centre-of-mass energy from a pair of Particles.
|
|
double | sqrtS (const Event &e) |
| Get beam centre-of-mass energy from an Event.
|
|
double | asqrtS (const FourMomentum &pa, const FourMomentum &pb) |
|
double | asqrtS (const ParticlePair &beams) |
|
double | asqrtS (const Event &e) |
|
FourMomentum | cmsBoostVec (const FourMomentum &pa, const FourMomentum &pb) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
|
|
FourMomentum | cmsBoostVec (const ParticlePair &beams) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
|
|
FourMomentum | acmsBoostVec (const FourMomentum &pa, const FourMomentum &pb) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
|
|
FourMomentum | acmsBoostVec (const ParticlePair &beams) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
|
|
Vector3 | cmsBetaVec (const FourMomentum &pa, const FourMomentum &pb) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
|
|
Vector3 | cmsBetaVec (const ParticlePair &beams) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
|
|
Vector3 | acmsBetaVec (const FourMomentum &pa, const FourMomentum &pb) |
|
Vector3 | acmsBetaVec (const ParticlePair &beams) |
|
Vector3 | cmsGammaVec (const FourMomentum &pa, const FourMomentum &pb) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
|
|
Vector3 | cmsGammaVec (const ParticlePair &beams) |
| Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
|
|
Vector3 | acmsGammaVec (const FourMomentum &pa, const FourMomentum &pb) |
|
Vector3 | acmsGammaVec (const ParticlePair &beams) |
|
LorentzTransform | cmsTransform (const FourMomentum &pa, const FourMomentum &pb) |
| Get the Lorentz transformation to the beam centre-of-mass system (CMS) from a pair of beam momenta.
|
|
LorentzTransform | cmsTransform (const ParticlePair &beams) |
| Get the Lorentz transformation to the beam centre-of-mass system (CMS) from a pair of Particles.
|
|
LorentzTransform | acmsTransform (const FourMomentum &pa, const FourMomentum &pb) |
|
LorentzTransform | acmsTransform (const ParticlePair &beams) |
|
template<typename T > |
Cmp< T > | cmp (const T &t1, const T &t2) |
| Global helper function for easy creation of Cmp objects.
|
|
Cmp< Projection > | pcmp (const Projection &p1, const Projection &p2) |
| Global helper function for easy creation of Cmp<Projection> objects.
|
|
Cmp< Projection > | pcmp (const Projection &parent1, const Projection &parent2, const string &pname) |
|
Cmp< Projection > | pcmp (const Projection *parent1, const Projection &parent2, const string &pname) |
|
Cmp< Projection > | pcmp (const Projection &parent1, const Projection *parent2, const string &pname) |
|
Cmp< Projection > | pcmp (const Projection *parent1, const Projection *parent2, const string &pname) |
|
bool | operator== (const Cut &a, const Cut &b) |
| Compare two cuts for equality, forwards to the cut-specific implementation.
|
|
std::ostream & | operator<< (std::ostream &os, const Cut &cptr) |
| String representation.
|
|
double | ELECTRON_RECOEFF_ATLAS_RUN1 (const Particle &e) |
|
double | ELECTRON_RECOEFF_ATLAS_RUN2 (const Particle &e) |
|
double | ELECTRON_EFF_ATLAS_RUN2_LOOSE (const Particle &e) |
| ATLAS Run 2 'loose' electron reco+identification efficiency.
|
|
double | ELECTRON_EFF_ATLAS_RUN1_MEDIUM (const Particle &e) |
| ATLAS Run 1 'medium' electron reco+identification efficiency.
|
|
double | ELECTRON_EFF_ATLAS_RUN2_MEDIUM (const Particle &e) |
| ATLAS Run 2 'medium' electron reco+identification efficiency.
|
|
double | ELECTRON_EFF_ATLAS_RUN1_TIGHT (const Particle &e) |
| ATLAS Run 1 'tight' electron reco+identification efficiency.
|
|
double | ELECTRON_EFF_ATLAS_RUN2_TIGHT (const Particle &e) |
| ATLAS Run 2 'tight' electron reco+identification efficiency.
|
|
Particle | ELECTRON_SMEAR_ATLAS_RUN1 (const Particle &e) |
| ATLAS Run 1 electron reco smearing.
|
|
Particle | ELECTRON_SMEAR_ATLAS_RUN2 (const Particle &e) |
|
double | ELECTRON_EFF_CMS_RUN1 (const Particle &e) |
| CMS Run 1 electron reconstruction efficiency.
|
|
double | ELECTRON_EFF_CMS_RUN2 (const Particle &e) |
|
Particle | ELECTRON_SMEAR_CMS_RUN1 (const Particle &e) |
| CMS electron energy smearing, preserving direction.
|
|
Particle | ELECTRON_SMEAR_CMS_RUN2 (const Particle &e) |
|
double | PHOTON_EFF_ATLAS_RUN1 (const Particle &y) |
| ATLAS Run 2 photon reco efficiency.
|
|
double | PHOTON_EFF_ATLAS_RUN2 (const Particle &y) |
| ATLAS Run 2 photon reco efficiency.
|
|
double | PHOTON_EFF_CMS_RUN1 (const Particle &y) |
|
double | PHOTON_EFF_CMS_RUN2 (const Particle &y) |
|
Particle | PHOTON_SMEAR_ATLAS_RUN1 (const Particle &y) |
|
Particle | PHOTON_SMEAR_ATLAS_RUN2 (const Particle &y) |
|
Particle | PHOTON_SMEAR_CMS_RUN1 (const Particle &y) |
|
Particle | PHOTON_SMEAR_CMS_RUN2 (const Particle &y) |
|
double | MUON_EFF_ATLAS_RUN1 (const Particle &m) |
| ATLAS Run 1 muon reco efficiency.
|
|
double | MUON_RECOEFF_ATLAS_RUN2 (const Particle &m) |
|
double | MUON_EFF_ATLAS_RUN2 (const Particle &m) |
| ATLAS Run 2 muon reco+ID efficiency.
|
|
Particle | MUON_SMEAR_ATLAS_RUN1 (const Particle &m) |
| ATLAS Run 1 muon reco smearing.
|
|
Particle | MUON_SMEAR_ATLAS_RUN2 (const Particle &m) |
|
double | MUON_EFF_CMS_RUN1 (const Particle &m) |
| CMS Run 1 muon reco efficiency.
|
|
double | MUON_EFF_CMS_RUN2 (const Particle &m) |
|
Particle | MUON_SMEAR_CMS_RUN1 (const Particle &m) |
| CMS Run 1 muon reco smearing.
|
|
Particle | MUON_SMEAR_CMS_RUN2 (const Particle &m) |
|
double | TAU_EFF_ATLAS_RUN1 (const Particle &t) |
| ATLAS Run 1 8 TeV tau efficiencies (medium working point)
|
|
double | TAUJET_EFF_ATLAS_RUN1 (const Jet &j) |
| ATLAS Run 1 8 TeV tau misID rates (medium working point)
|
|
double | TAU_EFF_ATLAS_RUN2 (const Particle &t) |
| ATLAS Run 2 13 TeV tau efficiencies (medium working point)
|
|
double | TAUJET_EFF_ATLAS_RUN2 (const Jet &j) |
| ATLAS Run 2 13 TeV tau misID rate (medium working point)
|
|
Particle | TAU_SMEAR_ATLAS_RUN1 (const Particle &t) |
|
Particle | TAU_SMEAR_ATLAS_RUN2 (const Particle &t) |
|
double | TAU_EFF_CMS_RUN1 (const Particle &t) |
|
double | TAU_EFF_CMS_RUN2 (const Particle &t) |
|
Particle | TAU_SMEAR_CMS_RUN1 (const Particle &t) |
|
Particle | TAU_SMEAR_CMS_RUN2 (const Particle &t) |
|
double | JET_BTAG_ATLAS_RUN1 (const Jet &j) |
| Return the ATLAS Run 1 jet flavour tagging efficiency for the given Jet, from Delphes.
|
|
double | JET_BTAG_ATLAS_RUN2_MV2C20 (const Jet &j) |
| Return the ATLAS Run 2 MC2c20 77% WP jet flavour tagging efficiency for the given Jet.
|
|
double | JET_BTAG_ATLAS_RUN2_MV2C10 (const Jet &j) |
| Return the ATLAS Run 2 MC2c10 77% WP jet flavour tagging efficiency for the given Jet.
|
|
Jet | JET_SMEAR_ATLAS_RUN1 (const Jet &j) |
| ATLAS Run 1 jet smearing.
|
|
Jet | JET_SMEAR_ATLAS_RUN2 (const Jet &j) |
|
Jet | JET_SMEAR_CMS_RUN1 (const Jet &j) |
|
Jet | JET_SMEAR_CMS_RUN2 (const Jet &j) |
|
Vector3 | MET_SMEAR_IDENTITY (const Vector3 &met, double) |
|
Vector3 | MET_SMEAR_ATLAS_RUN1 (const Vector3 &met, double set) |
| ATLAS Run 1 ETmiss smearing.
|
|
Vector3 | MET_SMEAR_ATLAS_RUN2 (const Vector3 &met, double set) |
|
Vector3 | MET_SMEAR_CMS_RUN1 (const Vector3 &met, double set) |
|
Vector3 | MET_SMEAR_CMS_RUN2 (const Vector3 &met, double set) |
|
double | TRK_EFF_ATLAS_RUN1 (const Particle &p) |
| ATLAS Run 1 tracking efficiency.
|
|
double | TRK_EFF_ATLAS_RUN2 (const Particle &p) |
|
double | TRK_EFF_CMS_RUN1 (const Particle &p) |
| CMS Run 1 tracking efficiency.
|
|
double | TRK_EFF_CMS_RUN2 (const Particle &p) |
|
double | ATLAS_JVT_EFF_LOOSE (const Jet &j) |
| Return the efficiency of the ATLAS JVT tagger at > 0.2 W.P.
|
|
double | ATLAS_JVT_EFF_MEDIUM (const Jet &j) |
| Return the efficiency of the ATLAS JVT tagger at > 0.4 W.P.
|
|
double | ATLAS_JVT_EFF_TIGHT (const Jet &j) |
| Return the efficiency of the ATLAS JVT tagger at > 0.7 W.P.
|
|
PseudoJets | mkPseudoJets (const Particles &ps) |
|
PseudoJets | mkPseudoJets (const Jets &js) |
|
Jets | mkJets (const PseudoJets &pjs) |
|
BoolJetAND | operator&& (const JetSelector &a, const JetSelector &b) |
| Operator syntactic sugar for AND construction.
|
|
BoolJetOR | operator|| (const JetSelector &a, const JetSelector &b) |
| Operator syntactic sugar for OR construction.
|
|
BoolJetNOT | operator! (const JetSelector &a) |
| Operator syntactic sugar for NOT construction.
|
|
Jets & | iselect (Jets &jets, const Cut &c) |
| Filter a jet collection in-place to the subset that passes the supplied Cut.
|
|
Jets | select (const Jets &jets, const Cut &c) |
| Filter a jet collection in-place to the subset that passes the supplied Cut.
|
|
Jets | select (const Jets &jets, const Cut &c, Jets &out) |
| Filter a jet collection in-place to the subset that passes the supplied Cut.
|
|
Jets & | idiscard (Jets &jets, const Cut &c) |
| Filter a jet collection in-place to the subset that fails the supplied Cut.
|
|
Jets | discard (const Jets &jets, const Cut &c) |
| Filter a jet collection in-place to the subset that fails the supplied Cut.
|
|
Jets | discard (const Jets &jets, const Cut &c, Jets &out) |
| Filter a jet collection in-place to the subset that fails the supplied Cut.
|
|
Jets | trimJetsFrac (const PseudoJets &jetsIn, const double frac=0.1) |
|
std::ostream & | operator<< (Log &log, int level) |
| Streaming output to a logger must have a Log::Level/int as its first argument.
|
|
double | P3_EFF_ZERO (const Vector3 &) |
| Take a Vector3 and return 0.
|
|
double | P3_EFF_ONE (const Vector3 &) |
| Take a Vector3 and return 1.
|
|
Vector3 | P3_SMEAR_IDENTITY (const Vector3 &p) |
| Take a Vector3 and return it unmodified.
|
|
Vector3 | P3_SMEAR_PERFECT (const Vector3 &p) |
| Alias for P3_SMEAR_IDENTITY.
|
|
Vector3 | P3_SMEAR_LEN_GAUSS (const Vector3 &p, double resolution) |
| Smear a Vector3's length using a Gaussian of absolute width resolution.
|
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | idiscardIfAny (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | discardIfAny (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | selectIfAny (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | iselectIfAny (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | discardIfAll (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | idiscardIfAll (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | selectIfAll (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | iselectIfAll (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, typename std::function< bool(const typename PBCONTAINER1::value_type &, const typename PBCONTAINER2::value_type &)> fn) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | idiscardIfAnyDeltaRLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | discardIfAnyDeltaRLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | idiscardIfAnyDeltaPhiLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | discardIfAnyDeltaPhiLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | selectIfAnyDeltaRLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | iselectIfAnyDeltaRLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
PBCONTAINER1 | selectIfAnyDeltaPhiLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi) |
|
template<typename PBCONTAINER1 , typename PBCONTAINER2 > |
void | iselectIfAnyDeltaPhiLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi) |
|
template<typename CONTAINER , typename = isCIterable<CONTAINER>> |
int | closestMassIndex (CONTAINER &&c, double mtarget, double mmin=-DBL_MAX, double mmax=DBL_MAX) |
| Return the index from a vector which best matches mass(c[i]) to the target value.
|
|
template<typename CONTAINER1 , typename CONTAINER2 , typename = isCIterable<CONTAINER1, CONTAINER2>> |
pair< int, int > | closestMassIndices (CONTAINER1 &&c1, CONTAINER2 &&c2, double mtarget, double mmin=-DBL_MAX, double mmax=DBL_MAX) |
| Return the indices from two vectors which best match fn(c1[i], c2[j]) to the target value.
|
|
template<typename CONTAINER , typename T , typename = isCIterable<CONTAINER>> |
int | closestMassIndex (CONTAINER &&c, const T &x, double mtarget, double mmin=-DBL_MAX, double mmax=DBL_MAX) |
| Return the index from a vector which best matches fn(c[i], x) to the target value.
|
|
template<typename CONTAINER , typename T , typename = isCIterable<CONTAINER>> |
int | closestMassIndex (T &&x, CONTAINER &&c, double mtarget, double mmin=-DBL_MAX, double mmax=DBL_MAX) |
| Return the index from a vector which best matches fn(x, c[j]) to the target value.
|
|
int | pid (const Particle &p) |
| Unbound function access to PID code.
|
|
int | abspid (const Particle &p) |
| Unbound function access to abs PID code.
|
|
bool | isSameSign (const Particle &a, const Particle &b) |
|
bool | isOppSign (const Particle &a, const Particle &b) |
|
bool | isSameFlav (const Particle &a, const Particle &b) |
|
bool | isOppFlav (const Particle &a, const Particle &b) |
|
bool | isOSSF (const Particle &a, const Particle &b) |
|
bool | isSSSF (const Particle &a, const Particle &b) |
|
bool | isOSOF (const Particle &a, const Particle &b) |
|
bool | isSSOF (const Particle &a, const Particle &b) |
|
bool | oppSign (const Particle &a, const Particle &b) |
| Return true if Particles a and b have the opposite charge sign.
|
|
bool | sameSign (const Particle &a, const Particle &b) |
|
bool | oppCharge (const Particle &a, const Particle &b) |
|
bool | sameCharge (const Particle &a, const Particle &b) |
|
bool | diffCharge (const Particle &a, const Particle &b) |
| Return true if Particles a and b have a different (not necessarily opposite) charge.
|
|
bool | isFirstWith (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle is the first in a decay chain to meet the function requirement.
|
|
bool | isFirstWithout (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle is the first in a decay chain not to meet the function requirement.
|
|
bool | isLastWith (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle is the last in a decay chain to meet the function requirement.
|
|
bool | isLastWithout (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle is the last in a decay chain not to meet the function requirement.
|
|
bool | hasAncestorWith (const Particle &p, const ParticleSelector &f, bool only_physical=true) |
| Determine whether a particle has an ancestor which meets the function requirement.
|
|
bool | hasAncestorWithout (const Particle &p, const ParticleSelector &f, bool only_physical=true) |
| Determine whether a particle has an ancestor which doesn't meet the function requirement.
|
|
bool | hasParentWith (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a parent which meets the function requirement.
|
|
bool | hasParentWithout (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a parent which doesn't meet the function requirement.
|
|
bool | hasChildWith (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a child which meets the function requirement.
|
|
bool | hasChildWithout (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a child which doesn't meet the function requirement.
|
|
bool | hasDescendantWith (const Particle &p, const ParticleSelector &f, bool remove_duplicates=true) |
| Determine whether a particle has a descendant which meets the function requirement.
|
|
bool | hasDescendantWithout (const Particle &p, const ParticleSelector &f, bool remove_duplicates=true) |
| Determine whether a particle has a descendant which doesn't meet the function requirement.
|
|
bool | hasStableDescendantWith (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a stable descendant which meets the function requirement.
|
|
bool | hasStableDescendantWithout (const Particle &p, const ParticleSelector &f) |
| Determine whether a particle has a stable descendant which doesn't meet the function requirement.
|
|
bool | isVisible (const Particle &p) |
| Is this particle potentially visible in a detector?
|
|
bool | isDirect (const Particle &p, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false) |
| Decide if a given particle is direct, via Particle::isDirect()
|
|
bool | isPrompt (const Particle &p, bool allow_from_prompt_tau=false, bool allow_from_prompt_mu=false) |
| Decide if a given particle is prompt, via Particle::isPrompt()
|
|
bool | isStable (const Particle &p) |
| Decide if a given particle is stable, via Particle::isStable()
|
|
bool | hasHadronicDecay (const Particle &p) |
| Decide if a given particle decays hadronically.
|
|
bool | hasLeptonicDecay (const Particle &p) |
| Decide if a given particle decays leptonically (decays, and no hadrons)
|
|
bool | fromBottom (const Particle &p) |
| Determine whether the particle is from a b-hadron decay.
|
|
bool | fromCharm (const Particle &p) |
| Determine whether the particle is from a c-hadron decay.
|
|
bool | fromHadron (const Particle &p) |
| Determine whether the particle is from a hadron decay.
|
|
bool | fromTau (const Particle &p, bool prompt_taus_only=false) |
| Determine whether the particle is from a tau decay.
|
|
bool | fromPromptTau (const Particle &p) |
| Determine whether the particle is from a prompt tau decay.
|
|
BoolParticleAND | operator&& (const ParticleSelector &a, const ParticleSelector &b) |
| Operator syntactic sugar for AND construction.
|
|
BoolParticleOR | operator|| (const ParticleSelector &a, const ParticleSelector &b) |
| Operator syntactic sugar for OR construction.
|
|
BoolParticleNOT | operator! (const ParticleSelector &a) |
| Operator syntactic sugar for NOT construction.
|
|
Particles & | iselect (Particles &particles, const Cut &c) |
| Filter a particle collection in-place to the subset that passes the supplied Cut.
|
|
Particles | select (const Particles &particles, const Cut &c) |
| Filter a particle collection in-place to the subset that passes the supplied Cut.
|
|
Particles | select (const Particles &particles, const Cut &c, Particles &out) |
| Filter a particle collection in-place to the subset that passes the supplied Cut.
|
|
Particles & | idiscard (Particles &particles, const Cut &c) |
| Filter a particle collection in-place to the subset that fails the supplied Cut.
|
|
Particles | discard (const Particles &particles, const Cut &c) |
| Filter a particle collection in-place to the subset that fails the supplied Cut.
|
|
Particles | discard (const Particles &particles, const Cut &c, Particles &out) |
| Filter a particle collection in-place to the subset that fails the supplied Cut.
|
|
PdgIdPair | pids (const ParticlePair &pp) |
| Get the PDG ID codes of a ParticlePair.
|
|
bool | isSame (const Particle &a, const Particle &b) |
| Check Particle equivalence.
|
|
bool | containsPID (const Particles &parts, int id, bool abs=false) |
| Check for pid membership in a list of particles.
|
|
bool | isRadiative (const Particle &part) |
| Check whether a particle is radiative.
|
|
bool | cascadeContains (const Particles &parts, const vector< int > &pids, bool absolute, bool ignorephoton) |
| Check whether a set of particles' decay chains can contain the requested list of pids.
|
|
std::mt19937 & | rng () |
| Return a thread-safe random number generator (mainly for internal use)
|
|
double | rand01 () |
| Return a uniformly sampled random number between 0 and 1.
|
|
double | randnorm (double loc, double scale) |
| Return a random number sampled from a Gaussian/normal distribution.
|
|
double | randlognorm (double loc, double scale) |
| Return a random number sampled from a log-normal distribution.
|
|
double | randcrystalball (double alpha, double n, double mu, double sigma) |
| Return a random number sampled from a Crystal Ball distribution.
|
|
double | pNorm (double x, double mu, double sigma) |
| Probability density of a Gaussian/normal distribution at x.
|
|
double | pCrystalBall (double x, double alpha, double n, double mu, double sigma) |
| Probability density of a Crystal Ball distribution at x.
|
|
Vector3 | momentum3 (const fastjet::PseudoJet &pj) |
| Make a 3-momentum vector from a FastJet pseudojet.
|
|
FourMomentum | momentum (const fastjet::PseudoJet &pj) |
| Make a 4-momentum vector from a FastJet pseudojet.
|
|
lwt::JSONConfig | readLWTNNConfig (const string &jsonpath) |
| Read a LWT DNN config from the JSON path.
|
|
lwt::GraphConfig | readLWTNNGraphConfig (const string &jsonpath) |
| Read a LWT Graph config from the JSON path.
|
|
std::unique_ptr< lwt::LightweightNeuralNetwork > | mkLWTNN (const lwt::JSONConfig &jsonconfig) |
| Make a LWT DNN from the JSON config object.
|
|
std::unique_ptr< lwt::LightweightGraph > | mkGraphLWTNN (const lwt::GraphConfig &graphconfig) |
| Make a LWT Graph from the JSON config object.
|
|
std::unique_ptr< lwt::LightweightNeuralNetwork > | mkLWTNN (const string &jsonpath) |
| Make a LWT DNN direct from the JSON config path.
|
|
std::unique_ptr< lwt::LightweightGraph > | mkGraphLWTNN (const string &jsonpath) |
| Make a LWT graph direct from the JSON config path.
|
|
double | mT2Sq (const FourMomentum &a, const FourMomentum &b, const Vector3 &ptmiss, double invisiblesMass, double invisiblesMass2=-1) |
| Compute asymm mT2**2 using the bisection method.
|
|
double | mT2Sq (const FourMomentum &a, const FourMomentum &b, const FourMomentum &ptmiss, double invisiblesMass, double invisiblesMass2=-1) |
| Override for mT2Sq with FourMomentum ptmiss.
|
|
double | mT2 (const FourMomentum &a, const FourMomentum &b, const Vector3 &ptmiss, double invisiblesMass, double invisiblesMass2=-1) |
| Compute asymm mT2 using the bisection method.
|
|
double | mT2 (const FourMomentum &a, const FourMomentum &b, const FourMomentum &ptmiss, double invisiblesMass, double invisiblesMass2=-1) |
| Override for mT2 with FourMomentum ptmiss.
|
|
string | getONNXFilePath (const string &filename) |
| Useful function for getting ONNX file paths.
|
|
unique_ptr< RivetONNXrt > | getONNX (const string &analysisname, const string &suffix=".onnx") |
|
bool | fileexists (const std::string &path) |
| Convenience function for determining if a filesystem path exists.
|
|
template<typename T > |
bool | copyAO (YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr dst, const double scale=1.0) |
|
bool | isTmpPath (const std::string &path, const bool tmp_only=false) |
|
map< string, YODA::AnalysisObjectPtr > | getRefData (const string &papername) |
|
string | getDatafilePath (const string &papername) |
| Get the file system path to the reference file for this paper.
|
|
template<typename TPtr > |
bool | bookingCompatible (TPtr a, TPtr b) |
|
bool | bookingCompatible (CounterPtr, CounterPtr) |
|
bool | bookingCompatible (YODA::CounterPtr, YODA::CounterPtr) |
|
template<size_t N> |
bool | bookingCompatible (ScatterNDPtr< N > a, ScatterNDPtr< N > b) |
|
template<size_t N> |
bool | bookingCompatible (YODA::ScatterNDPtr< N > a, YODA::ScatterNDPtr< N > b) |
|
bool | beamInfoCompatible (YODA::AnalysisObjectPtr a, YODA::AnalysisObjectPtr b) |
|
template<typename T , typename U > |
T | lexical_cast (const U &in) |
| Convert between any types via stringstream.
|
|
template<typename T > |
string | to_str (const T &x) |
| Convert any object to a string.
|
|
template<typename T > |
string | toString (const T &x) |
| Convert any object to a string.
|
|
string & | replace_first (string &str, const string &patt, const string &repl) |
| Replace the first instance of patt with repl.
|
|
string & | replace_all (string &str, const string &patt, const string &repl) |
| Replace all instances of patt with repl.
|
|
int | nocase_cmp (const string &s1, const string &s2) |
| Case-insensitive string comparison function.
|
|
bool | nocase_equals (const string &s1, const string &s2) |
| Case-insensitive string equality function.
|
|
string | toLower (const string &s) |
| Convert a string to lower-case.
|
|
string | toUpper (const string &s) |
| Convert a string to upper-case.
|
|
bool | startsWith (const string &s, const string &start) |
| Check whether a string start is found at the start of s.
|
|
bool | endsWith (const string &s, const string &end) |
| Check whether a string end is found at the end of s.
|
|
string | strcat () |
|
template<typename T , typename... Ts> |
string | strcat (T value, Ts... fargs) |
| Make a string containing the concatenated string representations of each item in the variadic list.
|
|
template<typename T > |
string | join (const vector< T > &v, const string &sep=" ") |
| Make a string containing the string representations of each item in v, separated by sep.
|
|
template<> |
string | join (const vector< string > &v, const string &sep) |
| Make a string containing the string representations of each item in v, separated by sep.
|
|
template<typename T > |
string | join (const set< T > &s, const string &sep=" ") |
| Make a string containing the string representations of each item in s, separated by sep.
|
|
template<> |
string | join (const set< string > &s, const string &sep) |
| Make a string containing the string representations of each item in s, separated by sep.
|
|
vector< string > | split (const string &s, const string &sep) |
| Split a string on a specified separator string.
|
|
string | lpad (const string &s, size_t width, const string &padchar=" ") |
| Left-pad the given string s to width width.
|
|
string | rpad (const string &s, size_t width, const string &padchar=" ") |
| Right-pad the given string s to width width.
|
|
vector< string > | pathsplit (const string &path) |
| Split a path string with colon delimiters.
|
|
string | pathjoin (const vector< string > &paths) |
| Join several filesystem paths together with the standard ':' delimiter.
|
|
string | operator/ (const string &a, const string &b) |
| Operator for joining strings a and b with filesystem separators.
|
|
string | basename (const string &p) |
| Get the basename (i.e. terminal file name) from a path p.
|
|
string | dirname (const string &p) |
| Get the dirname (i.e. path to the penultimate directory) from a path p.
|
|
string | file_stem (const string &f) |
| Get the stem (i.e. part without a file extension) from a filename f.
|
|
string | file_extn (const string &f) |
| Get the file extension from a filename f.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
unsigned int | count (const CONTAINER &c) |
| Return number of true elements in the container c .
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
unsigned int | count (const CONTAINER &c, const FN &f) |
| Return number of elements in the container c for which f(x) is true.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | any (const CONTAINER &c) |
| Return true if x is true for any x in container c, otherwise false.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | any (const CONTAINER &c, const FN &f) |
| Return true if f(x) is true for any x in container c, otherwise false.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | all (const CONTAINER &c) |
| Return true if x is true for all x in container c, otherwise false.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | all (const CONTAINER &c, const FN &f) |
| Return true if f(x) is true for all x in container c, otherwise false.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | none (const CONTAINER &c) |
| Return true if x is false for all x in container c, otherwise false.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
bool | none (const CONTAINER &c, const FN &f) |
| Return true if f(x) is false for all x in container c, otherwise false.
|
|
template<typename CONTAINER1 , typename CONTAINER2 , typename FN = typename std::decay_t<CONTAINER2>::value_type( const typename std::decay_t<CONTAINER1>::value_type::ParticleBase&), typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER1>> && is_citerable_v<std::decay_t<CONTAINER2>> >> |
const CONTAINER2 & | transform (const CONTAINER1 &in, CONTAINER2 &out, FN &&f) |
|
template<typename CONTAINER1 , typename RTN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER1>> >> |
std::vector< RTN > | transform (const CONTAINER1 &in, const std::function< RTN(typename CONTAINER1::value_type::ParticleBase)> &f) |
|
template<typename CONTAINER1 , typename T , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER1>> >> |
T | accumulate (const CONTAINER1 &in, const T &init, const FN &f) |
| A single-container-arg version of std::accumulate, aka reduce .
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER::value_type | sum (const CONTAINER &c) |
| Generic sum function, adding x for all x in container c.
|
|
template<typename CONTAINER , typename T , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
T | sum (const CONTAINER &c, const T &start) |
|
template<typename CONTAINER , typename T , typename FN = T(const typename std::decay_t<CONTAINER>::value_type&), typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
T | sum (CONTAINER &&c, FN &&fn, const T &start=T()) |
| Generic sum function, adding fn(x ) for all x in container c, starting with start.
|
|
template<typename CONTAINER , typename T , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
T & | isum (const CONTAINER &c, T &out) |
|
template<typename CONTAINER , typename FN , typename T , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
T & | isum (const CONTAINER &c, const FN &f, T &out) |
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | idiscard (CONTAINER &c, const FN &f) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | idiscard (CONTAINER &c, const typename CONTAINER::value_type &y) |
| Version with element-equality comparison in place of a function.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | idiscard_if_any (CONTAINER &c, const CONTAINER &ys) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | discard (const CONTAINER &c, const FN &f) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | discard (const CONTAINER &c, const typename CONTAINER::value_type &y) |
| Version with element-equality comparison in place of a function.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | discard_if_any (const CONTAINER &c, const CONTAINER &ys) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | discard (const CONTAINER &c, const FN &f, CONTAINER &out) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | discard (const CONTAINER &c, const typename CONTAINER::value_type &y, CONTAINER &out) |
| Version with element-equality comparison in place of a function.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | discard_if_any (const CONTAINER &c, const CONTAINER &ys, CONTAINER &out) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | iselect (CONTAINER &c, const FN &f) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | iselect_if_any (CONTAINER &c, const CONTAINER &ys) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | select (const CONTAINER &c, const FN &f) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | select_if_any (const CONTAINER &c, const CONTAINER &ys) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename FN , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | select (const CONTAINER &c, const FN &f, CONTAINER &out) |
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER & | select_if_any (const CONTAINER &c, const CONTAINER &ys, CONTAINER &out) |
| Version with several element-equality comparisons in place of a function.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | slice (const CONTAINER &c, int i, int j) |
| Slice of the container elements cf. Python's [i:j] syntax.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | slice (const CONTAINER &c, int i) |
| Tail slice of the container elements cf. Python's [i:] syntax.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | head (const CONTAINER &c, int n) |
| Head slice of the n first container elements.
|
|
template<typename CONTAINER , typename = std::enable_if_t< is_citerable_v<std::decay_t<CONTAINER>> >> |
CONTAINER | tail (const CONTAINER &c, int n) |
| Tail slice of the n last container elements.
|
|
double | min (const vector< double > &in, double errval=DBL_NAN) |
| Find the minimum value in the vector.
|
|
double | max (const vector< double > &in, double errval=DBL_NAN) |
| Find the maximum value in the vector.
|
|
pair< double, double > | minmax (const vector< double > &in, double errval=DBL_NAN) |
| Find the minimum and maximum values in the vector.
|
|
int | min (const vector< int > &in, int errval=-1) |
| Find the minimum value in the vector.
|
|
int | max (const vector< int > &in, int errval=-1) |
| Find the maximum value in the vector.
|
|
pair< int, int > | minmax (const vector< int > &in, int errval=-1) |
| Find the minimum and maximum values in the vector.
|
|
template<typename CONTAINER , typename FN = double(const typename std::decay_t<CONTAINER>::value_type&), typename = isCIterable<CONTAINER>> |
int | closestMatchIndex (CONTAINER &&c, FN &&fn, double target, double minval=-DBL_MAX, double maxval=DBL_MAX) |
| Return the index from a vector which best matches fn(c[i]) to the target value.
|
|
template<typename CONTAINER1 , typename CONTAINER2 , typename FN = double(const typename std::decay_t<CONTAINER1>::value_type&, const typename std::decay_t<CONTAINER2>::value_type&), typename = isCIterable<CONTAINER1, CONTAINER2>> |
pair< int, int > | closestMatchIndices (CONTAINER1 &&c1, CONTAINER2 &&c2, FN &&fn, double target, double minval=-DBL_MAX, double maxval=DBL_MAX) |
| Return the indices from two vectors which best match fn(c1[i], c2[j]) to the target value.
|
|
template<typename CONTAINER , typename T , typename FN = double(const typename std::decay_t<CONTAINER>::value_type&, const std::decay_t<T>&), typename = isCIterable<CONTAINER>> |
int | closestMatchIndex (CONTAINER &&c, const T &x, FN &&fn, double target, double minval=-DBL_MAX, double maxval=DBL_MAX) |
| Return the index from a vector which best matches fn(c[i], x) to the target value.
|
|
template<typename CONTAINER , typename T , typename FN , typename = isCIterable<CONTAINER>> |
int | closestMatchIndex (T &&x, CONTAINER &&c, FN &&fn, double target, double minval=-DBL_MAX, double maxval=DBL_MAX) |
| Return the index from a vector which best matches fn(x, c[j]) to the target value.
|
|
template<typename T > |
T | getEnvParam (const std::string name, const T &fallback) |
| Get a parameter from a named environment variable, with automatic type conversion.
|
|
template<class T > |
vector< T > | slice (const vector< T > &v, int startidx, int endidx) |
| Get the contents of a vector between two indices.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Jet &j) |
| Allow a Jet to be passed to an ostream.
|
|
std::ostream & | operator<< (std::ostream &os, const Particle &p) |
| Allow a Particle to be passed to an ostream.
|
|
std::ostream & | operator<< (std::ostream &os, const ParticlePair &pp) |
| Allow ParticlePair to be passed to an ostream.
|
|
|
template<typename NUM > |
std::enable_if_t< std::is_floating_point_v< NUM >, bool > | isZero (NUM val, double tolerance=1e-8) |
| Compare a number to zero.
|
|
template<typename NUM > |
std::enable_if_t< std::is_integral_v< NUM >, bool > | isZero (NUM val, double=1e-5) |
| Compare a number to zero.
|
|
template<typename NUM > |
std::enable_if_t< std::is_floating_point_v< NUM >, bool > | isNaN (NUM val) |
| Check if a number is NaN.
|
|
template<typename NUM > |
std::enable_if_t< std::is_floating_point_v< NUM >, bool > | notNaN (NUM val) |
| Check if a number is non-NaN.
|
|
template<typename NUM > |
std::enable_if< std::is_floating_point< NUM >::value, NUM >::type | sqrt_signed (NUM val) |
| Square root of the absolute value with the sign of the argument propagated.
|
|
template<typename N1 , typename N2 > |
std::enable_if_t< std::is_arithmetic_v< N1 > &&std::is_arithmetic_v< N2 > &&(std::is_floating_point_v< N1 >||std::is_floating_point_v< N2 >), bool > | fuzzyEquals (N1 a, N2 b, double tolerance=1e-5) |
| Compare two numbers for equality with a degree of fuzziness.
|
|
template<typename N1 , typename N2 > |
std::enable_if_t< std::is_integral_v< N1 > &&std::is_integral_v< N2 >, bool > | fuzzyEquals (N1 a, N2 b, double) |
| Compare two numbers for equality with a degree of fuzziness.
|
|
template<typename N1 , typename N2 > |
std::enable_if_t< std::is_arithmetic_v< N1 > &&std::is_arithmetic_v< N2 >, bool > | fuzzyGtrEquals (N1 a, N2 b, double tolerance=1e-5) |
| Compare two numbers for >= with a degree of fuzziness.
|
|
template<typename N1 , typename N2 > |
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.
|
|
template<typename N1 , typename N2 > |
std::enable_if_t< std::is_arithmetic_v< N1 > &&std::is_arithmetic_v< N2 >, signed_if_mixed_t< N1, N2 > > | min (N1 a, N2 b) |
| Get the minimum of two numbers.
|
|
template<typename N1 , typename N2 > |
std::enable_if_t< std::is_arithmetic_v< N1 > &&std::is_arithmetic_v< N2 >, signed_if_mixed_t< N1, N2 > > | max (N1 a, N2 b) |
| Get the maximum of two numbers.
|
|
|
- Todo:
- Add pair-based versions of the named range-boundary functions
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > | sqr (NUM a) |
| Named number-type squaring operation.
|
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > | add_quad (NUM a, NUM b) |
| Named number-type addition in quadrature operation.
|
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > | add_quad (NUM a, NUM b, NUM c) |
|
double | safediv (double num, double den, double fail=0.0) |
|
template<typename NUM > |
constexpr std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > | intpow (NUM val, unsigned int exp) |
| A more efficient version of pow for raising numbers to integer powers.
|
|
template<typename NUM > |
constexpr std::enable_if_t< std::is_arithmetic_v< NUM >, int > | sign (NUM val) |
| Find the sign of a number.
|
|
|
double | cdfBW (double x, double mu, double gamma) |
| CDF for the Breit-Wigner distribution.
|
|
double | invcdfBW (double p, double mu, double gamma) |
| Inverse CDF for the Breit-Wigner distribution.
|
|
|
vector< double > | linspace (size_t nbins, double start, double end, bool include_end=true) |
| Make a list of nbins + 1 values equally spaced between start and end inclusive.
|
|
vector< double > | aspace (double step, double start, double end, bool include_end=true, double tol=1e-2) |
| Make a list of values equally spaced by step between start and end inclusive.
|
|
vector< double > | fnspace (size_t nbins, double start, double end, const std::function< double(double)> &fn, const std::function< double(double)> &invfn, bool include_end=true) |
|
vector< double > | logspace (size_t nbins, double start, double end, bool include_end=true) |
| Make a list of nbins + 1 values exponentially spaced between start and end inclusive.
|
|
vector< double > | powspace (size_t nbins, double start, double end, double npow, bool include_end=true) |
| Make a list of nbins + 1 values power-law spaced between start and end inclusive.
|
|
vector< double > | powdbnspace (size_t nbins, double start, double end, double npow, bool include_end=true) |
| Make a list of nbins + 1 values equally spaced in the CDF of x^n between start and end inclusive.
|
|
vector< double > | bwdbnspace (size_t nbins, double start, double end, double mu, double gamma, bool include_end=true) |
| Make a list of nbins + 1 values spaced for equal area Breit-Wigner binning between start and end inclusive. mu and gamma are the Breit-Wigner parameters.
|
|
template<typename NUM1 , typename NUM2 > |
std::enable_if_t< std::is_arithmetic_v< NUM1 > &&std::is_arithmetic_v< NUM2 >, int > | binIndex (NUM1 val, std::initializer_list< NUM2 > binedges, bool allow_overflow=false) |
| Return the bin index of the given value, val, given a vector of bin edges.
|
|
template<typename NUM , typename CONTAINER > |
std::enable_if_t< std::is_arithmetic_v< NUM > &&std::is_arithmetic_v< typename CONTAINER::value_type >, int > | binIndex (NUM val, const CONTAINER &binedges, bool allow_overflow=false) |
| Return the bin index of the given value, val, given a vector of bin edges.
|
|
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, NUM > | median (const vector< NUM > &sample) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | mean (const vector< NUM > &sample) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | mean_err (const vector< NUM > &sample) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | covariance (const vector< NUM > &sample1, const vector< NUM > &sample2) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | covariance_err (const vector< NUM > &sample1, const vector< NUM > &sample2) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | correlation (const vector< NUM > &sample1, const vector< NUM > &sample2) |
|
template<typename NUM > |
std::enable_if_t< std::is_arithmetic_v< NUM >, double > | correlation_err (const vector< NUM > &sample1, const vector< NUM > &sample2) |
|
|
double | mapAngleMPiToPi (double angle) |
| Map an angle into the range (-PI, PI].
|
|
double | mapAngle0To2Pi (double angle) |
| Map an angle into the range [0, 2PI).
|
|
double | mapAngle0ToPi (double angle) |
| Map an angle into the range [0, PI].
|
|
double | mapAngle (double angle, PhiMapping mapping) |
| Map an angle into the enum-specified range.
|
|
|
double | deltaPhi (double phi1, double phi2, bool sign=false) |
| Calculate the difference between two angles in radians.
|
|
double | deltaEta (double eta1, double eta2, bool sign=false) |
|
double | deltaRap (double y1, double y2, bool sign=false) |
|
double | deltaR2 (double rap1, double phi1, double rap2, double phi2) |
|
double | deltaR (double rap1, double phi1, double rap2, double phi2) |
|
double | rapidity (double E, double pz) |
| Calculate a rapidity value from the supplied energy E and longitudinal momentum pz.
|
|
|
double | deltaR2 (const FourVector &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR (const FourVector &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR2 (const FourVector &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR (const FourVector &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR2 (double eta1, double phi1, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR (double eta1, double phi1, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR2 (const FourMomentum &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR (const FourMomentum &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.
|
|
double | deltaR2 (const FourMomentum &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR (const FourMomentum &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR2 (double eta1, double phi1, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR (double eta1, double phi1, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR2 (const FourMomentum &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR (const FourMomentum &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR2 (const FourVector &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR (const FourVector &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
|
|
double | deltaR2 (const FourMomentum &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR (const FourMomentum &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR2 (const Vector3 &a, const FourMomentum &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR (const Vector3 &a, const FourMomentum &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR2 (const FourVector &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR (const FourVector &a, const Vector3 &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR2 (const Vector3 &a, const FourVector &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
double | deltaR (const Vector3 &a, const FourVector &b) |
| Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
|
|
|
double | deltaPhi (const FourMomentum &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourMomentum &v, double phi2, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (double phi1, const FourMomentum &v, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourVector &a, const FourVector &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourVector &v, double phi2, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (double phi1, const FourVector &v, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourVector &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourMomentum &a, const FourVector &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourVector &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const Vector3 &a, const FourVector &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const FourMomentum &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
double | deltaPhi (const Vector3 &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in azimuthal angle between two vectors.
|
|
|
double | deltaEta (const FourMomentum &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourMomentum &v, double eta2, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (double eta1, const FourMomentum &v, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourVector &a, const FourVector &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourVector &v, double eta2, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (double eta1, const FourVector &v, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourVector &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourMomentum &a, const FourVector &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourVector &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const Vector3 &a, const FourVector &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const FourMomentum &a, const Vector3 &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
double | deltaEta (const Vector3 &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in pseudorapidity between two vectors.
|
|
|
double | deltaRap (const FourMomentum &a, const FourMomentum &b, bool sign=false) |
| Calculate the difference in rapidity between two 4-momentum vectors.
|
|
double | deltaRap (const FourMomentum &v, double y2, bool sign=false) |
| Calculate the difference in rapidity between two 4-momentum vectors.
|
|
double | deltaRap (double y1, const FourMomentum &v, bool sign=false) |
| Calculate the difference in rapidity between two 4-momentum vectors.
|
|
|
template<size_t N> |
const string | toString (const Vector< N > &v) |
| Make string representation.
|
|
template<size_t N> |
std::ostream & | operator<< (std::ostream &out, const Vector< N > &v) |
| Stream out string representation.
|
|
|
double | deltaR (const ParticleBase &p1, const ParticleBase &p2, RapScheme scheme=PSEUDORAPIDITY) |
|
double | deltaR (const ParticleBase &p, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY) |
|
double | deltaR (const ParticleBase &p, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY) |
|
double | deltaR (const ParticleBase &p, const Vector3 &v) |
|
double | deltaR (const ParticleBase &p, double eta, double phi) |
|
double | deltaR (const FourMomentum &v, const ParticleBase &p, RapScheme scheme=PSEUDORAPIDITY) |
|
double | deltaR (const FourVector &v, const ParticleBase &p, RapScheme scheme=PSEUDORAPIDITY) |
|
double | deltaR (const Vector3 &v, const ParticleBase &p) |
|
double | deltaR (double eta, double phi, const ParticleBase &p) |
|
double | deltaPhi (const ParticleBase &p1, const ParticleBase &p2, bool sign=false) |
|
double | deltaPhi (const ParticleBase &p, const FourMomentum &v, bool sign=false) |
|
double | deltaPhi (const ParticleBase &p, const FourVector &v, bool sign=false) |
|
double | deltaPhi (const ParticleBase &p, const Vector3 &v, bool sign=false) |
|
double | deltaPhi (const ParticleBase &p, double phi, bool sign=false) |
|
double | deltaPhi (const FourMomentum &v, const ParticleBase &p, bool sign=false) |
|
double | deltaPhi (const FourVector &v, const ParticleBase &p, bool sign=false) |
|
double | deltaPhi (const Vector3 &v, const ParticleBase &p, bool sign=false) |
|
double | deltaPhi (double phi, const ParticleBase &p, bool sign=false) |
|
double | deltaEta (const ParticleBase &p1, const ParticleBase &p2) |
|
double | deltaEta (const ParticleBase &p, const FourMomentum &v) |
|
double | deltaEta (const ParticleBase &p, const FourVector &v) |
|
double | deltaEta (const ParticleBase &p, const Vector3 &v) |
|
double | deltaEta (const ParticleBase &p, double eta) |
|
double | deltaEta (const FourMomentum &v, const ParticleBase &p) |
|
double | deltaEta (const FourVector &v, const ParticleBase &p) |
|
double | deltaEta (const Vector3 &v, const ParticleBase &p) |
|
double | deltaEta (double eta, const ParticleBase &p) |
|
double | deltaRap (const ParticleBase &p1, const ParticleBase &p2) |
|
double | deltaRap (const ParticleBase &p, const FourMomentum &v) |
|
double | deltaRap (const ParticleBase &p, double y) |
|
double | deltaRap (const FourMomentum &v, const ParticleBase &p) |
|
double | deltaRap (double y, const ParticleBase &p) |
|
|
Cut | operator, (const Cut &, const Cut &)=delete |
|
Cut & | operator, (Cut &, Cut &)=delete |
|
Cut | operator, (Cut, Cut)=delete |
|
|
Cut | operator== (Cuts::Quantity, double) |
|
Cut | operator!= (Cuts::Quantity, double) |
|
Cut | operator< (Cuts::Quantity, double) |
|
Cut | operator> (Cuts::Quantity, double) |
|
Cut | operator<= (Cuts::Quantity, double) |
|
Cut | operator>= (Cuts::Quantity, double) |
|
Cut | operator== (Cuts::Quantity qty, int i) |
|
Cut | operator!= (Cuts::Quantity qty, int i) |
|
Cut | operator< (Cuts::Quantity qty, int i) |
|
Cut | operator> (Cuts::Quantity qty, int i) |
|
Cut | operator<= (Cuts::Quantity qty, int i) |
|
Cut | operator>= (Cuts::Quantity qty, int i) |
|
|
Cut | operator&& (const Cut &aptr, const Cut &bptr) |
|
Cut | operator|| (const Cut &aptr, const Cut &bptr) |
|
Cut | operator! (const Cut &cptr) |
| Logical NOT operation on a cut.
|
|
Cut | operator& (const Cut &aptr, const Cut &bptr) |
| Logical AND operation on two cuts.
|
|
Cut | operator| (const Cut &aptr, const Cut &bptr) |
| Logical OR operation on two cuts.
|
|
Cut | operator~ (const Cut &cptr) |
| Logical NOT operation on a cut.
|
|
Cut | operator^ (const Cut &aptr, const Cut &bptr) |
| Logical XOR operation on two cuts.
|
|
|
Follows the naming of functions for the underlying AnalysisObjects: global operators
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | divide (const Percentile< T > numer, const Percentile< T > denom) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | divide (const Percentile< T > numer, const Percentile< typename ReferenceTraits< T >::RefT > denom) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | divide (const Percentile< typename ReferenceTraits< T >::RefT > numer, const Percentile< T > denom) |
|
template<typename T > |
Percentile< T > | add (const Percentile< T > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | add (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | add (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< T > | subtract (const Percentile< T > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | subtract (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | subtract (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | multiply (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | multiply (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | divide (const PercentileXaxis< T > numer, const PercentileXaxis< T > denom) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | divide (const PercentileXaxis< T > numer, const PercentileXaxis< typename ReferenceTraits< T >::RefT > denom) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | divide (const PercentileXaxis< typename ReferenceTraits< T >::RefT > numer, const PercentileXaxis< T > denom) |
|
template<typename T > |
PercentileXaxis< T > | add (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | add (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | add (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< T > | subtract (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | subtract (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | subtract (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | multiply (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | multiply (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
Percentile< T > | operator+ (const Percentile< T > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< T > | operator- (const Percentile< T > pctla, const Percentile< T > pctlb) |
|
template<typename T > |
Percentile< typename ReferenceTraits< T >::RefT > | operator/ (const Percentile< T > numer, const Percentile< T > denom) |
|
template<typename T > |
PercentileXaxis< T > | operator+ (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< T > | operator- (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb) |
|
template<typename T > |
PercentileXaxis< typename ReferenceTraits< T >::RefT > | operator/ (const PercentileXaxis< T > numer, const PercentileXaxis< T > denom) |
|
|
std::string | getLibPath () |
| Get library install path.
|
|
std::string | getDataPath () |
| Get data install path.
|
|
std::string | getRivetDataPath () |
| Get Rivet data install path.
|
|
|
std::vector< std::string > | getAnalysisLibPaths () |
| Get Rivet analysis plugin library search paths.
|
|
void | setAnalysisLibPaths (const std::vector< std::string > &paths) |
| Set the Rivet analysis plugin library search paths.
|
|
void | addAnalysisLibPath (const std::string &extrapath) |
| Add a Rivet analysis plugin library search path.
|
|
std::string | findAnalysisLibFile (const std::string &filename) |
| Find the first file of the given name in the analysis library search dirs.
|
|
|
std::vector< std::string > | getAnalysisDataPaths () |
| Get Rivet analysis reference data search paths.
|
|
void | setAnalysisDataPaths (const std::vector< std::string > &paths) |
| Set the Rivet data file search paths.
|
|
void | addAnalysisDataPath (const std::string &extrapath) |
| Add a Rivet data file search path.
|
|
std::string | findAnalysisDataFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >()) |
| Find the first file of the given name in the general data file search dirs.
|
|
std::vector< std::string > | getAnalysisRefPaths () |
| Get Rivet analysis reference data search paths.
|
|
std::string | findAnalysisRefFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >()) |
| Find the first file of the given name in the ref data file search dirs.
|
|
std::vector< std::string > | getAnalysisInfoPaths () |
| Get Rivet analysis info metadata search paths.
|
|
std::string | findAnalysisInfoFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >()) |
| Find the first file of the given name in the analysis info file search dirs.
|
|
std::vector< std::string > | getAnalysisPlotPaths () |
| Get Rivet analysis plot style search paths.
|
|
std::string | findAnalysisPlotFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >()) |
| Find the first file of the given name in the analysis plot file search dirs.
|
|
|
- Todo:
Make these named toStr rather than operator<<
Make these generic to any iterable
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, const std::vector< T > &vec) |
| Convenient function for streaming out vectors of any streamable object.
|
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, const std::list< T > &vec) |
| Convenient function for streaming out lists of any streamable object.
|
|
|
bool | contains (const std::string &s, const std::string &sub) |
| Does s contain sub as a substring?
|
|
template<typename T > |
bool | contains (const std::initializer_list< T > &il, const T &x) |
| Does the init list il contain x?
|
|
template<typename T > |
bool | contains (const std::vector< T > &v, const T &x) |
| Does the vector v contain x?
|
|
template<typename T > |
bool | contains (const std::list< T > &l, const T &x) |
| Does the list l contain x?
|
|
template<typename T > |
bool | contains (const std::set< T > &s, const T &x) |
| Does the set s contain x?
|
|
template<typename K , typename T > |
bool | has_key (const std::map< K, T > &m, const K &key) |
| Does the map m contain the key key?
|
|
template<typename K , typename T > |
bool | has_value (const std::map< K, T > &m, const T &val) |
| Does the map m contain the value val?
|
|
template<typename K , typename T > |
const T & | retrieve (const std::map< K, T > &m, const K &key, const T &fallback) |
| Get the value in map m with key key, or fall back to fallback.
|
|
template<typename K > |
const std::string & | retrieve (const std::map< K, std::string > &m, const K &key, const std::string &fallback) |
| Get the value in map m with key key, or fall back to fallback (string-value specialisation)
|
|
template<typename T > |
const T & | retrieve (const std::map< std::string, T > &m, const std::string &key, const T &fallback) |
| Get the value in map m with key key, or fall back to fallback (string-key specialisation)
|
|
const std::string & | retrieve (const std::map< std::string, std::string > &m, const std::string &key, const std::string &fallback) |
| Get the value in map m with key key, or fall back to fallback (string-key+value specialisation)
|
|