Geant4 9.6.0
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 47 of file G4tgrIsotope.hh.

Constructor & Destructor Documentation

◆ G4tgrIsotope() [1/2]

G4tgrIsotope::G4tgrIsotope ( )

Definition at line 44 of file G4tgrIsotope.cc.

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

◆ ~G4tgrIsotope()

G4tgrIsotope::~G4tgrIsotope ( )

Definition at line 51 of file G4tgrIsotope.cc.

52{
53}

◆ G4tgrIsotope() [2/2]

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

Definition at line 57 of file G4tgrIsotope.cc.

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}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
@ WLSIZE_EQ
Definition: G4tgrUtils.hh:52
static G4int GetVerboseLevel()
static G4String GetString(const G4String &str)
Definition: G4tgrUtils.cc:178
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:472
static G4int GetInt(const G4String &str)
Definition: G4tgrUtils.cc:427
static G4double GetDouble(const G4String &str, G4double unitval=1.)
Definition: G4tgrUtils.cc:203

Member Function Documentation

◆ GetA()

G4double G4tgrIsotope::GetA ( ) const
inline

Definition at line 63 of file G4tgrIsotope.hh.

63{ return theA; }

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetN()

G4int G4tgrIsotope::GetN ( ) const
inline

Definition at line 62 of file G4tgrIsotope.hh.

62{ return theN; }

Referenced by G4tgbIsotope::BuildG4Isotope().

◆ GetName()

const G4String & G4tgrIsotope::GetName ( ) const
inline

Definition at line 60 of file G4tgrIsotope.hh.

60{ return theName; }

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

◆ GetZ()

G4int G4tgrIsotope::GetZ ( ) const
inline

Definition at line 61 of file G4tgrIsotope.hh.

61{ return theZ; }

Referenced by G4tgbIsotope::BuildG4Isotope().

Friends And Related Function Documentation

◆ operator<<

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}

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