Geant4-11
Public Member Functions | Private Attributes
G4VIsotopeTable Class Referenceabstract

#include <G4VIsotopeTable.hh>

Inheritance diagram for G4VIsotopeTable:
G4IsotopeMagneticMomentTable G4NuclideTable

Public Member Functions

void DumpTable (G4int Zmin=1, G4int Zmax=118)
 
 G4VIsotopeTable ()
 
 G4VIsotopeTable (const G4String &)
 
 G4VIsotopeTable (const G4VIsotopeTable &)
 
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)
 
const G4StringGetName () const
 
G4int GetVerboseLevel () const
 
G4VIsotopeTableoperator= (const G4VIsotopeTable &)
 
void SetVerboseLevel (G4int level)
 
virtual ~G4VIsotopeTable ()
 

Private Attributes

G4String fName = ""
 
G4int verboseLevel = 0
 

Detailed Description

Definition at line 44 of file G4VIsotopeTable.hh.

Constructor & Destructor Documentation

◆ G4VIsotopeTable() [1/3]

G4VIsotopeTable::G4VIsotopeTable ( )

Definition at line 41 of file G4VIsotopeTable.cc.

42{
43}

◆ G4VIsotopeTable() [2/3]

G4VIsotopeTable::G4VIsotopeTable ( const G4String name)
explicit

Definition at line 46 of file G4VIsotopeTable.cc.

47 : fName(name)
48{
49}
const char * name(G4int ptype)

◆ G4VIsotopeTable() [3/3]

G4VIsotopeTable::G4VIsotopeTable ( const G4VIsotopeTable right)

Definition at line 52 of file G4VIsotopeTable.cc.

53 : fName(right.fName), verboseLevel(right.verboseLevel)
54{
55}

◆ ~G4VIsotopeTable()

G4VIsotopeTable::~G4VIsotopeTable ( )
virtual

Definition at line 69 of file G4VIsotopeTable.cc.

70{
71}

Member Function Documentation

◆ DumpTable()

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

Definition at line 83 of file G4VIsotopeTable.cc.

84{
85 G4int Z, A;
86 G4int lvl;
87 const G4int MAX_LVL=9;
88 for ( Z =Zmin; Z<=Zmax; ++Z )
89 {
90 for ( A= Z; A<=3*Z; ++A )
91 {
92 for ( lvl=0; lvl<=MAX_LVL; ++lvl )
93 {
94 G4IsotopeProperty* ptr = GetIsotope(Z,A,lvl);
95 if (ptr!=nullptr) ptr->DumpInfo();
96 }
97 }
98 }
99}
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
virtual G4IsotopeProperty * GetIsotope(G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb=G4Ions::G4FloatLevelBase::no_Float)=0

References A, G4IsotopeProperty::DumpInfo(), GetIsotope(), and Z.

◆ GetIsotope()

virtual G4IsotopeProperty * G4VIsotopeTable::GetIsotope ( G4int  Z,
G4int  A,
G4double  E,
G4Ions::G4FloatLevelBase  flb = G4Ions::G4FloatLevelBase::no_Float 
)
pure virtual

◆ GetIsotopeByIsoLvl()

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

Reimplemented in G4NuclideTable, and G4IsotopeMagneticMomentTable.

Definition at line 75 of file G4VIsotopeTable.cc.

76{
77 // temporal implementation
78 if (level==0) return GetIsotope(Z, A, 0.0);
79 else return nullptr;
80}

References A, GetIsotope(), and Z.

◆ GetName()

const G4String & G4VIsotopeTable::GetName ( ) const
inline

Definition at line 101 of file G4VIsotopeTable.hh.

102{
103 return fName;
104}

References fName.

Referenced by G4IonTable::RegisterIsotopeTable().

◆ GetVerboseLevel()

G4int G4VIsotopeTable::GetVerboseLevel ( ) const
inline

Definition at line 107 of file G4VIsotopeTable.hh.

108{
109 return verboseLevel;
110}

References verboseLevel.

◆ operator=()

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

Definition at line 58 of file G4VIsotopeTable.cc.

59{
60 if (this != &right)
61 {
62 fName = right.fName;
64 }
65 return *this;
66}

References fName, and verboseLevel.

◆ SetVerboseLevel()

void G4VIsotopeTable::SetVerboseLevel ( G4int  level)
inline

Definition at line 113 of file G4VIsotopeTable.hh.

114{
115 verboseLevel = level;
116}

References verboseLevel.

Field Documentation

◆ fName

G4String G4VIsotopeTable::fName = ""
private

Definition at line 92 of file G4VIsotopeTable.hh.

Referenced by GetName(), and operator=().

◆ verboseLevel

G4int G4VIsotopeTable::verboseLevel = 0
private

Definition at line 93 of file G4VIsotopeTable.hh.

Referenced by GetVerboseLevel(), operator=(), and SetVerboseLevel().


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