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

#include <G4tgbMaterialSimple.hh>

Inheritance diagram for G4tgbMaterialSimple:
Collaboration 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)
 
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::G4tgbMaterialSimple ( )

Definition at line 43 of file G4tgbMaterialSimple.cc.

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

Definition at line 50 of file G4tgbMaterialSimple.cc.

51 {
52 }
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
G4double GetA() const
G4double GetZ() const

Here is the call graph for this function:

Member Function Documentation

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(),
73 
74 #ifdef G4VERBOSE
76  {
77  G4cout << " Constructing new G4Material simple: " << *mate << G4endl;
78  }
79 #endif
80 
81  return mate;
82 }
G4double GetDensity() const
G4double GetZ() const
static constexpr double STP_Temperature
G4GLOB_DLL std::ostream G4cout
G4tgrMaterial * theTgrMate
static G4int GetVerboseLevel()
G4double GetA() const
#define G4endl
Definition: G4ios.hh:61
const G4String & GetName() const

Here is the call graph for this function:

G4double G4tgbMaterialSimple::GetA ( ) const
inline

Definition at line 68 of file G4tgbMaterialSimple.hh.

68 {return theA;}

Here is the caller graph for this function:

G4double G4tgbMaterialSimple::GetZ ( ) const
inline

Definition at line 67 of file G4tgbMaterialSimple.hh.

67 {return theZ;}

Here is the caller graph for this function:

Friends And Related Function Documentation

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 GetZ() const
G4double GetDensity() const
G4double GetA() const
#define G4endl
Definition: G4ios.hh:61
const G4String & GetName() const

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