Changeset 921 for trunk/source/materials/include/G4Element.hh
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/materials/include/G4Element.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4Element.hh,v 1.2 2 2006/10/17 15:15:46 vnivanchExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Element.hh,v 1.23 2008/11/14 15:14:24 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 … … 118 118 // retrieval methods 119 119 // 120 G4String GetName() const {return fName;};121 G4String GetSymbol() const {return fSymbol;};122 G4double GetZ() const {return fZeff;} ;//atomic number123 G4double GetN() const {return fNeff;} ;//number of nucleons124 G4double GetA() const {return fAeff;} ;//mass of a mole120 const G4String& GetName() const {return fName;} 121 const G4String& GetSymbol() const {return fSymbol;} 122 G4double GetZ() const {return fZeff;} //atomic number 123 G4double GetN() const {return fNeff;} //number of nucleons 124 G4double GetA() const {return fAeff;} //mass of a mole 125 125 G4bool GetNaturalAbandancesFlag(); 126 126 … … 129 129 //the number of atomic shells in this element: 130 130 // 131 G4int GetNbOfAtomicShells() const {return fNbOfAtomicShells;} ;131 G4int GetNbOfAtomicShells() const {return fNbOfAtomicShells;} 132 132 133 133 //the binding energy of the shell: … … 137 137 //number of isotopes constituing this element: 138 138 // 139 size_t GetNumberOfIsotopes() const {return fNumberOfIsotopes;} ;139 size_t GetNumberOfIsotopes() const {return fNumberOfIsotopes;} 140 140 141 141 //vector of pointers to isotopes constituing this element: 142 142 // 143 G4IsotopeVector* GetIsotopeVector() const {return theIsotopeVector;} ;143 G4IsotopeVector* GetIsotopeVector() const {return theIsotopeVector;} 144 144 145 145 //vector of relative abundance of each isotope: 146 146 // 147 147 G4double* GetRelativeAbundanceVector() const 148 {return fRelativeAbundanceVector;} ;148 {return fRelativeAbundanceVector;} 149 149 150 150 const G4Isotope* GetIsotope(G4int iso) const 151 {return (*theIsotopeVector)[iso];} ;151 {return (*theIsotopeVector)[iso];} 152 152 153 153 //the (static) Table of Elements: … … 161 161 //the index of this element in the Table: 162 162 // 163 size_t GetIndex() const {return fIndexInTable;} ;163 size_t GetIndex() const {return fIndexInTable;} 164 164 165 165 //return pointer to an element, given its name: … … 170 170 //count number of materials which use this element 171 171 // 172 G4int GetCountUse() const {return fCountUse;} ;173 void increaseCountUse() {fCountUse++;} ;174 void decreaseCountUse() {fCountUse--;} ;172 G4int GetCountUse() const {return fCountUse;} 173 void increaseCountUse() {fCountUse++;} 174 void decreaseCountUse() {fCountUse--;} 175 175 176 176 //count elements with same Z 177 177 // 178 G4int GetIndexZ() const {return fIndexZ;} ;178 G4int GetIndexZ() const {return fIndexZ;} 179 179 180 180 //Coulomb correction factor: 181 181 // 182 G4double GetfCoulomb() const {return fCoulomb;} ;182 G4double GetfCoulomb() const {return fCoulomb;} 183 183 184 184 //Tsai formula for the radiation length: 185 185 // 186 G4double GetfRadTsai() const {return fRadTsai;} ;186 G4double GetfRadTsai() const {return fRadTsai;} 187 187 188 188 //pointer to ionisation parameters: 189 189 // 190 G4IonisParamElm* GetIonisation() const {return fIonisation;} ;190 G4IonisParamElm* GetIonisation() const {return fIonisation;} 191 191 192 192 // printing methods … … 205 205 // persistency for clients requiring preallocation of memory for 206 206 // persistifiable objects. 207 208 void SetName(const G4String& name) {fName=name;} 207 209 208 210 private:
Note: See TracChangeset
for help on using the changeset viewer.