G4tgrElementSimple Class Reference

#include <G4tgrElementSimple.hh>

Inheritance diagram for G4tgrElementSimple:

G4tgrElement

Public Member Functions

 G4tgrElementSimple ()
 ~G4tgrElementSimple ()
 G4tgrElementSimple (const std::vector< G4String > &wl)
G4double GetZ () const
G4double GetA () const

Friends

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

Detailed Description

Definition at line 49 of file G4tgrElementSimple.hh.


Constructor & Destructor Documentation

G4tgrElementSimple::G4tgrElementSimple (  ) 

Definition at line 43 of file G4tgrElementSimple.cc.

00044   : theZ(0.), theA(0.)
00045 {
00046 }

G4tgrElementSimple::~G4tgrElementSimple (  ) 

Definition at line 50 of file G4tgrElementSimple.cc.

00051 {
00052 }

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

Definition at line 56 of file G4tgrElementSimple.cc.

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

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


Member Function Documentation

G4double G4tgrElementSimple::GetA (  )  const [inline]

Definition at line 61 of file G4tgrElementSimple.hh.

Referenced by G4tgbElement::BuildG4ElementSimple().

00061 { return theA; }

G4double G4tgrElementSimple::GetZ (  )  const [inline]

Definition at line 60 of file G4tgrElementSimple.hh.

Referenced by G4tgbElement::BuildG4ElementSimple().

00060 { return theZ; }


Friends And Related Function Documentation

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

Definition at line 78 of file G4tgrElementSimple.cc.

00079 {
00080   os << "G4tgrElementSimple= " << obj.theName
00081      << " Z = " << obj.theZ << " 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