Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

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

Here is the call graph for this function:

Here is the caller graph for this function:

const G4String& G4tgbIsotope::GetName ( ) const
inline

Definition at line 67 of file G4tgbIsotope.hh.

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

Here is the call graph for this function:

Here is the caller graph for this function:


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