Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
F04Materials Class Reference

#include <F04Materials.hh>

Public Member Functions

virtual ~F04Materials ()
 
G4MaterialGetMaterial (G4String)
 

Static Public Member Functions

static F04MaterialsGetInstance ()
 

Detailed Description

Definition at line 39 of file F04Materials.hh.

Constructor & Destructor Documentation

F04Materials::~F04Materials ( )
virtual

Definition at line 48 of file F04Materials.cc.

49 {
50  delete fVacuum;
51  delete fAir;
52  delete fSci;
53  delete fBeO;
54 }

Member Function Documentation

F04Materials * F04Materials::GetInstance ( void  )
static

Definition at line 60 of file F04Materials.cc.

61 {
62  if (fInstance == 0)
63  {
64  fInstance = new F04Materials();
65  }
66  return fInstance;
67 }

Here is the caller graph for this function:

G4Material * F04Materials::GetMaterial ( G4String  material)

Definition at line 71 of file F04Materials.cc.

72 {
73  G4Material* mat = fNistMan->FindOrBuildMaterial(material);
74 
75  if (!mat) mat = G4Material::GetMaterial(material);
76  if (!mat) {G4cout << material << "Not Found, Please Retry"<< G4endl;}
77 
78  return mat;
79 }
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
Definition: G4Material.cc:602
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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