Page MenuHomeHEPForge

ParticleName.hh
No OneTemporary

ParticleName.hh

#ifndef RIVET_PARTICLENAME_HH
#define RIVET_PARTICLENAME_HH
// ----------------------------------------------------------------------
//
// ParticleName.hh
// Author: Lynn Garren and Walter Brown
//
// Create a map that gives a standard name for each pre-defined
// particle ID number. This map is initialized if and only if
// the public functions are called. Because the map is static,
// the initialization happens only once.
//
//
// ----------------------------------------------------------------------
#include <string>
#include <map>
#include <iostream>
namespace Rivet {
namespace PID {
/// get a known HepPID Particle name
std::string particleName( const int & );
/// lookup a known ID
int particleName( const std::string & );
/// list all known names
void listParticleNames( std::ostream & os );
/// verify that this number has a valid name
bool validParticleName( const int & );
/// verify that this string has a valid id
bool validParticleName( const std::string & );
// forward definition of ParticleNameMap class
class ParticleNameMap;
/// access the ParticleNameMap for other purposes
ParticleNameMap const & getParticleNameMap();
}} // namespace HepPID
#endif

File Metadata

Mime Type
text/x-c++
Expires
Tue, Jan 21, 2:18 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4243643
Default Alt Text
ParticleName.hh (1 KB)

Event Timeline