rivet is hosted by Hepforge, IPPP Durham
ParticleUtils.hh File Reference
#include "Rivet/Particle.hh"
Include dependency graph for ParticleUtils.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Rivet
namespace  Rivet::PID

Functions

PID operations on Rivet::Particle wrapper
int abspid (const Particle &p)
 Absolute value of particle ID.
bool isMeson (const Particle &p)
 Is this a valid meson ID?
bool isBaryon (const Particle &p)
 Is this a valid baryon ID?
bool isDiQuark (const Particle &p)
 Is this a valid diquark ID?
bool isHadron (const Particle &p)
 Is this a valid hadron ID?
bool isLepton (const Particle &p)
 Is this a valid lepton ID?
bool isNucleus (const Particle &p)
 Is this a valid ion ID?
bool isPentaquark (const Particle &p)
 Is this a valid pentaquark ID?
bool isSUSY (const Particle &p)
 Is this a valid SUSY ID?
bool isRhadron (const Particle &p)
 Is this a valid R-hadron ID?
bool hasUp (const Particle &p)
 Does this particle contain an up quark?
bool hasDown (const Particle &p)
 Does this particle contain a down quark?
bool hasStrange (const Particle &p)
 Does this particle contain a strange quark?
bool hasCharm (const Particle &p)
 Does this particle contain a charm quark?
bool hasBottom (const Particle &p)
 Does this particle contain a bottom quark?
bool hasTop (const Particle &p)
 Does this particle contain a top quark?
int jSpin (const Particle &p)
 jSpin returns 2J+1, where J is the total spin
int sSpin (const Particle &p)
 sSpin returns 2S+1, where S is the spin
int lSpin (const Particle &p)
 lSpin returns 2L+1, where L is the orbital angular momentum
int threeCharge (const Particle &p)
 Return 3 times the charge (3 x quark charge is an int)
double charge (const Particle &p)
 Return the charge.