G4tgrIsotope Class Reference

#include <G4tgrIsotope.hh>


Public Member Functions

 G4tgrIsotope ()
 ~G4tgrIsotope ()
 G4tgrIsotope (const std::vector< G4String > &wl)
const G4StringGetName () const
G4int GetZ () const
G4int GetN () const
G4double GetA () const

Friends

std::ostream & operator<< (std::ostream &os, const G4tgrIsotope &obj)


Detailed Description

Definition at line 47 of file G4tgrIsotope.hh.


Constructor & Destructor Documentation

G4tgrIsotope::G4tgrIsotope (  ) 

Definition at line 44 of file G4tgrIsotope.cc.

00045   : theName(""), theZ(0), theN(0), theA(0.)
00046 {
00047 }

G4tgrIsotope::~G4tgrIsotope (  ) 

Definition at line 51 of file G4tgrIsotope.cc.

00052 {
00053 }

G4tgrIsotope::G4tgrIsotope ( const std::vector< G4String > &  wl  ) 

Definition at line 57 of file G4tgrIsotope.cc.

References G4tgrUtils::CheckWLsize(), G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), and WLSIZE_EQ.

00058 {
00059   //---------- Check for miminum number of words read 
00060   G4tgrUtils::CheckWLsize( wl, 5, WLSIZE_EQ, "G4tgrIsotope::G4tgIstotope");
00061 
00062   theName = G4tgrUtils::GetString( wl[1] );
00063   theZ = G4tgrUtils::GetInt( wl[2] );
00064   theN = G4tgrUtils::GetInt( wl[3] );
00065   theA = G4tgrUtils::GetDouble( wl[4], g/mole);
00066 
00067 #ifdef G4VERBOSE
00068   if( G4tgrMessenger::GetVerboseLevel() >= 1 )
00069   {
00070     G4cout << " Created " << *this << G4endl;
00071   }
00072 #endif
00073 }


Member Function Documentation

G4double G4tgrIsotope::GetA (  )  const [inline]

Definition at line 63 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

00063 { return theA; }

G4int G4tgrIsotope::GetN (  )  const [inline]

Definition at line 62 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

00062 { return theN; }

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

Definition at line 60 of file G4tgrIsotope.hh.

Referenced by G4tgrMaterialFactory::AddIsotope(), G4tgbIsotope::BuildG4Isotope(), and G4tgbIsotope::GetName().

00060 { return theName; }

G4int G4tgrIsotope::GetZ (  )  const [inline]

Definition at line 61 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

00061 { return theZ; }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4tgrIsotope obj 
) [friend]

Definition at line 76 of file G4tgrIsotope.cc.

00077 {
00078   os << "G4tgrIsotope= " << obj.theName
00079      << " Z = " << obj.theZ
00080      << " N= " << obj.theN
00081      << " A= " << obj.theA << G4endl;
00082 
00083   return os;
00084 }


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