Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends
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.

45  : theName(""), theZ(0), theN(0), theA(0.)
46 {
47 }
G4tgrIsotope::~G4tgrIsotope ( )

Definition at line 51 of file G4tgrIsotope.cc.

52 {
53 }
G4tgrIsotope::G4tgrIsotope ( const std::vector< G4String > &  wl)

Definition at line 57 of file G4tgrIsotope.cc.

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

58 {
59  //---------- Check for miminum number of words read
60  G4tgrUtils::CheckWLsize( wl, 5, WLSIZE_EQ, "G4tgrIsotope::G4tgIstotope");
61 
62  theName = G4tgrUtils::GetString( wl[1] );
63  theZ = G4tgrUtils::GetInt( wl[2] );
64  theN = G4tgrUtils::GetInt( wl[3] );
65  theA = G4tgrUtils::GetDouble( wl[4], g/mole);
66 
67 #ifdef G4VERBOSE
69  {
70  G4cout << " Created " << *this << G4endl;
71  }
72 #endif
73 }
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:475
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:430
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:205
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:180
#define G4endl
Definition: G4ios.hh:61

Member Function Documentation

G4double G4tgrIsotope::GetA ( ) const
inline

Definition at line 63 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

63 { return theA; }
G4int G4tgrIsotope::GetN ( ) const
inline

Definition at line 62 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

62 { return theN; }
const G4String& G4tgrIsotope::GetName ( void  ) const
inline

Definition at line 60 of file G4tgrIsotope.hh.

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

60 { return theName; }
G4int G4tgrIsotope::GetZ ( ) const
inline

Definition at line 61 of file G4tgrIsotope.hh.

Referenced by G4tgbIsotope::BuildG4Isotope().

61 { 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.

77 {
78  os << "G4tgrIsotope= " << obj.theName
79  << " Z = " << obj.theZ
80  << " N= " << obj.theN
81  << " A= " << obj.theA << G4endl;
82 
83  return os;
84 }
#define G4endl
Definition: G4ios.hh:61

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