Geant4 10.7.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 42 of file G4tgrElementSimple.hh.

Constructor & Destructor Documentation

◆ G4tgrElementSimple() [1/2]

G4tgrElementSimple::G4tgrElementSimple ( )

Definition at line 38 of file G4tgrElementSimple.cc.

39{
40}

◆ ~G4tgrElementSimple()

G4tgrElementSimple::~G4tgrElementSimple ( )

Definition at line 43 of file G4tgrElementSimple.cc.

44{
45}

◆ G4tgrElementSimple() [2/2]

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

Definition at line 48 of file G4tgrElementSimple.cc.

49{
50 //---------- Check for miminum number of words read
52 "G4tgrElementSimple::G4tgrElementSimple");
53
54 theType = "ElementSimple";
57 theZ = G4tgrUtils::GetInt(wl[3]);
58 theA = G4tgrUtils::GetDouble(wl[4], g / mole);
59
60#ifdef G4VERBOSE
62 {
63 G4cout << " Created " << *this << G4endl;
64 }
65#endif
66}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
@ WLSIZE_EQ
Definition: G4tgrUtils.hh:47
G4String theName
Definition: G4tgrElement.hh:52
G4String theSymbol
Definition: G4tgrElement.hh:53
G4String theType
Definition: G4tgrElement.hh:54
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

Member Function Documentation

◆ GetA()

G4double G4tgrElementSimple::GetA ( ) const
inline

Definition at line 54 of file G4tgrElementSimple.hh.

54{ return theA; }

Referenced by G4tgbElement::BuildG4ElementSimple().

◆ GetZ()

G4double G4tgrElementSimple::GetZ ( ) const
inline

Definition at line 53 of file G4tgrElementSimple.hh.

53{ 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 69 of file G4tgrElementSimple.cc.

70{
71 os << "G4tgrElementSimple= " << obj.theName << " Z = " << obj.theZ
72 << " A= " << obj.theA << G4endl;
73
74 return os;
75}

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