Changeset 921 for trunk/source/materials/include
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (17 years ago)
- Location:
- trunk/source/materials/include
- Files:
-
- 3 edited
-
G4Element.hh (modified) (7 diffs)
-
G4Isotope.hh (modified) (5 diffs)
-
G4Material.hh (modified) (7 diffs)
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: -
trunk/source/materials/include/G4Isotope.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4Isotope.hh,v 1.2 0 2008/08/11 11:53:11 vnivanchExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Isotope.hh,v 1.21 2008/11/14 15:14:24 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 74 74 75 75 // Make an isotope 76 // 76 77 G4Isotope(const G4String& name, //its name 77 78 G4int z, //atomic number … … 82 83 83 84 // Retrieval methods 84 G4String GetName() const {return fName;}; 85 G4int GetZ() const {return fZ;}; 86 G4int GetN() const {return fN;}; 87 G4double GetA() const {return fA;}; 85 // 86 const G4String& GetName() const {return fName;} 87 G4int GetZ() const {return fZ;} 88 G4int GetN() const {return fN;} 89 G4double GetA() const {return fA;} 88 90 89 G4int GetCountUse() const {return fCountUse;}; 90 void increaseCountUse() {fCountUse++;}; 91 void decreaseCountUse() {fCountUse--;}; 91 G4int GetCountUse() const {return fCountUse;} 92 92 93 93 static … … 100 100 size_t GetNumberOfIsotopes(); 101 101 102 size_t GetIndex() const {return fIndexInTable;} ;102 size_t GetIndex() const {return fIndexInTable;} 103 103 104 104 friend … … 121 121 // persistifiable objects. 122 122 123 void SetName(const G4String& name) {fName=name;} 124 void increaseCountUse() {fCountUse++;} 125 void decreaseCountUse() {fCountUse--;} 126 123 127 private: 124 128 125 129 G4Isotope(G4Isotope&); 126 130 G4Isotope& operator=(const G4Isotope&); 127 131 128 132 private: 129 133 -
trunk/source/materials/include/G4Material.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4Material.hh,v 1.2 6 2008/08/13 16:06:42 vnivanchExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Material.hh,v 1.27 2008/11/14 15:14:24 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 … … 103 103 class G4Material 104 104 { 105 public: // with description105 public: // with description 106 106 107 107 // … … 145 145 virtual ~G4Material(); 146 146 147 void SetChemicalFormula (const G4String& chF) {fChemicalFormula=chF;};148 147 void SetChemicalFormula (const G4String& chF) {fChemicalFormula=chF;} 148 149 149 // 150 150 // retrieval methods 151 151 // 152 G4String GetName() const {return fName;}; 153 G4String GetChemicalFormula() const {return fChemicalFormula;}; 154 G4double GetDensity() const {return fDensity;}; 155 156 G4State GetState() const {return fState;}; 157 G4double GetTemperature() const {return fTemp;}; 158 G4double GetPressure() const {return fPressure;}; 152 const G4String& GetName() const {return fName;} 153 const G4String& GetChemicalFormula() const {return fChemicalFormula;} 154 G4double GetDensity() const {return fDensity;} 155 G4State GetState() const {return fState;} 156 G4double GetTemperature() const {return fTemp;} 157 G4double GetPressure() const {return fPressure;} 159 158 160 159 //number of elements constituing this material: 161 size_t GetNumberOfElements() const {return fNumberOfElements;} ;160 size_t GetNumberOfElements() const {return fNumberOfElements;} 162 161 163 162 //vector of pointers to elements constituing this material: 164 163 const 165 G4ElementVector* GetElementVector() const {return theElementVector;} ;164 G4ElementVector* GetElementVector() const {return theElementVector;} 166 165 167 166 //vector of fractional mass of each element: 168 const G4double* GetFractionVector() const {return fMassFractionVector;} ;167 const G4double* GetFractionVector() const {return fMassFractionVector;} 169 168 170 169 //vector of atom count of each element: 171 const G4int* GetAtomsVector() const {return fAtomsVector;} ;170 const G4int* GetAtomsVector() const {return fAtomsVector;} 172 171 173 172 //return a pointer to an element, given its index in the material: 174 173 const 175 G4Element* GetElement(G4int iel) const {return (*theElementVector)[iel];} ;174 G4Element* GetElement(G4int iel) const {return (*theElementVector)[iel];} 176 175 177 176 //vector of nb of atoms per volume of each element in this material: 178 177 const 179 G4double* GetVecNbOfAtomsPerVolume() const {return VecNbOfAtomsPerVolume;} ;178 G4double* GetVecNbOfAtomsPerVolume() const {return VecNbOfAtomsPerVolume;} 180 179 //total number of atoms per volume: 181 G4double GetTotNbOfAtomsPerVolume() const {return TotNbOfAtomsPerVolume;} ;180 G4double GetTotNbOfAtomsPerVolume() const {return TotNbOfAtomsPerVolume;} 182 181 //total number of electrons per volume: 183 G4double GetTotNbOfElectPerVolume() const {return TotNbOfElectPerVolume;} ;182 G4double GetTotNbOfElectPerVolume() const {return TotNbOfElectPerVolume;} 184 183 185 184 //obsolete names (5-10-98) see the 2 functions above 186 185 const 187 G4double* GetAtomicNumDensityVector() const {return VecNbOfAtomsPerVolume;} ;188 G4double GetElectronDensity() const {return TotNbOfElectPerVolume;} ;186 G4double* GetAtomicNumDensityVector() const {return VecNbOfAtomsPerVolume;} 187 G4double GetElectronDensity() const {return TotNbOfElectPerVolume;} 189 188 190 189 // Radiation length: 191 G4double GetRadlen() const {return fRadlen;} ;190 G4double GetRadlen() const {return fRadlen;} 192 191 193 192 // Nuclear interaction length: 194 G4double GetNuclearInterLength() const {return fNuclInterLen;} ;193 G4double GetNuclearInterLength() const {return fNuclInterLen;} 195 194 196 195 // ionisation parameters: 197 G4IonisParamMat* GetIonisation() const {return fIonisation;} ;196 G4IonisParamMat* GetIonisation() const {return fIonisation;} 198 197 199 198 // Sandia table: 200 G4SandiaTable* GetSandiaTable() const {return fSandiaTable;} ;199 G4SandiaTable* GetSandiaTable() const {return fSandiaTable;} 201 200 202 201 //meaningful only for single material: … … 206 205 //the MaterialPropertiesTable (if any) attached to this material: 207 206 void SetMaterialPropertiesTable(G4MaterialPropertiesTable* anMPT) 208 {fMaterialPropertiesTable = anMPT;} ;207 {fMaterialPropertiesTable = anMPT;} 209 208 210 209 G4MaterialPropertiesTable* GetMaterialPropertiesTable() const 211 {return fMaterialPropertiesTable;} ;210 {return fMaterialPropertiesTable;} 212 211 213 212 //the (static) Table of Materials: … … 220 219 221 220 //the index of this material in the Table: 222 size_t GetIndex() const {return fIndexInTable;} ;221 size_t GetIndex() const {return fIndexInTable;} 223 222 224 223 //return pointer to a material, given its name: … … 232 231 friend std::ostream& operator<<(std::ostream&, G4MaterialTable); 233 232 234 public: // without description233 public: // without description 235 234 236 235 G4int operator==(const G4Material&) const; … … 241 240 // persistifiable objects. 242 241 243 private: 242 void SetName (const G4String& name) {fName=name;} 243 244 private: 244 245 245 246 G4Material(const G4Material&);
Note:
See TracChangeset
for help on using the changeset viewer.
