Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 << 25 // >> 26 // $Id: G4NistManager.hh,v 1.9 2006/10/17 15:15:46 vnivanch Exp $ >> 27 // GEANT4 tag $Name: geant4-08-02 $ >> 28 // >> 29 // 26 // ------------------------------------------- 30 // ------------------------------------------------------------------- 27 // 31 // 28 // GEANT4 Class header file 32 // GEANT4 Class header file 29 // 33 // 30 // File name: G4NistManager 34 // File name: G4NistManager 31 // 35 // 32 // Author: Vladimir Ivanchenko 36 // Author: Vladimir Ivanchenko 33 // 37 // 34 // Creation date: 23.12.2004 38 // Creation date: 23.12.2004 35 // 39 // 36 // Modifications: 40 // Modifications: 37 // 27.02.06 V.Ivanchneko add GetAtomicMassAmu 41 // 27.02.06 V.Ivanchneko add GetAtomicMassAmu and ConstructNewGasMaterial 38 // 11.05.06 V.Ivanchneko add warning flag to F 42 // 11.05.06 V.Ivanchneko add warning flag to FindMaterial method 39 // 17.10.06 V.Ivanchneko add methods: GetAtomi 43 // 17.10.06 V.Ivanchneko add methods: GetAtomicMass, GetNistElementNames, 40 // GetNistMaterialNames 44 // GetNistMaterialNames 41 // 02.05.07 V.Ivanchneko add GetNistFirstIsoto << 42 // 28.07.07 V.Ivanchneko make simple methods i << 43 // 28.10.07 V.Ivanchneko add state, T, P to ma << 44 // 29.04.10 V.Ivanchneko add GetMeanIonisation << 45 // 01.11.10 V.Ivanchneko add G4Pow for fast co << 46 // 09.02.12 P.Gumplinger add ConstructNewIdeal << 47 // 45 // 48 // Class Description: 46 // Class Description: 49 // 47 // 50 // A utility static class 48 // A utility static class 51 // 49 // >> 50 >> 51 // ------------------------------------------------------------------- >> 52 // >> 53 // Class Description: >> 54 // 52 // Element data from the NIST DB on Atomic Wei 55 // Element data from the NIST DB on Atomic Weights and Isotope Compositions 53 // http://physics.nist.gov/PhysRefData/Composi 56 // http://physics.nist.gov/PhysRefData/Compositions/index.html 54 // 57 // 55 // ------------------------------------------- 58 // ------------------------------------------------------------------- >> 59 // 56 60 57 #ifndef G4NistManager_h 61 #ifndef G4NistManager_h 58 #define G4NistManager_h 1 62 #define G4NistManager_h 1 59 63 60 #include "G4ICRU90StoppingData.hh" << 64 #include <vector> >> 65 #include "globals.hh" 61 #include "G4Material.hh" 66 #include "G4Material.hh" 62 #include "G4Element.hh" << 63 #include "G4Isotope.hh" << 64 #include "G4NistElementBuilder.hh" 67 #include "G4NistElementBuilder.hh" 65 #include "G4NistMaterialBuilder.hh" << 66 #include "G4Pow.hh" << 67 #include "globals.hh" << 68 << 69 #include <CLHEP/Units/PhysicalConstants.h> << 70 << 71 #include <vector> << 72 68 >> 69 class G4NistMaterialBuilder; 73 class G4NistMessenger; 70 class G4NistMessenger; 74 71 >> 72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... >> 73 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... >> 74 75 class G4NistManager 75 class G4NistManager 76 { 76 { 77 public: << 77 >> 78 public: >> 79 78 static G4NistManager* Instance(); 80 static G4NistManager* Instance(); 79 ~G4NistManager(); 81 ~G4NistManager(); 80 82 81 // Get G4Element by index << 83 // Elements 82 // << 84 // 83 inline G4Element* GetElement(std::size_t ind << 85 void RegisterElement (G4Element*); >> 86 void DeRegisterElement(G4Element*); 84 87 >> 88 G4Element* GetElement(size_t index); >> 89 85 // Find or build G4Element by atomic number 90 // Find or build G4Element by atomic number 86 // << 91 G4Element* FindOrBuildElement(G4int Z, G4bool isotopes=true); 87 inline G4Element* FindElement(G4int Z) const << 92 88 inline G4Element* FindOrBuildElement(G4int Z << 89 << 90 // Find or build G4Element by symbol 93 // Find or build G4Element by symbol 91 // << 94 G4Element* FindOrBuildElement(const G4String& symb, G4bool isotopes=true); 92 inline G4Element* FindOrBuildElement(const G << 93 95 94 // Get number of elements << 96 size_t GetNumberOfElements() const; 95 // << 97 G4int GetZ(const G4String& symb) const; 96 inline std::size_t GetNumberOfElements() con << 97 98 98 // Get atomic number by element symbol << 99 // Mass in amu 99 // << 100 G4double GetAtomicMassAmu(G4int Z) const; 100 inline G4int GetZ(const G4String& symb) cons << 101 101 102 // Get atomic weight by element symbol - mea << 102 // Mass in Geant4 units 103 // an atom with electron shell for the natur << 103 G4double GetIsotopeMass(G4int Z, G4int N) const; 104 // << 104 G4double GetAtomicMass(G4int Z, G4int N) const; 105 inline G4double GetAtomicMassAmu(const G4Str << 105 106 << 106 G4double GetIsotopeAbundance(G4int Z, G4int N) const; 107 // Get atomic weight in atomic units - mean << 107 108 // with electron shell for the natural isoto << 108 void PrintElement(const G4String&); 109 // << 109 void PrintElement(G4int Z); 110 inline G4double GetAtomicMassAmu(G4int Z) co << 110 111 << 111 void PrintG4Element(const G4String&); 112 // Get mass of isotope without electron shel << 112 113 // << 113 const std::vector<G4String>& GetNistElementNames() const; 114 inline G4double GetIsotopeMass(G4int Z, G4in << 114 115 << 115 // Materials 116 // Get mass in Geant4 energy units of an ato << 116 // 117 // with the electron shell << 117 void RegisterMaterial (G4Material*); 118 // << 118 void DeRegisterMaterial(G4Material*); 119 inline G4double GetAtomicMass(G4int Z, G4int << 119 120 << 120 G4Material* GetMaterial(size_t index); 121 // Get total ionisation energy of an atom << 121 122 // << 122 // Find or build a G4Material by name, from the dataBase 123 inline G4double GetTotalElectronBindingEnerg << 123 // 124 << 124 G4Material* FindOrBuildMaterial(const G4String& name, G4bool isotopes=true, 125 // Get N for the first natural isotope << 125 G4bool warning=false); 126 // << 126 127 inline G4int GetNistFirstIsotopeN(G4int Z) c << 127 // construct a G4Material from scratch by atome count 128 << 128 // 129 // Get number of natural isotopes << 129 G4Material* ConstructNewMaterial(const G4String& name, 130 // << 130 const std::vector<G4String>& elm, 131 inline G4int GetNumberOfNistIsotopes(G4int Z << 131 const std::vector<G4int>& nbAtoms, 132 << 132 G4double dens, G4bool isotopes=true); 133 // Get natural isotope abundance << 133 134 // << 134 // construct a G4Material from scratch by fraction mass 135 inline G4double GetIsotopeAbundance(G4int Z, << 135 // 136 << 136 G4Material* ConstructNewMaterial(const G4String& name, 137 // Print element by Z << 137 const std::vector<G4String>& elm, 138 // << 138 const std::vector<G4double>& weight, 139 inline void PrintElement(G4int Z) const; << 139 G4double dens, G4bool isotopes=true); 140 << 140 141 // Print element from internal DB by symbol, << 141 // construct a gas G4Material from scratch by atome count 142 // << 142 // 143 void PrintElement(const G4String&) const; << 143 G4Material* ConstructNewGasMaterial(const G4String& name, 144 << 144 const G4String& nameNist, 145 // Print G4Element by name, if "all" - print << 145 G4double temp, G4double pres, 146 // << 146 G4bool isotopes=true); 147 void PrintG4Element(const G4String&) const; << 148 << 149 // Access to the vector of Geant4 predefined << 150 // << 151 inline const std::vector<G4String>& GetNistE << 152 << 153 // Access mean ionisation energy for atoms ( << 154 // << 155 inline G4double GetMeanIonisationEnergy(G4in << 156 << 157 // Access nominal density by atomic number f << 158 // by the index for other NIST materials << 159 // << 160 inline G4double GetNominalDensity(G4int Z) c << 161 << 162 // Get G4Material by index << 163 // << 164 inline G4Material* GetMaterial(std::size_t i << 165 << 166 // Find or build a G4Material by name, from << 167 // << 168 inline G4Material* FindMaterial(const G4Stri << 169 inline G4Material* FindOrBuildMaterial( << 170 const G4String& name, G4bool isotopes = tr << 171 << 172 // Find or build a simple material via atomi << 173 // << 174 inline G4Material* FindSimpleMaterial(G4int << 175 inline G4Material* FindOrBuildSimpleMaterial << 176 << 177 // Build G4Material with user defined name a << 178 // of a material from Geant4 dataBase << 179 // << 180 G4Material* BuildMaterialWithNewDensity(cons << 181 G4double density = 0.0, G4double temp = NT << 182 << 183 // Construct a G4Material from scratch by at << 184 // temperature and pressure should be consis << 185 // << 186 inline G4Material* ConstructNewMaterial(cons << 187 const std::vector<G4int>& nbAtoms, G4doubl << 188 G4State state = kStateSolid, G4double temp << 189 G4double pressure = CLHEP::STP_Pressure); << 190 << 191 // Construct a G4Material from scratch by fr << 192 // temperature and pressure should be consis << 193 // << 194 inline G4Material* ConstructNewMaterial(cons << 195 const std::vector<G4double>& weight, G4dou << 196 G4State state = kStateSolid, G4double temp << 197 G4double pressure = CLHEP::STP_Pressure); << 198 << 199 // Construct a gas G4Material from scratch b << 200 // << 201 inline G4Material* ConstructNewGasMaterial(c << 202 G4double temp, G4double pres, G4bool isoto << 203 << 204 // Construct an ideal gas G4Material from sc << 205 // << 206 inline G4Material* ConstructNewIdealGasMater << 207 const std::vector<G4String>& elm, const st << 208 G4double temp = NTP_Temperature, G4double << 209 << 210 // enable/disable density effect calculator << 211 // << 212 void SetDensityEffectCalculatorFlag(const G4 << 213 << 214 // enable/disable density effect calculator << 215 // << 216 void SetDensityEffectCalculatorFlag(G4Materi << 217 << 218 // Get number of G4Materials << 219 // << 220 inline std::size_t GetNumberOfMaterials() co << 221 << 222 inline G4int GetVerbose() const; << 223 147 >> 148 size_t GetNumberOfMaterials() {return nMaterials;}; >> 149 224 void SetVerbose(G4int); 150 void SetVerbose(G4int); >> 151 G4int GetVerbose(); 225 152 226 // Print G4Material by name << 153 void ListMaterials(const G4String&); 227 // << 154 void PrintG4Material(const G4String&); 228 void PrintG4Material(const G4String&) const; << 229 << 230 // Print predefined Geant4 materials: << 231 // "simple" - only pure materials in basic s << 232 // "compound" - NIST compounds << 233 // "hep" - HEP materials and compounds << 234 // "bio" - bio-medical materials and compoun << 235 // "all" - all << 236 // << 237 inline void ListMaterials(const G4String&) c << 238 << 239 // Access to the list of names of Geant4 pre << 240 // << 241 inline const std::vector<G4String>& GetNistM << 242 << 243 // Fast computation of Z^1/3 << 244 // << 245 inline G4double GetZ13(G4double Z) const; << 246 inline G4double GetZ13(G4int Z) const; << 247 155 248 // Fast computation of A^0.27 for natuaral a << 156 const std::vector<G4String>& GetNistMaterialNames() const; 249 // << 250 inline G4double GetA27(G4int Z) const; << 251 << 252 // Fast computation of log(A) << 253 // << 254 inline G4double GetLOGZ(G4int Z) const; << 255 inline G4double GetLOGAMU(G4int Z) const; << 256 157 257 G4ICRU90StoppingData* GetICRU90StoppingData( << 158 private: 258 159 259 private: << 260 G4NistManager(); 160 G4NistManager(); 261 << 161 static G4NistManager* instance; 262 std::vector<G4Element*> elements; << 162 263 std::vector<G4Material*> materials; << 163 std::vector<G4Element*> elements; 264 << 164 std::vector<G4Material*> materials; 265 G4ICRU90StoppingData* fICRU90; << 165 266 G4NistElementBuilder* elmBuilder; << 166 size_t nElements; 267 G4NistMaterialBuilder* matBuilder; << 167 size_t nMaterials; 268 G4NistMessenger* messenger; << 168 269 G4Pow* g4pow; << 169 G4int verbose; 270 const G4MaterialTable* theMaterialTable; << 170 271 const G4ElementTable* theElementTable; << 171 G4NistElementBuilder* elmBuilder; 272 const G4IsotopeTable* theIsotopeTable; << 172 G4NistMaterialBuilder* matBuilder; 273 << 173 G4NistMessenger* messenger; 274 G4double POWERA27[101]; << 275 G4double LOGAZ[101]; << 276 << 277 std::size_t nElements; << 278 std::size_t nMaterials; << 279 G4int verbose; << 280 }; 174 }; 281 175 282 //....oooOO0OOooo........oooOO0OOooo........oo 176 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 283 << 284 inline std::size_t G4NistManager::GetNumberOfM << 285 << 286 //....oooOO0OOooo........oooOO0OOooo........oo 177 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 287 178 288 inline G4Element* G4NistManager::GetElement(st << 179 inline >> 180 G4Element* G4NistManager::GetElement(size_t index) 289 { 181 { 290 return (index < theElementTable->size()) ? ( << 182 G4Element* elm = 0; >> 183 if(index < nElements) elm = elements[index]; >> 184 return elm; 291 } 185 } 292 186 293 //....oooOO0OOooo........oooOO0OOooo........oo 187 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 294 188 295 inline G4Element* G4NistManager::FindElement(G << 189 inline 296 << 190 G4Element* G4NistManager::FindOrBuildElement(G4int Z, G4bool isotopes) 297 //....oooOO0OOooo........oooOO0OOooo........oo << 298 << 299 inline G4Element* G4NistManager::FindOrBuildEl << 300 { 191 { 301 return elmBuilder->FindOrBuildElement(Z, iso 192 return elmBuilder->FindOrBuildElement(Z, isotopes); 302 } 193 } 303 194 304 //....oooOO0OOooo........oooOO0OOooo........oo 195 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 305 196 306 inline G4Element* G4NistManager::FindOrBuildEl << 197 inline >> 198 G4Element* G4NistManager::FindOrBuildElement(const G4String& symb, >> 199 G4bool isotopes) 307 { 200 { 308 return elmBuilder->FindOrBuildElement(symb, 201 return elmBuilder->FindOrBuildElement(symb, isotopes); 309 } 202 } 310 203 311 //....oooOO0OOooo........oooOO0OOooo........oo 204 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 312 205 313 inline std::size_t G4NistManager::GetNumberOfE << 206 inline 314 << 207 size_t G4NistManager::GetNumberOfElements() const 315 //....oooOO0OOooo........oooOO0OOooo........oo << 208 { 316 << 209 return nElements; 317 inline G4int G4NistManager::GetZ(const G4Strin << 210 } 318 211 319 //....oooOO0OOooo........oooOO0OOooo........oo 212 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 320 213 321 inline G4double G4NistManager::GetAtomicMassAm << 214 inline >> 215 G4int G4NistManager::GetZ(const G4String& symb) const 322 { 216 { 323 return elmBuilder->GetAtomicMassAmu(symb); << 217 return elmBuilder->GetZ(symb); 324 } 218 } 325 219 326 //....oooOO0OOooo........oooOO0OOooo........oo 220 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 327 221 328 inline G4double G4NistManager::GetAtomicMassAm << 222 inline >> 223 G4double G4NistManager::GetAtomicMassAmu(G4int Z) const 329 { 224 { 330 return elmBuilder->GetAtomicMassAmu(Z); << 225 return elmBuilder->GetA(Z); 331 } 226 } 332 227 333 //....oooOO0OOooo........oooOO0OOooo........oo 228 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 334 229 335 inline G4double G4NistManager::GetIsotopeMass( << 230 inline >> 231 G4double G4NistManager::GetIsotopeMass(G4int Z, G4int N) const 336 { 232 { 337 return elmBuilder->GetIsotopeMass(Z, N); 233 return elmBuilder->GetIsotopeMass(Z, N); 338 } 234 } 339 235 340 //....oooOO0OOooo........oooOO0OOooo........oo 236 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 341 237 342 inline G4double G4NistManager::GetAtomicMass(G << 238 inline >> 239 G4double G4NistManager::GetAtomicMass(G4int Z, G4int N) const 343 { 240 { 344 return elmBuilder->GetAtomicMass(Z, N); 241 return elmBuilder->GetAtomicMass(Z, N); 345 } 242 } 346 243 347 //....oooOO0OOooo........oooOO0OOooo........oo 244 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 348 245 349 inline G4double G4NistManager::GetTotalElectro << 246 inline 350 { << 247 G4double G4NistManager::GetIsotopeAbundance(G4int Z, G4int N) const 351 return elmBuilder->GetTotalElectronBindingEn << 352 } << 353 << 354 //....oooOO0OOooo........oooOO0OOooo........oo << 355 << 356 inline G4double G4NistManager::GetIsotopeAbund << 357 { 248 { 358 return elmBuilder->GetIsotopeAbundance(Z, N) 249 return elmBuilder->GetIsotopeAbundance(Z, N); 359 } 250 } 360 251 361 //....oooOO0OOooo........oooOO0OOooo........oo 252 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 362 253 363 inline G4int G4NistManager::GetNistFirstIsotop << 254 inline 364 { << 255 const std::vector<G4String>& G4NistManager::GetNistElementNames() const 365 return elmBuilder->GetNistFirstIsotopeN(Z); << 366 } << 367 << 368 //....oooOO0OOooo........oooOO0OOooo........oo << 369 << 370 inline G4int G4NistManager::GetNumberOfNistIso << 371 { << 372 return elmBuilder->GetNumberOfNistIsotopes(Z << 373 } << 374 << 375 //....oooOO0OOooo........oooOO0OOooo........oo << 376 << 377 inline const std::vector<G4String>& G4NistMana << 378 { 256 { 379 return elmBuilder->GetElementNames(); 257 return elmBuilder->GetElementNames(); 380 } 258 } 381 259 382 //....oooOO0OOooo........oooOO0OOooo........oo 260 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 383 261 384 inline G4double G4NistManager::GetMeanIonisati << 262 inline 385 { << 263 G4Material* G4NistManager::GetMaterial(size_t index) 386 return matBuilder->GetMeanIonisationEnergy(Z << 387 } << 388 << 389 //....oooOO0OOooo........oooOO0OOooo........oo << 390 << 391 inline G4double G4NistManager::GetNominalDensi << 392 { << 393 return matBuilder->GetNominalDensity(Z); << 394 } << 395 << 396 //....oooOO0OOooo........oooOO0OOooo........oo << 397 << 398 inline void G4NistManager::PrintElement(G4int << 399 << 400 //....oooOO0OOooo........oooOO0OOooo........oo << 401 << 402 inline G4Material* G4NistManager::GetMaterial( << 403 { << 404 return (index < theMaterialTable->size()) ? << 405 } << 406 << 407 //....oooOO0OOooo........oooOO0OOooo........oo << 408 << 409 inline G4int G4NistManager::GetVerbose() const << 410 << 411 //....oooOO0OOooo........oooOO0OOooo........oo << 412 << 413 inline G4Material* G4NistManager::FindMaterial << 414 { << 415 return matBuilder->FindMaterial(name); << 416 } << 417 << 418 //....oooOO0OOooo........oooOO0OOooo........oo << 419 << 420 inline G4Material* G4NistManager::FindOrBuildM << 421 { << 422 return matBuilder->FindOrBuildMaterial(name, << 423 } << 424 << 425 //....oooOO0OOooo........oooOO0OOooo........oo << 426 << 427 inline G4Material* G4NistManager::FindSimpleMa << 428 { << 429 return matBuilder->FindSimpleMaterial(Z); << 430 } << 431 << 432 //....oooOO0OOooo........oooOO0OOooo........oo << 433 << 434 inline G4Material* G4NistManager::FindOrBuildS << 435 { << 436 return matBuilder->FindOrBuildSimpleMaterial << 437 } << 438 << 439 //....oooOO0OOooo........oooOO0OOooo........oo << 440 << 441 inline G4Material* G4NistManager::ConstructNew << 442 const std::vector<G4String>& elm, const std: << 443 G4State state, G4double T, G4double P) << 444 << 445 { << 446 return matBuilder->ConstructNewMaterial(name << 447 } << 448 << 449 //....oooOO0OOooo........oooOO0OOooo........oo << 450 << 451 inline G4Material* G4NistManager::ConstructNew << 452 const std::vector<G4String>& elm, const std: << 453 G4State state, G4double T, G4double P) << 454 { << 455 return matBuilder->ConstructNewMaterial(name << 456 } << 457 << 458 //....oooOO0OOooo........oooOO0OOooo........oo << 459 << 460 inline G4Material* G4NistManager::ConstructNew << 461 const G4String& name, const G4String& nameNi << 462 { << 463 return matBuilder->ConstructNewGasMaterial(n << 464 } << 465 << 466 //....oooOO0OOooo........oooOO0OOooo........oo << 467 << 468 inline G4Material* G4NistManager::ConstructNew << 469 const std::vector<G4String>& elm, const std: << 470 G4double P) << 471 { << 472 return matBuilder->ConstructNewIdealGasMater << 473 } << 474 << 475 //....oooOO0OOooo........oooOO0OOooo........oo << 476 << 477 inline void G4NistManager::ListMaterials(const << 478 { << 479 matBuilder->ListMaterials(list); << 480 } << 481 << 482 //....oooOO0OOooo........oooOO0OOooo........oo << 483 << 484 inline const std::vector<G4String>& G4NistMana << 485 { << 486 return matBuilder->GetMaterialNames(); << 487 } << 488 << 489 //....oooOO0OOooo........oooOO0OOooo........oo << 490 << 491 inline G4double G4NistManager::GetZ13(G4double << 492 << 493 //....oooOO0OOooo........oooOO0OOooo........oo << 494 << 495 inline G4double G4NistManager::GetZ13(G4int Z) << 496 << 497 //....oooOO0OOooo........oooOO0OOooo........oo << 498 << 499 inline G4double G4NistManager::GetA27(G4int Z) << 500 { 264 { 501 return (0 <= Z && Z < 101) ? POWERA27[Z] : g << 265 G4Material* mat = 0; >> 266 if(index < nMaterials) mat = materials[index]; >> 267 return mat; 502 } 268 } 503 269 504 //....oooOO0OOooo........oooOO0OOooo........oo 270 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 505 271 506 inline G4double G4NistManager::GetLOGZ(G4int Z << 272 inline 507 << 273 G4int G4NistManager::GetVerbose() 508 //....oooOO0OOooo........oooOO0OOooo........oo << 509 << 510 inline G4double G4NistManager::GetLOGAMU(G4int << 511 { 274 { 512 return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0; << 275 return verbose; 513 } 276 } 514 277 515 //....oooOO0OOooo........oooOO0OOooo........oo 278 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 516 279 517 #endif 280 #endif >> 281 518 282