rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Rivet::PID::ParticleNames Class Reference

#include <ParticleName.hh>

Static Public Member Functions

static const std::string & particleName (PdgId pid)
 
static PdgId particleId (const std::string &pname)
 

Detailed Description

Todo:
Add axion, black hole remnant, etc. on demand

Handler for particle name code <-> string conversion

Todo:
Hide this utility class or equiv in an unnamed namespace in a .cc file.

Member Function Documentation

◆ particleId()

static PdgId Rivet::PID::ParticleNames::particleId ( const std::string &  pname)
inlinestatic
Todo:
Isn't there a nicer, pointerless way to do singletons?

References particleName(), and Rivet::pid().

◆ particleName()

static const std::string& Rivet::PID::ParticleNames::particleName ( PdgId  pid)
inlinestatic
Todo:
Isn't there a nicer, pointerless way to do singletons?

Referenced by particleId().


The documentation for this class was generated from the following files: