![]() |
HepPDT Reference DocumentationHepPDT |
#include <ParticleDataTable.hh>
Public Types | |
typedef ParticleData | CPD |
typedef std::map< ParticleID, TempParticleData > | TempMap |
typedef std::map< ParticleID, ParticleData, ParticleDataTableComparison > | PDTMap |
typedef std::map< std::string, ParticleID > | PDTNameMap |
typedef PDTMap::const_iterator | const_iterator |
typedef PDTNameMap::const_iterator | const_iteratorByName |
Public Member Functions | |
ParticleDataTable (std::string name=" ", ProcessUnknownID *=new SimpleProcessUnknownID) | |
~ParticleDataTable () | |
int | size () const |
size of the particle data table | |
const_iterator | begin () const |
begin iterating over the particle data table | |
const_iterator | end () const |
end iterating over the particle data table | |
int | sizeNameMap () const |
size of the map of particle names | |
const_iteratorByName | beginNameMap () const |
begin iterating over the map of particle names | |
const_iteratorByName | endNameMap () const |
end iterating over the map of particle names | |
std::string | tableName () const |
return the name of this particle data table | |
ParticleData const * | particle (ParticleID) const |
access particle information via ParticleID | |
ParticleData * | particle (ParticleID) |
access particle information via ParticleID | |
ParticleData const * | particle (std::string) const |
access particle information via a particle name | |
ParticleData * | particle (std::string) |
access particle information via a particle name | |
ParticleData * | operator[] (ParticleID) |
access particle information via ParticleID | |
ParticleData const * | operator[] (ParticleID) const |
access particle information via ParticleID | |
ParticleData * | operator[] (std::string) |
access particle information via a particle name | |
ParticleData const * | operator[] (std::string) const |
access particle information via a particle name | |
void | writeParticleData (std::ostream &outstr) |
output all information in the PDT | |
void | writeParticleInfo (std::ostream &outstr) |
output all information about a particle EXCEPT its decays | |
void | writeParticleTranslation (std::ostream &outstr) |
output a list of original IDs and their translations | |
void | writeParticleStatus (std::ostream &) |
primarily useful for testing | |
void | convertTemporaryMap (TempMap &tempPDT, std::ostream &err) |
used by the TableBuilder destructor to fill the PDT |
This is the table of particle data information. This table is created once at the beginning of a job and referenced as needed. We expect that the table will be saved as part of the standard job output. Methods exist to fill the table from a variety of input formats. The user may fill the table from as many differernt input streams as desired. See the examples.
examMyPDT.cc, listEvtGenNames.cc.in, listPDGNames.cc.in, listPythiaNames.cc.in, testHepPDT.cc, testReadEvtGen.cc.in, testReadIsajet.cc.in, testReadParticleTable.cc.in, and testReadQQ.cc.in.
Definition at line 44 of file ParticleDataTable.hh.
Definition at line 47 of file ParticleDataTable.hh.
typedef std::map<ParticleID,TempParticleData> HepPDT::ParticleDataTable::TempMap |
Definition at line 49 of file ParticleDataTable.hh.
typedef std::map<ParticleID,ParticleData,ParticleDataTableComparison> HepPDT::ParticleDataTable::PDTMap |
Definition at line 50 of file ParticleDataTable.hh.
typedef std::map<std::string,ParticleID> HepPDT::ParticleDataTable::PDTNameMap |
Definition at line 51 of file ParticleDataTable.hh.
typedef PDTMap::const_iterator HepPDT::ParticleDataTable::const_iterator |
Definition at line 53 of file ParticleDataTable.hh.
typedef PDTNameMap::const_iterator HepPDT::ParticleDataTable::const_iteratorByName |
Definition at line 54 of file ParticleDataTable.hh.
HepPDT::ParticleDataTable::ParticleDataTable | ( | std::string | name = " " , |
|
ProcessUnknownID * | = new SimpleProcessUnknownID | |||
) |
Construct a particle data table with an identifying name. Require a method to deal with unknown PID's.
Definition at line 18 of file ParticleDataTable.cc.
References HepPDT::version().
HepPDT::ParticleDataTable::~ParticleDataTable | ( | ) | [inline] |
Definition at line 10 of file ParticleDataTable.icc.
int HepPDT::ParticleDataTable::size | ( | ) | const [inline] |
size of the particle data table
Definition at line 66 of file ParticleDataTable.hh.
Referenced by writeParticleData(), writeParticleInfo(), and writeParticleStatus().
const_iterator HepPDT::ParticleDataTable::begin | ( | ) | const [inline] |
begin iterating over the particle data table
Definition at line 68 of file ParticleDataTable.hh.
Referenced by writeParticleData(), writeParticleInfo(), writeParticleStatus(), and writeParticleTranslation().
const_iterator HepPDT::ParticleDataTable::end | ( | ) | const [inline] |
end iterating over the particle data table
Definition at line 70 of file ParticleDataTable.hh.
Referenced by writeParticleData(), writeParticleInfo(), writeParticleStatus(), and writeParticleTranslation().
int HepPDT::ParticleDataTable::sizeNameMap | ( | ) | const [inline] |
const_iteratorByName HepPDT::ParticleDataTable::beginNameMap | ( | ) | const [inline] |
const_iteratorByName HepPDT::ParticleDataTable::endNameMap | ( | ) | const [inline] |
std::string HepPDT::ParticleDataTable::tableName | ( | ) | const [inline] |
return the name of this particle data table
Definition at line 78 of file ParticleDataTable.hh.
Referenced by writeParticleData(), writeParticleInfo(), and writeParticleStatus().
ParticleData const * HepPDT::ParticleDataTable::particle | ( | ParticleID | ) | const |
access particle information via ParticleID
Definition at line 153 of file ParticleDataTable.cc.
Referenced by duplicateFragmentTest(), main(), operator[](), particle(), pdtFragmentTest(), pdtSimpleTest(), HepPDT::TestNuclearFragment::processUnknownID(), HepPDT::HeavyIonUnknownID::processUnknownID(), and testPDMethods().
ParticleData * HepPDT::ParticleDataTable::particle | ( | ParticleID | ) |
ParticleData const * HepPDT::ParticleDataTable::particle | ( | std::string | ) | const |
access particle information via a particle name
Definition at line 187 of file ParticleDataTable.cc.
References particle().
ParticleData * HepPDT::ParticleDataTable::particle | ( | std::string | ) |
access particle information via a particle name
Definition at line 176 of file ParticleDataTable.cc.
References particle().
ParticleData * HepPDT::ParticleDataTable::operator[] | ( | ParticleID | ) | [inline] |
access particle information via ParticleID
Definition at line 13 of file ParticleDataTable.icc.
References particle().
ParticleData const * HepPDT::ParticleDataTable::operator[] | ( | ParticleID | ) | const [inline] |
access particle information via ParticleID
Definition at line 18 of file ParticleDataTable.icc.
References particle().
ParticleData * HepPDT::ParticleDataTable::operator[] | ( | std::string | ) | [inline] |
access particle information via a particle name
Definition at line 23 of file ParticleDataTable.icc.
References particle().
ParticleData const * HepPDT::ParticleDataTable::operator[] | ( | std::string | ) | const [inline] |
access particle information via a particle name
Definition at line 28 of file ParticleDataTable.icc.
References particle().
void HepPDT::ParticleDataTable::writeParticleData | ( | std::ostream & | outstr | ) |
output all information in the PDT
Definition at line 25 of file ParticleDataTable.cc.
References begin(), end(), size(), tableName(), and HepPDT::writeVersion().
Referenced by duplicateFragmentTest(), main(), and pdtSimpleTest().
void HepPDT::ParticleDataTable::writeParticleInfo | ( | std::ostream & | outstr | ) |
output all information about a particle EXCEPT its decays
Definition at line 51 of file ParticleDataTable.cc.
References begin(), end(), size(), tableName(), and HepPDT::writeVersion().
Referenced by main(), and pdtSimpleTest().
void HepPDT::ParticleDataTable::writeParticleTranslation | ( | std::ostream & | outstr | ) |
output a list of original IDs and their translations
Definition at line 77 of file ParticleDataTable.cc.
References begin(), and end().
Referenced by main().
void HepPDT::ParticleDataTable::writeParticleStatus | ( | std::ostream & | ) |
primarily useful for testing
This routine writes the particle name, ID, charge, mass, width, lifetime, and the results of isStable().
Definition at line 88 of file ParticleDataTable.cc.
References begin(), end(), size(), tableName(), and HepPDT::versionName().
Referenced by duplicateFragmentTest(), and main().
void HepPDT::ParticleDataTable::convertTemporaryMap | ( | TempMap & | tempPDT, | |
std::ostream & | err | |||
) |
used by the TableBuilder destructor to fill the PDT
Definition at line 17 of file convertTemporaryMap.cc.
Referenced by HepPDT::TableBuilder::~TableBuilder().