Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4tgrElementSimple Class Reference

#include <G4tgrElementSimple.hh>

+ Inheritance 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() [1/2]

G4tgrElementSimple::G4tgrElementSimple ( )

Definition at line 43 of file G4tgrElementSimple.cc.

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

◆ ~G4tgrElementSimple()

G4tgrElementSimple::~G4tgrElementSimple ( )

Definition at line 50 of file G4tgrElementSimple.cc.

51{
52}

◆ G4tgrElementSimple() [2/2]

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";
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}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
@ WLSIZE_EQ
Definition: G4tgrUtils.hh:52
G4String theName
Definition: G4tgrElement.hh:58
G4String theSymbol
Definition: G4tgrElement.hh:59
G4String theType
Definition: G4tgrElement.hh:60
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 G4tgrElementSimple::GetA ( ) const
inline

Definition at line 61 of file G4tgrElementSimple.hh.

61{ return theA; }

Referenced by G4tgbElement::BuildG4ElementSimple().

◆ GetZ()

G4double G4tgrElementSimple::GetZ ( ) const
inline

Definition at line 60 of file G4tgrElementSimple.hh.

60{ return theZ; }

Referenced by G4tgbElement::BuildG4ElementSimple().

Friends And Related Function Documentation

◆ operator<<

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}

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