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.

00041   : theTgrIsot(0), theG4Isot(0)
00042 {
00043 }

G4tgbIsotope::~G4tgbIsotope (  ) 

Definition at line 46 of file G4tgbIsotope.cc.

00047 {
00048 }

G4tgbIsotope::G4tgbIsotope ( G4tgrIsotope hg  ) 

Definition at line 51 of file G4tgbIsotope.cc.

00052 {
00053   theTgrIsot = hg;
00054   theG4Isot = 0;
00055 }


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().

00059 {
00060   G4Isotope* isot = 0;
00061 
00062   //-------- if G4Isotope not found, construct it 
00063   if( theG4Isot == 0 )
00064   { 
00065     //----- construct new G4Isotope 
00066 
00067     isot = new G4Isotope(theTgrIsot->GetName(), theTgrIsot->GetZ(),
00068                          theTgrIsot->GetN(), theTgrIsot->GetA() );
00069 
00070 #ifdef G4VERBOSE
00071     if( G4tgrMessenger::GetVerboseLevel() >= 2 )
00072     {
00073       G4cout << "  Constructing new G4Isotope " 
00074              << *isot << G4endl;
00075     }
00076 #endif
00077     theG4Isot = isot;
00078   }
00079   else
00080   {
00081     isot = theG4Isot; 
00082   }
00083 
00084   return isot;
00085 }

const G4String& G4tgbIsotope::GetName (  )  const [inline]

Definition at line 67 of file G4tgbIsotope.hh.

References G4tgrIsotope::GetName().

00067 { return theTgrIsot->GetName(); }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:29 2013 for Geant4 by  doxygen 1.4.7