Geant4 9.6.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 53 of file G4tgbIsotope.hh.

Constructor & Destructor Documentation

◆ G4tgbIsotope() [1/2]

G4tgbIsotope::G4tgbIsotope ( )

Definition at line 40 of file G4tgbIsotope.cc.

41 : theTgrIsot(0), theG4Isot(0)
42{
43}

◆ ~G4tgbIsotope()

G4tgbIsotope::~G4tgbIsotope ( )

Definition at line 46 of file G4tgbIsotope.cc.

47{
48}

◆ G4tgbIsotope() [2/2]

G4tgbIsotope::G4tgbIsotope ( G4tgrIsotope hg)

Definition at line 51 of file G4tgbIsotope.cc.

52{
53 theTgrIsot = hg;
54 theG4Isot = 0;
55}

Member Function Documentation

◆ BuildG4Isotope()

G4Isotope * G4tgbIsotope::BuildG4Isotope ( )

Definition at line 58 of file G4tgbIsotope.cc.

59{
60 G4Isotope* isot = 0;
61
62 //-------- if G4Isotope not found, construct it
63 if( theG4Isot == 0 )
64 {
65 //----- construct new G4Isotope
66
67 isot = new G4Isotope(theTgrIsot->GetName(), theTgrIsot->GetZ(),
68 theTgrIsot->GetN(), theTgrIsot->GetA() );
69
70#ifdef G4VERBOSE
72 {
73 G4cout << " Constructing new G4Isotope "
74 << *isot << G4endl;
75 }
76#endif
77 theG4Isot = isot;
78 }
79 else
80 {
81 isot = theG4Isot;
82 }
83
84 return isot;
85}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4int GetN() const
Definition: G4tgrIsotope.hh:62
const G4String & GetName() const
Definition: G4tgrIsotope.hh:60
G4double GetA() const
Definition: G4tgrIsotope.hh:63
G4int GetZ() const
Definition: G4tgrIsotope.hh:61
static G4int GetVerboseLevel()

Referenced by G4tgbMaterialMgr::FindOrBuildG4Isotope().

◆ GetName()

const G4String & G4tgbIsotope::GetName ( ) const
inline

Definition at line 67 of file G4tgbIsotope.hh.

67{ return theTgrIsot->GetName(); }

Referenced by G4tgbMaterialMgr::CopyIsotopes().


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