Geant4-11
Public Member Functions | Private Attributes | Friends
G4tgrIsotope Class Reference

#include <G4tgrIsotope.hh>

Public Member Functions

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

Private Attributes

G4double theA = 0.0
 
G4int theN = 0
 
G4String theName = ""
 
G4int theZ = 0
 

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
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}
static constexpr double mole
Definition: G4SIunits.hh:279
static constexpr double g
Definition: G4SIunits.hh:168
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
@ WLSIZE_EQ
Definition: G4tgrUtils.hh:47
G4String theName
Definition: G4tgrIsotope.hh:63
G4double theA
Definition: G4tgrIsotope.hh:66
static G4int GetVerboseLevel()
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:173
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:490
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:447
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:198

References G4tgrUtils::CheckWLsize(), g, G4cout, G4endl, G4tgrUtils::GetDouble(), G4tgrUtils::GetInt(), G4tgrUtils::GetString(), G4tgrMessenger::GetVerboseLevel(), mole, theA, theN, theName, theZ, and WLSIZE_EQ.

Member Function Documentation

◆ GetA()

G4double G4tgrIsotope::GetA ( ) const
inline

Definition at line 57 of file G4tgrIsotope.hh.

57{ return theA; }

References theA.

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetN()

G4int G4tgrIsotope::GetN ( ) const
inline

Definition at line 56 of file G4tgrIsotope.hh.

56{ return theN; }

References theN.

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetName()

const G4String & G4tgrIsotope::GetName ( ) const
inline

Definition at line 54 of file G4tgrIsotope.hh.

54{ return theName; }

References 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; }

References theZ.

Referenced by G4tgbIsotope::BuildG4Isotope().

Friends And Related Function 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}

Field Documentation

◆ theA

G4double G4tgrIsotope::theA = 0.0
private

Definition at line 66 of file G4tgrIsotope.hh.

Referenced by G4tgrIsotope(), and GetA().

◆ theN

G4int G4tgrIsotope::theN = 0
private

Definition at line 65 of file G4tgrIsotope.hh.

Referenced by G4tgrIsotope(), and GetN().

◆ theName

G4String G4tgrIsotope::theName = ""
private

Definition at line 63 of file G4tgrIsotope.hh.

Referenced by G4tgrIsotope(), and GetName().

◆ theZ

G4int G4tgrIsotope::theZ = 0
private

Definition at line 64 of file G4tgrIsotope.hh.

Referenced by G4tgrIsotope(), and GetZ().


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