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

#include <XrayFluoNistMaterials.hh>

Public Member Functions

 ~XrayFluoNistMaterials ()
 
G4MaterialGetMaterial (G4String)
 

Static Public Member Functions

static XrayFluoNistMaterialsGetInstance ()
 

Detailed Description

Definition at line 45 of file XrayFluoNistMaterials.hh.

Constructor & Destructor Documentation

XrayFluoNistMaterials::~XrayFluoNistMaterials ( )

Definition at line 45 of file XrayFluoNistMaterials.cc.

46 {
47  delete dolorite;
48  delete HPGe;
49  delete SiLi;
50  delete mars1;
51  delete anorthosite;
52  delete basalt;
53  delete gabbro;
54  delete gabbroWD;
55  delete gabbroRF;
56  delete Air;
57  delete Sci;
58  delete Vacuum;
59  delete madaBasalt;
60  delete icelandicBasalt;
61  delete icelandicWD;
62  delete icelandicRF;
63  delete GaAs;
64  delete galactic;
65  delete copper;
66  // delete nickel;
67  delete hawaiianRF;
68  delete hawaiianWD;
69 
70 
71 
72 }

Member Function Documentation

XrayFluoNistMaterials * XrayFluoNistMaterials::GetInstance ( void  )
static

Definition at line 75 of file XrayFluoNistMaterials.cc.

76 {
77  if (instance == 0)
78  {
79  instance = new XrayFluoNistMaterials;
80 
81  }
82  return instance;
83 }
G4Material * XrayFluoNistMaterials::GetMaterial ( G4String  material)

Definition at line 85 of file XrayFluoNistMaterials.cc.

86 {
87 
88  //instancing G4NistManager
89  nistMan = G4NistManager::Instance();
90  nistMan->SetVerbose(0);
91 
92  //If not available at NIST, look for the local version of it
93  G4Material* mat = nistMan->FindOrBuildMaterial(material);
94  if (!mat) {
95  mat = G4Material::GetMaterial(material);
96  }
97  if (!mat) {G4cout << material << "Not Found, Please Retry"<< G4endl;}
98  return mat;
99 }
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
Definition: G4Material.cc:602
static G4NistManager * Instance()
G4GLOB_DLL std::ostream G4cout
void SetVerbose(G4int)
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

Here is the caller graph for this function:


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