Changeset 921 for trunk/source/materials/include/G4Material.hh
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.