Geant4-11
Public Member Functions | Private Attributes
G4tgbIsotope Class Reference

#include <G4tgbIsotope.hh>

Public Member Functions

G4IsotopeBuildG4Isotope ()
 
 G4tgbIsotope ()
 
 G4tgbIsotope (G4tgrIsotope *hg)
 
const G4StringGetName () const
 
 ~G4tgbIsotope ()
 

Private Attributes

G4IsotopetheG4Isot = nullptr
 
G4tgrIsotopetheTgrIsot = nullptr
 

Detailed Description

Definition at line 42 of file G4tgbIsotope.hh.

Constructor & Destructor Documentation

◆ G4tgbIsotope() [1/2]

G4tgbIsotope::G4tgbIsotope ( )

Definition at line 35 of file G4tgbIsotope.cc.

36{
37}

◆ ~G4tgbIsotope()

G4tgbIsotope::~G4tgbIsotope ( )

Definition at line 40 of file G4tgbIsotope.cc.

41{
42}

◆ G4tgbIsotope() [2/2]

G4tgbIsotope::G4tgbIsotope ( G4tgrIsotope hg)

Definition at line 45 of file G4tgbIsotope.cc.

46{
47 theTgrIsot = hg;
48}
G4tgrIsotope * theTgrIsot
Definition: G4tgbIsotope.hh:59

References theTgrIsot.

Member Function Documentation

◆ BuildG4Isotope()

G4Isotope * G4tgbIsotope::BuildG4Isotope ( )

Definition at line 51 of file G4tgbIsotope.cc.

52{
53 G4Isotope* isot = nullptr;
54
55 //-------- if G4Isotope not found, construct it
56 if(theG4Isot == nullptr)
57 {
58 //----- construct new G4Isotope
59
60 isot = new G4Isotope(theTgrIsot->GetName(), theTgrIsot->GetZ(),
62
63#ifdef G4VERBOSE
65 {
66 G4cout << " Constructing new G4Isotope " << *isot << G4endl;
67 }
68#endif
69 theG4Isot = isot;
70 }
71 else
72 {
73 isot = theG4Isot;
74 }
75
76 return isot;
77}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4Isotope * theG4Isot
Definition: G4tgbIsotope.hh:60
G4int GetN() const
Definition: G4tgrIsotope.hh:56
const G4String & GetName() const
Definition: G4tgrIsotope.hh:54
G4double GetA() const
Definition: G4tgrIsotope.hh:57
G4int GetZ() const
Definition: G4tgrIsotope.hh:55
static G4int GetVerboseLevel()

References G4cout, G4endl, G4tgrIsotope::GetA(), G4tgrIsotope::GetN(), G4tgrIsotope::GetName(), G4tgrMessenger::GetVerboseLevel(), G4tgrIsotope::GetZ(), theG4Isot, and theTgrIsot.

Referenced by G4tgbMaterialMgr::FindOrBuildG4Isotope().

◆ GetName()

const G4String & G4tgbIsotope::GetName ( ) const
inline

Definition at line 55 of file G4tgbIsotope.hh.

55{ return theTgrIsot->GetName(); }

References G4tgrIsotope::GetName(), and theTgrIsot.

Referenced by G4tgbMaterialMgr::CopyIsotopes().

Field Documentation

◆ theG4Isot

G4Isotope* G4tgbIsotope::theG4Isot = nullptr
private

Definition at line 60 of file G4tgbIsotope.hh.

Referenced by BuildG4Isotope().

◆ theTgrIsot

G4tgrIsotope* G4tgbIsotope::theTgrIsot = nullptr
private

Definition at line 59 of file G4tgbIsotope.hh.

Referenced by BuildG4Isotope(), G4tgbIsotope(), and GetName().


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