#include <G4IsotopeMagneticMomentTable.hh>
G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable |
( |
| ) |
|
Definition at line 56 of file G4IsotopeMagneticMomentTable.cc.
59 if ( !getenv(
"G4IONMAGNETICMOMENT")) {
61 if (GetVerboseLevel()>1) {
62 G4cout <<
"G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(): "
63 <<
"Please setenv G4IONMAGNETICMOMENT for the magnetic moment data."
68 "Please setenv G4IONMAGNETICMOMENT");
74 "Please setenv G4IONMAGNETICMOMENT");
78 G4String file = getenv(
"G4IONMAGNETICMOMENT");
79 std::ifstream DataFile(file);
83 if (GetVerboseLevel()>0) {
84 G4cout <<
"G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(): "
85 << file <<
" is not found " <<
G4endl;
91 "Can not open G4IONMAGNETICMOMENT file");
95 char inputChars[80]={
' '};
97 while ( !DataFile.eof() ) {
98 DataFile.getline(inputChars, 80);
100 G4int ionA, ionZ, ionJ, isomer;
104 if (inputChars[0] !=
'#' && inputLine.length() != 0) {
105 std::istringstream tmpstream(inputLine);
106 tmpstream >> ionZ >> ionName >> ionA
108 >> ionLife >> ionLifeUnit
120 fIsotopeList.push_back(fProperty);
void SetAtomicMass(G4int A)
void SetMagneticMoment(G4double M)
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetEnergy(G4double E)
static constexpr double MeV
void SetAtomicNumber(G4int Z)
void SetIsomerLevel(G4int level)
G4IsotopeMagneticMomentTable::~G4IsotopeMagneticMomentTable |
( |
| ) |
|
|
virtual |
Definition at line 133 of file G4IsotopeMagneticMomentTable.cc.
135 for (
size_t i = 0 ; i< fIsotopeList.size(); i++) {
136 delete fIsotopeList[i];
138 fIsotopeList.clear();
Definition at line 155 of file G4IsotopeMagneticMomentTable.cc.
157 for (
size_t i = 0 ; i< fIsotopeList.size(); ++i) {
183 if (std::fabs(fP->
GetEnergy() - pP->GetEnergy()) < levelTolerance) {
G4int GetAtomicNumber() const
G4int GetIsomerLevel() const
G4double GetEnergy() const
G4int GetAtomicMass() const
Implements G4VIsotopeTable.
Definition at line 194 of file G4IsotopeMagneticMomentTable.cc.
198 for (
size_t i = 0 ; i< fIsotopeList.size(); ++i) {
218 if (std::fabs(fP->
GetEnergy() - E) < levelTolerance) {
G4int GetAtomicNumber() const
double A(double temperature)
G4double GetEnergy() const
G4int GetAtomicMass() const
Reimplemented from G4VIsotopeTable.
Definition at line 233 of file G4IsotopeMagneticMomentTable.cc.
236 for (
size_t i = 0 ; i< fIsotopeList.size(); ++i) {
G4int GetAtomicNumber() const
G4int GetIsomerLevel() const
double A(double temperature)
G4int GetAtomicMass() const
The documentation for this class was generated from the following files: