Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VIsotopeTable Class Referenceabstract

#include <G4VIsotopeTable.hh>

+ Inheritance diagram for G4VIsotopeTable:

Public Member Functions

 G4VIsotopeTable ()=default
 
 G4VIsotopeTable (const G4String &)
 
 G4VIsotopeTable (const G4VIsotopeTable &)=default
 
G4VIsotopeTableoperator= (const G4VIsotopeTable &)
 
virtual ~G4VIsotopeTable ()=default
 
virtual G4IsotopePropertyGetIsotope (G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb=G4Ions::G4FloatLevelBase::no_Float)=0
 
virtual G4IsotopePropertyGetIsotopeByIsoLvl (G4int Z, G4int A, G4int level=0)
 
G4int GetVerboseLevel () const
 
void SetVerboseLevel (G4int level)
 
void DumpTable (G4int Zmin=1, G4int Zmax=118)
 
const G4StringGetName () const
 

Detailed Description

Definition at line 44 of file G4VIsotopeTable.hh.

Constructor & Destructor Documentation

◆ G4VIsotopeTable() [1/3]

G4VIsotopeTable::G4VIsotopeTable ( )
default

◆ G4VIsotopeTable() [2/3]

G4VIsotopeTable::G4VIsotopeTable ( const G4String & name)
explicit

Definition at line 35 of file G4VIsotopeTable.cc.

35: fName(name) {}

◆ G4VIsotopeTable() [3/3]

G4VIsotopeTable::G4VIsotopeTable ( const G4VIsotopeTable & )
default

◆ ~G4VIsotopeTable()

virtual G4VIsotopeTable::~G4VIsotopeTable ( )
virtualdefault

Member Function Documentation

◆ DumpTable()

void G4VIsotopeTable::DumpTable ( G4int Zmin = 1,
G4int Zmax = 118 )

Definition at line 53 of file G4VIsotopeTable.cc.

54{
55 G4int Z, A;
56 G4int lvl;
57 const G4int MAX_LVL = 9;
58 for (Z = Zmin; Z <= Zmax; ++Z) {
59 for (A = Z; A <= 3 * Z; ++A) {
60 for (lvl = 0; lvl <= MAX_LVL; ++lvl) {
61 G4IsotopeProperty* ptr = GetIsotope(Z, A, lvl);
62 if (ptr != nullptr) ptr->DumpInfo();
63 }
64 }
65 }
66}
int G4int
Definition G4Types.hh:85
const G4double A[17]
virtual G4IsotopeProperty * GetIsotope(G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb=G4Ions::G4FloatLevelBase::no_Float)=0

◆ GetIsotope()

◆ GetIsotopeByIsoLvl()

G4IsotopeProperty * G4VIsotopeTable::GetIsotopeByIsoLvl ( G4int Z,
G4int A,
G4int level = 0 )
virtual

Reimplemented in G4IsotopeMagneticMomentTable, and G4NuclideTable.

Definition at line 46 of file G4VIsotopeTable.cc.

47{
48 // temporal implementation
49 if (level == 0) return GetIsotope(Z, A, 0.0);
50 return nullptr;
51}

◆ GetName()

const G4String & G4VIsotopeTable::GetName ( ) const
inline

Definition at line 98 of file G4VIsotopeTable.hh.

99{
100 return fName;
101}

Referenced by G4IonTable::RegisterIsotopeTable().

◆ GetVerboseLevel()

G4int G4VIsotopeTable::GetVerboseLevel ( ) const
inline

Definition at line 103 of file G4VIsotopeTable.hh.

104{
105 return verboseLevel;
106}

◆ operator=()

G4VIsotopeTable & G4VIsotopeTable::operator= ( const G4VIsotopeTable & right)

Definition at line 37 of file G4VIsotopeTable.cc.

38{
39 if (this != &right) {
40 fName = right.fName;
41 verboseLevel = right.verboseLevel;
42 }
43 return *this;
44}

◆ SetVerboseLevel()

void G4VIsotopeTable::SetVerboseLevel ( G4int level)
inline

Definition at line 108 of file G4VIsotopeTable.hh.

109{
110 verboseLevel = level;
111}

The documentation for this class was generated from the following files: