#include <ParticleTraits.h>
Static Public Member Functions | |
static PType & | ref (PType &p) |
Return a reference to the particle. | |
static LorentzMomentum | momentum (const PType &p) |
Return the momentum of particle p. | |
static Energy | mass (const PType &p) |
Return the mass of particle p. | |
static void | transform (PType &p, const LorentzRotation &r) |
Perform a Lorentz transformation on particle p. | |
static void | set5Momentum (PType &p, const Lorentz5Momentum &q) |
Set the momentum and mass of a particle. | |
static void | set3Momentum (PType &p, const Momentum3 &q) |
Set the 3-momentum of a particle. | |
static int | iCharge (const PType &p) |
Return charge of particle p in units of e/3. |
To make another particle type PType
available to some general ThePEG routines, the ParticleTraits should be specialized to that class implementing relevant methods of the general ParticleTraits class below. Typically one needs specialisation both for the class itself and of pointers to the class.
Definition at line 33 of file ParticleTraits.h.
static void ThePEG::ParticleTraits< PType >::set3Momentum | ( | PType & | p, | |
const Momentum3 & | q | |||
) | [inline, static] |
Set the 3-momentum of a particle.
The energy is rescaled to preserve invariant mass.
Definition at line 74 of file ParticleTraits.h.