HepPDT Reference Documentation

HepPDT

ParticleName.hh

Go to the documentation of this file.
00001 #ifndef PARTICLENAME_HH
00002 #define PARTICLENAME_HH
00003 // ----------------------------------------------------------------------
00004 //
00005 // ParticleName.hh
00006 // Author: Lynn Garren and Walter Brown
00007 //
00008 //  Create a map that gives a standard name for each pre-defined 
00009 //  particle ID number.  This map is initialized if and only if 
00010 //  the public functions are called. Because the map is static, 
00011 //  the initialization happens only once.
00012 //
00013 //
00014 // ----------------------------------------------------------------------
00015 
00016 #include <string>
00017 #include <map>
00018 #include <iostream>
00019 
00020 namespace HepPID {
00021 
00023 std::string  particleName( const int & );
00025 int          particleName( const std::string & );
00026 
00028 void  listParticleNames( std::ostream & os );
00029 
00031 bool validParticleName( const int & );
00033 bool validParticleName( const std::string & );
00034 
00035 // forward definition of ParticleNameMap class
00036 class ParticleNameMap;
00038 ParticleNameMap const &  getParticleNameMap();
00039 
00040 }  // namespace HepPID
00041 
00042 #endif // PARTICLENAME_HH

Generated on Fri Dec 4 14:05:23 2009 for HepPDT by  doxygen 1.4.7