Rivet API documentation
![]() |
Rivet 4.1.3
|
BeamConstraint.hh
36 return compatibleBeamIDs(PID::make_pdgid_pair(ppair.first.pid(), ppair.second.pid()), allowedpair);
64 return compatibleBeamEnergies(make_pair(ppair.first.E(), ppair.second.E()), allowedenergies, reltol);
76 inline bool compatibleBeamEnergy(const pair<double,double>& energies, double allowedsqrts, double reltol=1e-3) {
94 inline bool compatibleBeams(const ParticlePair& ppair, const PdgIdPair& allowedpids, double allowedsqrts) {
99 inline bool compatibleBeams(const ParticlePair& ppair, const PdgIdPair& allowedpids, const pair<double,double>& allowedenergies) {
112 // /// Find whether PdgIdPair @a pair is compatible with at least one template beam pair in a set @a allowedpairs
113 // inline bool anyCompatibleBeamIDs(const PdgIdPair& pair, const set<PdgIdPair>& allowedpairs) {
bool compatibleBeamEnergy(const pair< double, double > &energies, double allowedsqrts, double reltol=1e-3)
Check the sqrt(s) compatibility of two massless opposing beams.
Definition BeamConstraint.hh:76
bool compatibleBeams(const ParticlePair &ppair, const PdgIdPair &allowedpids, double allowedsqrts)
Check the particle ID and beam-energy compatibility of two Particle pairs.
Definition BeamConstraint.hh:94
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.
Definition BeamConstraint.hh:47
bool compatibleBeamID(PdgId p, PdgId allowed)
Find whether ParticleName p is compatible with the template ParticleName allowed.
Definition BeamConstraint.hh:18
bool compatibleBeamIDs(const PdgIdPair &pair, const PdgIdPair &allowedpair)
Find whether PdgIdPair pair is compatible with the template PdgIdPair allowedpair.
Definition BeamConstraint.hh:26
double sqrtS(double ea, double eb)
Get beam centre-of-mass energy from a pair of beam energies.
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
Definition MC_CENT_PPB_Projections.hh:10
std::pair< Particle, Particle > ParticlePair
Typedef for a pair of Particle objects.
Definition Particle.hh:38
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.
Definition MathUtils.hh:61
Generated on for Rivet by
