Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4tgrElementSimple Class Reference

#include <G4tgrElementSimple.hh>

Inheritance diagram for G4tgrElementSimple:
Collaboration diagram for G4tgrElementSimple:

Public Member Functions

 G4tgrElementSimple ()
 
 ~G4tgrElementSimple ()
 
 G4tgrElementSimple (const std::vector< G4String > &wl)
 
G4double GetZ () const
 
G4double GetA () const
 
- Public Member Functions inherited from G4tgrElement
 G4tgrElement ()
 
virtual ~G4tgrElement ()
 
const G4StringGetName () const
 
const G4StringGetSymbol () const
 
const G4StringGetType () const
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from G4tgrElement
G4String theName
 
G4String theSymbol
 
G4String theType
 

Detailed Description

Definition at line 49 of file G4tgrElementSimple.hh.

Constructor & Destructor Documentation

G4tgrElementSimple::G4tgrElementSimple ( )

Definition at line 43 of file G4tgrElementSimple.cc.

44  : theZ(0.), theA(0.)
45 {
46 }
G4tgrElementSimple::~G4tgrElementSimple ( )

Definition at line 50 of file G4tgrElementSimple.cc.

51 {
52 }
G4tgrElementSimple::G4tgrElementSimple ( const std::vector< G4String > &  wl)

Definition at line 56 of file G4tgrElementSimple.cc.

57 {
58  //---------- Check for miminum number of words read
60  "G4tgrElementSimple::G4tgrElementSimple");
61 
62  theType = "ElementSimple";
63  theName = G4tgrUtils::GetString( wl[1] );
65  theZ = G4tgrUtils::GetInt( wl[3] );
66  theA = G4tgrUtils::GetDouble( wl[4], g/mole);
67 
68 #ifdef G4VERBOSE
70  {
71  G4cout << " Created " << *this << G4endl;
72  }
73 #endif
74 }
G4String theType
Definition: G4tgrElement.hh:60
static void CheckWLsize(const std::vector< G4String > &wl, unsigned int nWCheck, WLSIZEtype st, const G4String &methodName)
Definition: G4tgrUtils.cc:475
static constexpr double g
Definition: G4SIunits.hh:183
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
G4String theSymbol
Definition: G4tgrElement.hh:59
#define G4endl
Definition: G4ios.hh:61
G4String theName
Definition: G4tgrElement.hh:58
static constexpr double mole
Definition: G4SIunits.hh:286

Here is the call graph for this function:

Member Function Documentation

G4double G4tgrElementSimple::GetA ( ) const
inline

Definition at line 61 of file G4tgrElementSimple.hh.

61 { return theA; }

Here is the caller graph for this function:

G4double G4tgrElementSimple::GetZ ( ) const
inline

Definition at line 60 of file G4tgrElementSimple.hh.

60 { return theZ; }

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 78 of file G4tgrElementSimple.cc.

79 {
80  os << "G4tgrElementSimple= " << obj.theName
81  << " Z = " << obj.theZ << " A= " << obj.theA << G4endl;
82 
83  return os;
84 }
#define G4endl
Definition: G4ios.hh:61
G4String theName
Definition: G4tgrElement.hh:58

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