Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4tgbIsotope Class Reference

#include <G4tgbIsotope.hh>

Public Member Functions

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

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}

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(),
61 theTgrIsot->GetN(), theTgrIsot->GetA());
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
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()

Referenced by G4tgbMaterialMgr::FindOrBuildG4Isotope().

◆ GetName()

const G4String & G4tgbIsotope::GetName ( ) const
inline

Definition at line 55 of file G4tgbIsotope.hh.

55{ return theTgrIsot->GetName(); }

Referenced by G4tgbMaterialMgr::CopyIsotopes().


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