Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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::G4tgbIsotope ( )

Definition at line 40 of file G4tgbIsotope.cc.

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

Definition at line 46 of file G4tgbIsotope.cc.

47 {
48 }
G4tgbIsotope::G4tgbIsotope ( G4tgrIsotope hg)

Definition at line 51 of file G4tgbIsotope.cc.

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

Member Function Documentation

G4Isotope * G4tgbIsotope::BuildG4Isotope ( )

Definition at line 58 of file G4tgbIsotope.cc.

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

Referenced by G4tgbMaterialMgr::FindOrBuildG4Isotope().

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 }
G4int GetN() const
Definition: G4tgrIsotope.hh:62
const G4String & GetName() const
Definition: G4tgrIsotope.hh:60
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
#define G4endl
Definition: G4ios.hh:61
G4double GetA() const
Definition: G4tgrIsotope.hh:63
G4int GetZ() const
Definition: G4tgrIsotope.hh:61
const G4String& G4tgbIsotope::GetName ( void  ) const
inline

Definition at line 67 of file G4tgbIsotope.hh.

References G4tgrIsotope::GetName().

Referenced by G4tgbMaterialMgr::CopyIsotopes().

67 { return theTgrIsot->GetName(); }
const G4String & GetName() const
Definition: G4tgrIsotope.hh:60

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