Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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 41 of file G4tgrIsotope.hh.

Constructor & Destructor Documentation

◆ G4tgrIsotope() [1/2]

G4tgrIsotope::G4tgrIsotope ( )

Definition at line 38 of file G4tgrIsotope.cc.

39{
40}

◆ ~G4tgrIsotope()

G4tgrIsotope::~G4tgrIsotope ( )

Definition at line 43 of file G4tgrIsotope.cc.

44{
45}

◆ G4tgrIsotope() [2/2]

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

Definition at line 48 of file G4tgrIsotope.cc.

49{
50 //---------- Check for miminum number of words read
51 G4tgrUtils::CheckWLsize(wl, 5, WLSIZE_EQ, "G4tgrIsotope::G4tgIstotope");
52
53 theName = G4tgrUtils::GetString(wl[1]);
54 theZ = G4tgrUtils::GetInt(wl[2]);
55 theN = G4tgrUtils::GetInt(wl[3]);
56 theA = G4tgrUtils::GetDouble(wl[4], g / mole);
57
58#ifdef G4VERBOSE
60 {
61 G4cout << " Created " << *this << G4endl;
62 }
63#endif
64}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
@ WLSIZE_EQ
Definition G4tgrUtils.hh:47
static G4int GetVerboseLevel()
static G4String GetString(const G4String &str)
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
static G4int GetInt(const G4String &str)
static G4double GetDouble(const G4String &str, G4double unitval=1.)

Member Function Documentation

◆ GetA()

G4double G4tgrIsotope::GetA ( ) const
inline

Definition at line 57 of file G4tgrIsotope.hh.

57{ return theA; }

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetN()

G4int G4tgrIsotope::GetN ( ) const
inline

Definition at line 56 of file G4tgrIsotope.hh.

56{ return theN; }

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetName()

const G4String & G4tgrIsotope::GetName ( ) const
inline

Definition at line 54 of file G4tgrIsotope.hh.

54{ return theName; }

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

◆ GetZ()

G4int G4tgrIsotope::GetZ ( ) const
inline

Definition at line 55 of file G4tgrIsotope.hh.

55{ return theZ; }

Referenced by G4tgbIsotope::BuildG4Isotope().

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 67 of file G4tgrIsotope.cc.

68{
69 os << "G4tgrIsotope= " << obj.theName << " Z = " << obj.theZ
70 << " N= " << obj.theN << " A= " << obj.theA << G4endl;
71
72 return os;
73}

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