#include <G4Isotope.hh>
Definition at line 72 of file G4Isotope.hh.
Definition at line 59 of file G4Isotope.cc.
60 : fName(Name), fZ(
Z), fN(
N), fA(
A), fm(il)
64 ed <<
"Wrong Isotope " << Name <<
" Z= " <<
Z <<
G4endl;
69 ed <<
"Wrong Isotope " << Name <<
" Z= " <<
Z <<
" > N= " <<
N <<
G4endl;
76 theIsotopeTable.push_back(
this);
77 fIndexInTable = theIsotopeTable.size() - 1;
std::ostringstream G4ExceptionDescription
static G4NistManager * Instance()
static constexpr double g
double A(double temperature)
static constexpr double amu_c2
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double GetAtomicMass(G4int Z, G4int N) const
static constexpr double mole
G4Isotope::~G4Isotope |
( |
| ) |
|
|
virtual |
Definition at line 92 of file G4Isotope.cc.
94 theIsotopeTable[fIndexInTable] =
nullptr;
G4Isotope::G4Isotope |
( |
__void__ & |
| ) |
|
Definition at line 85 of file G4Isotope.cc.
86 : fZ(0), fN(0), fA(0), fm(0), fIndexInTable(0)
size_t G4Isotope::GetIndex |
( |
| ) |
const |
|
inline |
Definition at line 196 of file G4Isotope.cc.
199 for (
size_t J=0 ; J<theIsotopeTable.size() ; J++)
201 if (theIsotopeTable[J]->
GetName() == isotopeName)
202 {
return theIsotopeTable[J]; }
207 G4cout <<
"\n---> warning from G4Isotope::GetIsotope(). The isotope: "
208 << isotopeName <<
" does not exist in the table. Return NULL pointer."
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
G4int G4Isotope::Getm |
( |
| ) |
const |
|
inline |
G4int G4Isotope::GetN |
( |
| ) |
const |
|
inline |
const G4String& G4Isotope::GetName |
( |
| ) |
const |
|
inline |
size_t G4Isotope::GetNumberOfIsotopes |
( |
| ) |
|
|
static |
Definition at line 189 of file G4Isotope.cc.
191 return theIsotopeTable.size();
G4int G4Isotope::GetZ |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
const G4Isotope * |
isotope |
|
) |
| |
|
friend |
Definition at line 139 of file G4Isotope.cc.
141 std::ios::fmtflags mode = flux.flags();
142 flux.setf(std::ios::fixed,std::ios::floatfield);
146 <<
" Isotope: " << std::setw(5) << isotope->fName
147 <<
" Z = " << std::setw(2) << isotope->fZ
148 <<
" N = " << std::setw(3) << isotope->fN
149 <<
" A = " << std::setw(6) << std::setprecision(2)
150 << (isotope->fA)/(
g/
mole) <<
" g/mole";
152 flux.precision(prec);
153 flux.setf(mode,std::ios::floatfield);
static constexpr double g
static constexpr double mole
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
const G4Isotope & |
isotope |
|
) |
| |
|
friend |
std::ostream& operator<< |
( |
std::ostream & |
flux, |
|
|
G4IsotopeTable |
IsotopeTable |
|
) |
| |
|
friend |
Definition at line 167 of file G4Isotope.cc.
171 <<
"\n***** Table : Nb of isotopes = " << IsotopeTable.size()
174 for (
size_t i=0; i<IsotopeTable.size(); i++)
175 flux << IsotopeTable[i] <<
G4endl;
The documentation for this class was generated from the following files: