#include <G3EleTable.hh>
Public Member Functions | |
G3EleTable () | |
virtual | ~G3EleTable () |
G4Element * | GetEle (G4double Z) |
Definition at line 48 of file G3EleTable.hh.
G3EleTable::G3EleTable | ( | ) |
Definition at line 39 of file G3EleTable.cc.
00039 :_MaxEle(109){ 00040 _EleNames = new char*[_MaxEle]; 00041 // create an array of pointers to elements 00042 _Ele = new G4Element*[_MaxEle]; 00043 LoadUp(); 00044 }
G3EleTable::~G3EleTable | ( | ) | [virtual] |
Definition at line 52 of file G3EleTable.cc.
Referenced by G4gsmate(), and G4gsmixt().
00052 { 00053 G4double A; 00054 char name[20], sym[3]; 00055 G4int index = (G4int) Z-1; 00056 if (!parse(Z, name, sym, A)) { 00057 G4String na(name); 00058 G4String sy(sym); 00059 if (_Ele[index] == 0) { 00060 // add an element to the element table here 00061 _Ele[index] = new G4Element(na, sy, Z, A*g/mole); 00062 } 00063 } 00064 return _Ele[index]; 00065 }