Geant4  10.02.p03
G4tgbIsotope Class Reference

#include <G4tgbIsotope.hh>

Collaboration diagram for G4tgbIsotope:

Public Member Functions

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

Private Attributes

G4tgrIsotopetheTgrIsot
 
G4IsotopetheG4Isot
 

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 }
G4tgrIsotope * theTgrIsot
Definition: G4tgbIsotope.hh:71
G4Isotope * theG4Isot
Definition: G4tgbIsotope.hh:72

◆ ~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 }
G4tgrIsotope * theTgrIsot
Definition: G4tgbIsotope.hh:71
G4Isotope * theG4Isot
Definition: G4tgbIsotope.hh:72

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 }
G4tgrIsotope * theTgrIsot
Definition: G4tgbIsotope.hh:71
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
G4int GetZ() const
Definition: G4tgrIsotope.hh:61
#define G4endl
Definition: G4ios.hh:61
G4double GetA() const
Definition: G4tgrIsotope.hh:63
G4Isotope * theG4Isot
Definition: G4tgbIsotope.hh:72
G4int GetN() const
Definition: G4tgrIsotope.hh:62
const G4String & GetName() const
Definition: G4tgrIsotope.hh:60
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetName()

const G4String& G4tgbIsotope::GetName ( void  ) const
inline

Definition at line 67 of file G4tgbIsotope.hh.

67 { return theTgrIsot->GetName(); }
G4tgrIsotope * theTgrIsot
Definition: G4tgbIsotope.hh:71
const G4String & GetName() const
Definition: G4tgrIsotope.hh:60
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ theG4Isot

G4Isotope* G4tgbIsotope::theG4Isot
private

Definition at line 72 of file G4tgbIsotope.hh.

◆ theTgrIsot

G4tgrIsotope* G4tgbIsotope::theTgrIsot
private

Definition at line 71 of file G4tgbIsotope.hh.


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