Jpp
18.2.0
the software that should make you happy
|
Collection of particles. More...
#include <JPDB.hh>
Public Member Functions | |
JPDB () | |
Default constructor. More... | |
bool | hasGEANT (const int geant) const |
Check if PDB has particle corresponding to given GEANT code. More... | |
const JParticle & | getGEANT (const int geant) const |
Get particle corresponding to given GEANT code. More... | |
bool | hasPDG (const int pdg) const |
Check if PDB has particle corresponding to given PDG code. More... | |
const JParticle & | getPDG (const int pdg) const |
Get particle corresponding to given PDG code. More... | |
Static Public Member Functions | |
static const JPDB & | getInstance () |
Get particle data book. More... | |
static int | convertPDGtoGEANT (const int pdg) |
Retrieve GEANT code for a given PDG code. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JPDB &pdb) |
Print particle data book. More... | |
|
inlinestatic |
Get particle data book.
This particle data book contains all known GEANT particle codes.
Definition at line 125 of file JPDB.hh.
|
inline |
Check if PDB has particle corresponding to given GEANT code.
geant | GEANT code |
Definition at line 155 of file JPDB.hh.
|
inline |
Get particle corresponding to given GEANT code.
This method throws an error if the particle cannot be found.
geant | GEANT code |
Definition at line 168 of file JPDB.hh.
|
inlinestatic |
Retrieve GEANT code for a given PDG code.
pdg | PDG code |
Definition at line 185 of file JPDB.hh.
|
inline |
Check if PDB has particle corresponding to given PDG code.
pdg | PDG code |
Definition at line 221 of file JPDB.hh.
|
inline |
Get particle corresponding to given PDG code.
This method throws an error if the particle cannot be found.
pdg | PDG code |
Definition at line 234 of file JPDB.hh.
|
friend |