|
HepPDT Reference DocumentationHepPDT |
Classes | |
| class | Constituent |
| The Constituent class has information about constituent particles. More... | |
| class | DefTable |
| The DefTable class holds EvtGen definitions. More... | |
| class | HeavyIonUnknownID |
| The HeavyIonUnknownID class inherits from ProcessUnknownID. More... | |
| class | Measurement |
| The Measurement class defines a value with its error. More... | |
| class | ParticleData |
| The ParticleData class holds data for a single particle in the table. More... | |
| class | ParticleDataTable |
| The ParticleDataTable class is the core of HepPDT. More... | |
| class | ParticleDataTableComparison |
| The ParticleDataTableComparison class provides a utility for sorting the PDT. More... | |
| struct | Quarks |
| constituent quarks More... | |
| class | ParticleID |
| The ParticleID has various utilities to extract information from the particle ID. More... | |
| class | ProcessUnknownID |
| The ProcessUnknownID class is abstract. More... | |
| class | ResonanceStructure |
| The ResonanceStructure class is holds mass and width information. More... | |
| class | SimpleProcessUnknownID |
| The SimpleProcessUnknownID class inherits from ProcessUnknownID. More... | |
| class | SpinState |
| The SpinState class holds spin information. More... | |
| class | TableBuilder |
| The TableBuilder class is used to construct a ParticleDataTable. More... | |
| struct | TempConstituent |
| Temporary constituent (e.g., quark) information. More... | |
| struct | TempDecayData |
| temporary holder for decay data More... | |
| struct | TempAliasData |
| Hold Alias information from EvtGen. More... | |
| struct | TempParticleData |
| temporary holder for Particle Data information More... | |
| class | TestNuclearFragment |
| The TestNuclearFragment class inherits from ProcessUnknownID. More... | |
Namespaces | |
| namespace | detail |
| HepPDT::detail is for internal use. | |
Typedefs | |
| typedef std::vector< TempDecayData > | TDDlist |
| useful typedef | |
Enumerations | |
| enum | location { nj = 1, nq3, nq2, nq1, nl, nr, n, n8, n9, n10 } |
Functions | |
| void | swap (Constituent &first, Constituent &second) |
| void | swap (Measurement &first, Measurement &second) |
| double | NaN () |
| void | swap (ParticleData &first, ParticleData &second) |
| bool | writePDGStream (std::ostream &os, const ParticleDataTable &table) |
| bool | writePythiaStream (std::ostream &os, const ParticleDataTable &table) |
| bool | writeHerwigStream (std::ostream &os, const ParticleDataTable &table) |
| bool | writeIsajetStream (std::ostream &os, const ParticleDataTable &table) |
| bool | writeQQStream (std::ostream &os, const ParticleDataTable &table) |
| bool | writeEvtGenStream (std::ostream &os, const ParticleDataTable &table) |
| double | spinitod (int js) |
| convert from 2J+1 to the actual spin value | |
| int | spindtoi (double spin) |
| convert an actual spin to 2J+1 | |
| void | swap (ParticleID &first, ParticleID &second) |
| void | swap (ResonanceStructure &first, ResonanceStructure &second) |
| void | swap (SpinState &first, SpinState &second) |
| double | stringtodouble (std::string &numb) |
| extract a double from a string | |
| bool | addPDGParticles (std::istream &pdfile, TableBuilder &tb) |
| read PDG input and add particles to the table | |
| bool | addPythiaParticles (std::istream &pdfile, TableBuilder &tb) |
| read Pythia input and add particles to the table | |
| bool | addHerwigParticles (std::istream &pdfile, TableBuilder &tb) |
| bool | addIsajetParticles (std::istream &pdfile, TableBuilder &tb) |
| read Isajet particle input and add particles to the table | |
| bool | addIsajetDecay (std::istream &pdfile, TableBuilder &tb) |
| read Isajet decay input and add decay information to the table | |
| bool | addQQParticles (std::istream &pdfile, TableBuilder &tb) |
| read QQ input and add particles to the table | |
| bool | addEvtGenParticles (std::istream &pdfile, TableBuilder &tb) |
| read EvtGen input and add particles to the table | |
| bool | addParticleTable (std::istream &pdfile, TableBuilder &tb, bool validate=false) |
| double | calculateWidthFromLifetime (double) |
| void | swap (TempParticleData &first, TempParticleData &second) |
| void | version () |
| print HepPDT version | |
| void | writeVersion (std::ostream &os) |
| write HepPDT version to os | |
| std::string | versionName () |
| return HepPDT version | |
| bool | getEvtGenLineType (std::string <ype, int &id, std::string &name, const std::string &pdline) |
| void | parseEvtGenLine (TempParticleData &tpd, const std::string &pdline) |
| void | parseEvtGenAlias (TempAliasData &tad, const std::string &pdline) |
| bool | parseEvtGenDecayLine (TempParticleData &tpd, const std::string &pdline) |
| bool | parseEvtGenAliasDecayLine (TempAliasData &tad, const std::string &pdline) |
| void | parseEvtGenConj (std::string &cname, const std::string &pdline) |
| void | parseEvtGenDefinition (std::string &def, double &val, const std::string &pdline) |
| bool | getQQLineType (std::string <ype, int &id, std::string &name, const std::string &pdline) |
| bool | parseQQDecayLine (const std::string &pdline) |
| void | parseQQParticle (TempParticleData &tpd, const std::string &pdline) |
The HepPDT classes are used to create a Particle Data Table.
| typedef std::vector<TempDecayData> HepPDT::TDDlist |
| enum HepPDT::location |
PID digits (base 10) are: n nr nl nq1 nq2 nq3 nj The location enum provides a convenient index into the PID.
Definition at line 36 of file ParticleID.hh.
| bool HepPDT::addEvtGenParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read EvtGen input and add particles to the table
Definition at line 29 of file addEvtGenParticles.cc.
References HepPDT::TableBuilder::addAlias(), HepPDT::DefTable::addDefinition(), HepPDT::TableBuilder::addParticle(), HepPDT::TableBuilder::aliasData(), HepPDT::TableBuilder::aliasSize(), HepPDT::TableBuilder::definitions(), getEvtGenLineType(), HepPDT::TableBuilder::getParticleData(), HepPDT::TableBuilder::hasAlias(), HepPDT::TableBuilder::hasParticleData(), parseEvtGenAlias(), parseEvtGenAliasDecayLine(), parseEvtGenConj(), parseEvtGenDecayLine(), parseEvtGenDefinition(), parseEvtGenLine(), HepPDT::TableBuilder::size(), HepPDT::TempAliasData::tempChargeConj, and HepPID::translateEvtGentoPDT().
Referenced by main().
| bool HepPDT::addHerwigParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
Definition at line 13 of file addHerwigParticles.cc.
| bool HepPDT::addIsajetDecay | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read Isajet decay input and add decay information to the table
| bool HepPDT::addIsajetParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read Isajet particle input and add particles to the table
Definition at line 14 of file addIsajetParticles.cc.
References HepPDT::detail::getIsajetID(), HepPDT::TableBuilder::getParticleData(), HepPDT::detail::parseIsajetLine(), HepPDT::TableBuilder::size(), and HepPID::translateIsajettoPDT().
Referenced by main().
| bool HepPDT::addParticleTable | ( | std::istream & | pdfile, | |
| TableBuilder & | tb, | |||
| bool | validate = false | |||
| ) |
read particle.tbl (or something similar) and add particles to the table
validate=true => verify that the ParticleID is valid
Definition at line 21 of file addParticleTable.cc.
References HepPDT::TableBuilder::getParticleData(), HepPDT::detail::getParticleID(), HepPDT::ParticleID::isValid(), HepPDT::detail::parseParticleLine(), and HepPDT::TableBuilder::size().
Referenced by main().
| bool HepPDT::addPDGParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read PDG input and add particles to the table
Definition at line 22 of file addPDGParticles.cc.
References HepPDT::TableBuilder::getParticleData(), HepPDT::detail::getPDGnames(), HepPDT::detail::getPDGpid(), HepPDT::detail::parsePDGline(), HepPDT::TableBuilder::size(), and HepPDT::TempParticleData::tempSource.
Referenced by duplicateFragmentTest(), main(), pdtFragmentTest(), and pdtSimpleTest().
| bool HepPDT::addPythiaParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read Pythia input and add particles to the table
Definition at line 20 of file addPythiaParticles.cc.
References HepPDT::TableBuilder::getAntiParticle(), HepPDT::TableBuilder::getParticleData(), HepPDT::detail::getPythiaid(), HepPDT::detail::parsePythiaDecayLine(), HepPDT::detail::parsePythiaLine(), HepPDT::TableBuilder::size(), HepPDT::TempParticleData::tempMass, HepPDT::TempParticleData::tempOriginalID, HepPDT::TempParticleData::tempSource, and HepPID::translatePythiatoPDT().
Referenced by main().
| bool HepPDT::addQQParticles | ( | std::istream & | pdfile, | |
| TableBuilder & | tb | |||
| ) |
read QQ input and add particles to the table
Definition at line 27 of file addQQParticles.cc.
References HepPDT::TableBuilder::addParticle(), HepPDT::TableBuilder::getParticleData(), getQQLineType(), HepPDT::TableBuilder::hasParticleData(), parseQQDecayLine(), parseQQParticle(), HepPDT::TableBuilder::size(), HepPDT::TempParticleData::tempOriginalID, HepPDT::TempParticleData::tempParticleName, HepPDT::TempParticleData::tempSource, HepPID::translateQQbar(), and HepPID::translateQQtoPDT().
Referenced by main().
| double HepPDT::calculateWidthFromLifetime | ( | double | ) |
free function Given the lifetime, calculate the width.
Definition at line 13 of file calculateWidthFromLifetime.cc.
Referenced by parseEvtGenLine(), HepPDT::detail::parseParticleLine(), HepPDT::detail::parsePythiaLine(), and parseQQParticle().
| bool HepPDT::getEvtGenLineType | ( | std::string & | ltype, | |
| int & | id, | |||
| std::string & | name, | |||
| const std::string & | pdline | |||
| ) |
| bool HepPDT::getQQLineType | ( | std::string & | ltype, | |
| int & | id, | |||
| std::string & | name, | |||
| const std::string & | pdline | |||
| ) |
| double HepPDT::NaN | ( | ) | [inline] |
Definition at line 11 of file Measurement.icc.
| void HepPDT::parseEvtGenAlias | ( | TempAliasData & | tad, | |
| const std::string & | pdline | |||
| ) |
Definition at line 222 of file addEvtGenParticles.cc.
References HepPDT::TempAliasData::tempAlias, and HepPDT::TempAliasData::tempAliasedParticle.
Referenced by addEvtGenParticles().
| bool HepPDT::parseEvtGenAliasDecayLine | ( | TempAliasData & | tad, | |
| const std::string & | pdline | |||
| ) |
| void HepPDT::parseEvtGenConj | ( | std::string & | cname, | |
| const std::string & | pdline | |||
| ) |
| bool HepPDT::parseEvtGenDecayLine | ( | TempParticleData & | tpd, | |
| const std::string & | pdline | |||
| ) |
Definition at line 172 of file addEvtGenParticles.cc.
References HepPDT::ParticleID::pid(), and HepPDT::TempParticleData::tempID.
Referenced by addEvtGenParticles().
| void HepPDT::parseEvtGenDefinition | ( | std::string & | def, | |
| double & | val, | |||
| const std::string & | pdline | |||
| ) |
| void HepPDT::parseEvtGenLine | ( | TempParticleData & | tpd, | |
| const std::string & | pdline | |||
| ) |
Definition at line 136 of file addEvtGenParticles.cc.
References calculateWidthFromLifetime(), HepPDT::ParticleID::pid(), HepPDT::SpinState::setTotalSpin(), HepPDT::TempParticleData::tempCharge, HepPDT::TempParticleData::tempHighCutoff, HepPDT::TempParticleData::tempID, HepPDT::TempParticleData::tempMass, HepPDT::TempParticleData::tempOriginalID, HepPDT::TempParticleData::tempParticleName, HepPDT::TempParticleData::tempSource, HepPDT::TempParticleData::tempSpin, HepPDT::TempParticleData::tempWidth, and HepPDT::SpinState::totalSpin().
Referenced by addEvtGenParticles().
| bool HepPDT::parseQQDecayLine | ( | const std::string & | pdline | ) |
| void HepPDT::parseQQParticle | ( | TempParticleData & | tpd, | |
| const std::string & | pdline | |||
| ) |
Definition at line 117 of file addQQParticles.cc.
References calculateWidthFromLifetime(), HepPDT::ParticleID::pid(), HepPDT::SpinState::setTotalSpin(), HepPDT::TempParticleData::tempCharge, HepPDT::TempParticleData::tempHighCutoff, HepPDT::TempParticleData::tempID, HepPDT::TempParticleData::tempLowCutoff, HepPDT::TempParticleData::tempMass, HepPDT::TempParticleData::tempOriginalID, HepPDT::TempParticleData::tempParticleName, HepPDT::TempParticleData::tempSpin, HepPDT::TempParticleData::tempWidth, and HepPDT::SpinState::totalSpin().
Referenced by addQQParticles().
| int HepPDT::spindtoi | ( | double | spin | ) |
| double HepPDT::spinitod | ( | int | js | ) |
convert from 2J+1 to the actual spin value
Definition at line 13 of file spinitod.cc.
Referenced by HepPDT::TempParticleData::processPID(), and testValid().
| double HepPDT::stringtodouble | ( | std::string & | numb | ) |
| void HepPDT::swap | ( | TempParticleData & | first, | |
| TempParticleData & | second | |||
| ) | [inline] |
Definition at line 106 of file TempParticleData.hh.
References HepPDT::TempParticleData::swap().
Referenced by HepPDT::TempParticleData::swap(), HepPDT::SpinState::swap(), HepPDT::ResonanceStructure::swap(), HepPDT::ParticleID::swap(), HepPDT::ParticleData::swap(), HepPDT::Measurement::swap(), and HepPDT::Constituent::swap().
| void HepPDT::swap | ( | SpinState & | first, | |
| SpinState & | second | |||
| ) | [inline] |
| void HepPDT::swap | ( | ResonanceStructure & | first, | |
| ResonanceStructure & | second | |||
| ) | [inline] |
| void HepPDT::swap | ( | ParticleID & | first, | |
| ParticleID & | second | |||
| ) | [inline] |
| void HepPDT::swap | ( | ParticleData & | first, | |
| ParticleData & | second | |||
| ) | [inline] |
| void HepPDT::swap | ( | Measurement & | first, | |
| Measurement & | second | |||
| ) | [inline] |
| void HepPDT::swap | ( | Constituent & | first, | |
| Constituent & | second | |||
| ) | [inline] |
| void HepPDT::version | ( | ) |
print HepPDT version
Definition at line 20 of file HepPDT/Version.cc.
References versionName().
Referenced by HepPDT::ParticleDataTable::ParticleDataTable().
| std::string HepPDT::versionName | ( | ) |
return HepPDT version
Definition at line 15 of file HepPDT/Version.cc.
Referenced by version(), HepPDT::ParticleDataTable::writeParticleStatus(), and writeVersion().
| bool HepPDT::writeEvtGenStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| bool HepPDT::writeHerwigStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| bool HepPDT::writeIsajetStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| bool HepPDT::writePDGStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| bool HepPDT::writePythiaStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| bool HepPDT::writeQQStream | ( | std::ostream & | os, | |
| const ParticleDataTable & | table | |||
| ) |
| void HepPDT::writeVersion | ( | std::ostream & | os | ) |
write HepPDT version to os
Definition at line 26 of file HepPDT/Version.cc.
References versionName().
Referenced by HepPDT::ParticleDataTable::writeParticleData(), and HepPDT::ParticleDataTable::writeParticleInfo().
1.5.1-3