Geant4 9.6.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
 
G4MaterialtheG4Mate
 

Detailed Description

Definition at line 51 of file G4tgbMaterialSimple.hh.

Constructor & Destructor Documentation

◆ G4tgbMaterialSimple() [1/2]

G4tgbMaterialSimple::G4tgbMaterialSimple ( )

Definition at line 43 of file G4tgbMaterialSimple.cc.

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

◆ ~G4tgbMaterialSimple()

G4tgbMaterialSimple::~G4tgbMaterialSimple ( )

Definition at line 50 of file G4tgbMaterialSimple.cc.

51{
52}

◆ G4tgbMaterialSimple() [2/2]

G4tgbMaterialSimple::G4tgbMaterialSimple ( G4tgrMaterial tgr)

Definition at line 56 of file G4tgbMaterialSimple.cc.

57{
58 theTgrMate = hgmate;
59 G4tgrMaterialSimple* matesimp = static_cast<G4tgrMaterialSimple*>(hgmate);
60 theZ = matesimp->GetZ();
61 theA = matesimp->GetA();
62}
G4tgrMaterial * theTgrMate

Member Function Documentation

◆ BuildG4Material()

G4Material * G4tgbMaterialSimple::BuildG4Material ( )
virtual

Implements G4tgbMaterial.

Definition at line 66 of file G4tgbMaterialSimple.cc.

67{
68 //----- construct new G4Material with no components (only itself)
69
70 G4Material* mate = new G4Material( GetName(), GetZ(), GetA(),
72 kStateUndefined, STP_Temperature );
73
74#ifdef G4VERBOSE
76 {
77 G4cout << " Constructing new G4Material simple: " << *mate << G4endl;
78 }
79#endif
80
81 return mate;
82}
@ kStateUndefined
Definition: G4Material.hh:114
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetName() const
G4double GetDensity() const
static G4int GetVerboseLevel()

◆ GetA()

G4double G4tgbMaterialSimple::GetA ( ) const
inline

Definition at line 68 of file G4tgbMaterialSimple.hh.

68{return theA;}

Referenced by BuildG4Material().

◆ GetZ()

G4double G4tgbMaterialSimple::GetZ ( ) const
inline

Definition at line 67 of file G4tgbMaterialSimple.hh.

67{return theZ;}

Referenced by BuildG4Material().

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 86 of file G4tgbMaterialSimple.cc.

87{
88 os << "Simple Material: " << mate.GetName() << G4endl
89 << " Z = " << mate.GetZ()
90 << " A = " << mate.GetA()
91 << " density = " << mate.GetDensity() << G4endl;
92 return os;
93}
G4double GetDensity() const

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