Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

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
static constexpr double mole
Definition: G4SIunits.hh:286

Here is the call graph for this function:

Member Function Documentation

G4double G4tgrIsotope::GetA ( ) const
inline

Definition at line 63 of file G4tgrIsotope.hh.

63 { return theA; }

Here is the caller graph for this function:

G4int G4tgrIsotope::GetN ( ) const
inline

Definition at line 62 of file G4tgrIsotope.hh.

62 { return theN; }

Here is the caller graph for this function:

const G4String& G4tgrIsotope::GetName ( void  ) const
inline

Definition at line 60 of file G4tgrIsotope.hh.

60 { return theName; }

Here is the caller graph for this function:

G4int G4tgrIsotope::GetZ ( ) const
inline

Definition at line 61 of file G4tgrIsotope.hh.

61 { return theZ; }

Here is the caller graph for this function:

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: