#include "Rivet/Rivet.hh"
#include "Rivet/Particle.fhh"
Go to the source code of this file.
Namespaces | |
namespace | Rivet |
Typedefs | |
typedef std::map< PdgId, std::string > | ParticleNameMap |
Typedef for a map of beam particle name enums to strings. | |
typedef std::map< std::string, PdgId > | ParticleNameMapR |
Typedef for a map of beam particle name strings to enums. | |
typedef std::vector< PdgId > | ParticleNameList |
Typedef for a collection of beam particle name enums. | |
Enumerations | |
enum | ParticleName { ELECTRON = 11, POSITRON = -11, PROTON = 2212, ANTIPROTON = -2212, PHOTON = 22, NEUTRON = 2112, ANTINEUTRON = -2112, MUON = 13, ANTIMUON = -13, NU_E = 12, NU_EBAR = -12, NU_MU = 14, NU_MUBAR = -14, NU_TAU = 16, NU_TAUBAR = -16, PIPLUS = 211, PIMINUS = -211, K0L = 130, K0S = 310, KPLUS = 321, KMINUS = -321, LAMBDA = 3122, LAMBDABAR = -3122, XIMINUS = 3312, XIPLUS = -3312, OMEGAMINUS = 3334, OMEGAPLUS = -3334, TAU = 15, ANTITAU = -15, EMINUS = 11, EPLUS = -11, P = 2212, PBAR = -2212, GLUON = 21, GAMMA = 22, WPLUSBOSON = 24, WMINUSBOSON = -24, ZBOSON = 23, HIGGS = 25, DQUARK = 1, UQUARK = 2, SQUARK = 3, CQUARK = 4, BQUARK = 5, TQUARK = 6, ANY = 10000, PHOTOELECTRON, PHOTOPOSITRON, PHOTOMUON, PHOTOANTIMUON, PHOTOTAU, PHOTOANTITAU } |
Enumeration of available beam particles (using PDG IDs where available). More... | |
Functions | |
std::pair< PdgId, PdgId > | make_pdgid_pair (PdgId a, PdgId b) |
Convenience maker of particle ID pairs. | |
std::pair< PdgId, PdgId > | make_pdgid_pair (std::pair< ParticleName, ParticleName > pnamepair) |
Convenience maker of particle ID pairs. | |
ParticleNameMap | getParticleNamesMap () |
Function which returns a map from beam particle enums to the corresponding name strings. | |
ParticleNameMapR | getParticleNamesRMap () |
Function which returns a map from beam particle name strings to the corresponding enums. | |
ParticleNameList | getParticleNameEnums () |
ParticleName | getParticleNameEnum (const std::string &pname) |
Function which converts a particle name string to a ParticleName enum. | |
std::vector< std::string > | getParticleNames () |
Function which returns a vector of all the beam particle name strings. | |
std::string | toString (const ParticleName &p) |
Print a ParticleName as a string. | |
std::string | toParticleName (PdgId p) |
Print a PdgId as a named string. | |
std::ostream & | operator<< (std::ostream &os, const ParticleName &p) |
Allow ParticleName to be passed to an iostream. | |
std::string | toString (const BeamPair &pair) |
Print a BeamPair as a string. | |
std::ostream & | operator<< (std::ostream &os, const BeamPair &bp) |
Allow BeamPair to be passed to an ostream. |