Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8725691
ParticleName.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
ParticleName.hh
View Options
#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
Details
Attached
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)
Attached To
rRIVETSVN rivetsvn
Event Timeline
Log In to Comment