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

#include <G4tgbMaterialSimple.hh>

+ Inheritance diagram for G4tgbMaterialSimple:

Public Member Functions

 G4tgbMaterialSimple ()
 
 ~G4tgbMaterialSimple ()
 
 G4tgbMaterialSimple (G4tgrMaterial *tgr)
 
G4MaterialBuildG4Material ()
 
G4double GetZ () const
 
G4double GetA () const
 
- Public Member Functions inherited from G4tgbMaterial
 G4tgbMaterial ()
 
virtual ~G4tgbMaterial ()
 
 G4tgbMaterial (G4tgrMaterial *tgr)
 
virtual G4MaterialBuildG4Material ()=0
 
const G4StringGetName () const
 
G4double GetDensity () const
 
G4int GetNumberOfMaterials () const
 
G4double GetA () const
 
G4double GetZ () const
 
const G4StringGetType () const
 
G4tgrMaterialGetTgrMate () const
 

Friends

std::ostream & operator<< (std::ostream &, const G4tgbMaterialSimple &)
 

Additional Inherited Members

- Protected Attributes inherited from G4tgbMaterial
G4tgrMaterialtheTgrMate = nullptr
 
G4MaterialtheG4Mate = nullptr
 

Detailed Description

Definition at line 42 of file G4tgbMaterialSimple.hh.

Constructor & Destructor Documentation

◆ G4tgbMaterialSimple() [1/2]

G4tgbMaterialSimple::G4tgbMaterialSimple ( )

Definition at line 38 of file G4tgbMaterialSimple.cc.

39{
40}

◆ ~G4tgbMaterialSimple()

G4tgbMaterialSimple::~G4tgbMaterialSimple ( )

Definition at line 43 of file G4tgbMaterialSimple.cc.

44{
45}

◆ G4tgbMaterialSimple() [2/2]

G4tgbMaterialSimple::G4tgbMaterialSimple ( G4tgrMaterial tgr)

Definition at line 48 of file G4tgbMaterialSimple.cc.

49{
50 theTgrMate = hgmate;
51 G4tgrMaterialSimple* matesimp = static_cast<G4tgrMaterialSimple*>(hgmate);
52 theZ = matesimp->GetZ();
53 theA = matesimp->GetA();
54}
G4tgrMaterial * theTgrMate

Member Function Documentation

◆ BuildG4Material()

G4Material * G4tgbMaterialSimple::BuildG4Material ( )
virtual

Implements G4tgbMaterial.

Definition at line 57 of file G4tgbMaterialSimple.cc.

58{
59 //----- construct new G4Material with no components (only itself)
60
61 G4Material* mate =
63 kStateUndefined, STP_Temperature);
64
65#ifdef G4VERBOSE
67 {
68 G4cout << " Constructing new G4Material simple: " << *mate << G4endl;
69 }
70#endif
71
72 return mate;
73}
@ kStateUndefined
Definition: G4Material.hh:111
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
G4double GetDensity() const
static G4int GetVerboseLevel()

◆ GetA()

G4double G4tgbMaterialSimple::GetA ( ) const
inline

Definition at line 58 of file G4tgbMaterialSimple.hh.

58{ return theA; }

Referenced by BuildG4Material().

◆ GetZ()

G4double G4tgbMaterialSimple::GetZ ( ) const
inline

Definition at line 57 of file G4tgbMaterialSimple.hh.

57{ return theZ; }

Referenced by BuildG4Material().

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const G4tgbMaterialSimple mate 
)
friend

Definition at line 76 of file G4tgbMaterialSimple.cc.

77{
78 os << "Simple Material: " << mate.GetName() << G4endl
79 << " Z = " << mate.GetZ() << " A = " << mate.GetA()
80 << " density = " << mate.GetDensity() << G4endl;
81 return os;
82}
G4double GetDensity() const

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