#include <G4tgrElementSimple.hh>
Inheritance diagram for G4tgrElementSimple:
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) |
Definition at line 49 of file G4tgrElementSimple.hh.
G4tgrElementSimple::G4tgrElementSimple | ( | ) |
G4tgrElementSimple::~G4tgrElementSimple | ( | ) |
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 }
G4double G4tgrElementSimple::GetA | ( | ) | const [inline] |
Definition at line 61 of file G4tgrElementSimple.hh.
Referenced by G4tgbElement::BuildG4ElementSimple().
G4double G4tgrElementSimple::GetZ | ( | ) | const [inline] |
Definition at line 60 of file G4tgrElementSimple.hh.
Referenced by G4tgbElement::BuildG4ElementSimple().
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4tgrElementSimple & | obj | |||
) | [friend] |