Jpp 19.3.0-rc.2
the software that should make you happy
|
Collection of particles. More...
#include <JPDB.hh>
Public Member Functions | |
JPDB () | |
Default constructor. | |
bool | hasGEANT (const int geant) const |
Check if PDB has particle corresponding to given GEANT code. | |
const JParticle & | getGEANT (const int geant) const |
Get particle corresponding to given GEANT code. | |
bool | hasPDG (const int pdg) const |
Check if PDB has particle corresponding to given PDG code. | |
const JParticle & | getPDG (const int pdg) const |
Get particle corresponding to given PDG code. | |
Static Public Member Functions | |
static const JPDB & | getInstance () |
Get particle data book. | |
static int | convertPDGtoGEANT (const int pdg) |
Retrieve GEANT code for a given PDG code. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JPDB &pdb) |
Print particle data book. | |
|
inlinestatic |
Get particle data book.
This particle data book contains all known GEANT particle codes.
Definition at line 131 of file JPDB.hh.
|
inline |
Check if PDB has particle corresponding to given GEANT code.
geant | GEANT code |
Definition at line 161 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 174 of file JPDB.hh.
|
inlinestatic |
|
inline |
Check if PDB has particle corresponding to given PDG code.
pdg | PDG code |
Definition at line 227 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 240 of file JPDB.hh.
|
friend |
Print particle data book.
out | output stream |
pdb | particle data book |
Definition at line 258 of file JPDB.hh.