Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/materials/include/G4NistManager.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /materials/include/G4NistManager.hh (Version 11.3.0) and /materials/include/G4NistManager.hh (Version 9.1.p1)


  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.17 2007/12/11 13:32:08 gcosmo Exp $
                                                   >>  27 // GEANT4 tag $Name: geant4-09-01-patch-01 $
                                                   >>  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 <<  45 // 02.05.07 V.Ivanchneko add GetNistFirstIsotopeN and GetNumberOfNistIsotopes 
 42 // 28.07.07 V.Ivanchneko make simple methods i     46 // 28.07.07 V.Ivanchneko make simple methods inline
 43 // 28.10.07 V.Ivanchneko add state, T, P to ma     47 // 28.10.07 V.Ivanchneko add state, T, P to maetrial build
 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 //                                                 48 //
 48 // Class Description:                              49 // Class Description:
 49 //                                                 50 //
 50 // A utility static class                          51 // A utility static class
 51 //                                                 52 //
                                                   >>  53 
                                                   >>  54 // -------------------------------------------------------------------
                                                   >>  55 //
                                                   >>  56 // Class Description:
                                                   >>  57 //
 52 // Element data from the NIST DB on Atomic Wei     58 // Element data from the NIST DB on Atomic Weights and Isotope Compositions
 53 // http://physics.nist.gov/PhysRefData/Composi     59 // http://physics.nist.gov/PhysRefData/Compositions/index.html
 54 //                                                 60 //
 55 // -------------------------------------------     61 // -------------------------------------------------------------------
                                                   >>  62 //
 56                                                    63 
 57 #ifndef G4NistManager_h                            64 #ifndef G4NistManager_h
 58 #define G4NistManager_h 1                          65 #define G4NistManager_h 1
 59                                                    66 
 60 #include "G4ICRU90StoppingData.hh"             <<  67 #include <vector>
                                                   >>  68 #include "globals.hh"
 61 #include "G4Material.hh"                           69 #include "G4Material.hh"
 62 #include "G4Element.hh"                        << 
 63 #include "G4Isotope.hh"                        << 
 64 #include "G4NistElementBuilder.hh"                 70 #include "G4NistElementBuilder.hh"
 65 #include "G4NistMaterialBuilder.hh"                71 #include "G4NistMaterialBuilder.hh"
 66 #include "G4Pow.hh"                            << 
 67 #include "globals.hh"                          << 
 68                                                << 
 69 #include <CLHEP/Units/PhysicalConstants.h>     << 
 70                                                << 
 71 #include <vector>                              << 
 72                                                    72 
 73 class G4NistMessenger;                             73 class G4NistMessenger;
 74                                                    74 
                                                   >>  75 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
                                                   >>  76 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
                                                   >>  77 
 75 class G4NistManager                                78 class G4NistManager
 76 {                                                  79 {
 77  public:                                       <<  80 
                                                   >>  81 public:
                                                   >>  82 
 78   static G4NistManager* Instance();                83   static G4NistManager* Instance();
 79   ~G4NistManager();                                84   ~G4NistManager();
 80                                                    85 
 81   // Get G4Element by index                    <<  86   // Elements
 82   //                                               87   //
 83   inline G4Element* GetElement(std::size_t ind <<  88   inline G4Element* GetElement(size_t index);
 84                                                <<  89   
 85   // Find or build G4Element by atomic number      90   // Find or build G4Element by atomic number
 86   //                                           <<  91   inline 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   inline G4Element* FindOrBuildElement(const G4String& symb, 
 92   inline G4Element* FindOrBuildElement(const G <<  95                G4bool isotopes=true);
 93                                                << 
 94   // Get number of elements                    << 
 95   //                                           << 
 96   inline std::size_t GetNumberOfElements() con << 
 97                                                    96 
 98   // Get atomic number by element symbol       <<  97   inline size_t   GetNumberOfElements() const;
 99   //                                           <<  98   inline G4int    GetZ(const G4String& symb) const;
100   inline G4int GetZ(const G4String& symb) cons << 
101                                                    99 
102   // Get atomic weight by element symbol - mea << 100   // Mass in amu
103   // an atom with electron shell for the natur << 
104   //                                           << 
105   inline G4double GetAtomicMassAmu(const G4Str << 
106                                                << 
107   // Get atomic weight in atomic units - mean  << 
108   // with electron shell for the natural isoto << 
109   //                                           << 
110   inline G4double GetAtomicMassAmu(G4int Z) co    101   inline G4double GetAtomicMassAmu(G4int Z) const;
111                                                   102 
112   // Get mass of isotope without electron shel << 103   // Mass in Geant4 units
113   //                                           << 
114   inline G4double GetIsotopeMass(G4int Z, G4in    104   inline G4double GetIsotopeMass(G4int Z, G4int N) const;
115                                                << 
116   // Get mass in Geant4 energy units of an ato << 
117   // with the electron shell                   << 
118   //                                           << 
119   inline G4double GetAtomicMass(G4int Z, G4int    105   inline G4double GetAtomicMass(G4int Z, G4int N) const;
120                                                   106 
121   // Get total ionisation energy of an atom    << 107   // Number of isotopes
122   //                                           << 108   inline G4int    GetNistFirstIsotopeN(G4int Z) const;
123   inline G4double GetTotalElectronBindingEnerg << 109   inline G4int    GetNumberOfNistIsotopes(G4int Z) const;
124                                                   110 
125   // Get N for the first natural isotope       << 
126   //                                           << 
127   inline G4int GetNistFirstIsotopeN(G4int Z) c << 
128                                                << 
129   // Get number of natural isotopes            << 
130   //                                           << 
131   inline G4int GetNumberOfNistIsotopes(G4int Z << 
132                                                << 
133   // Get natural isotope abundance             << 
134   //                                           << 
135   inline G4double GetIsotopeAbundance(G4int Z,    111   inline G4double GetIsotopeAbundance(G4int Z, G4int N) const;
136                                                   112 
137   // Print element by Z                        << 113   inline void PrintElement(G4int Z);  
138   //                                           << 
139   inline void PrintElement(G4int Z) const;     << 
140                                                   114 
141   // Print element from internal DB by symbol, << 115   void PrintElement(const G4String&);    
142   //                                           << 116   void PrintG4Element(const G4String&);  
143   void PrintElement(const G4String&) const;    << 
144                                                << 
145   // Print G4Element by name, if "all" - print << 
146   //                                           << 
147   void PrintG4Element(const G4String&) const;  << 
148                                                   117 
149   // Access to the vector of Geant4 predefined << 
150   //                                           << 
151   inline const std::vector<G4String>& GetNistE    118   inline const std::vector<G4String>& GetNistElementNames() const;
152                                                   119 
153   // Access mean ionisation energy for atoms ( << 120   // Materials
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   //                                              121   //
220   inline std::size_t GetNumberOfMaterials() co << 122   inline G4Material* GetMaterial(size_t index);
221                                                << 123   
222   inline G4int GetVerbose() const;             << 124   // Find or build a G4Material by name, from the dataBase
                                                   >> 125   //
                                                   >> 126   inline G4Material* FindOrBuildMaterial(const G4String& name, 
                                                   >> 127            G4bool isotopes=true,
                                                   >> 128            G4bool warning=false);
                                                   >> 129   
                                                   >> 130   // construct a G4Material from scratch by atome count
                                                   >> 131   // 
                                                   >> 132   inline G4Material* ConstructNewMaterial(
                                                   >> 133                 const G4String& name,
                                                   >> 134           const std::vector<G4String>& elm,
                                                   >> 135           const std::vector<G4int>& nbAtoms,
                                                   >> 136           G4double dens, 
                                                   >> 137           G4bool isotopes=true,
                                                   >> 138           G4State   state    = kStateSolid,     
                                                   >> 139           G4double  temp     = STP_Temperature,  
                                                   >> 140           G4double  pressure = STP_Pressure); 
                                                   >> 141               
                                                   >> 142   // construct a G4Material from scratch by fraction mass
                                                   >> 143   // 
                                                   >> 144   inline G4Material* ConstructNewMaterial(
                                                   >> 145           const G4String& name,
                                                   >> 146           const std::vector<G4String>& elm,
                                                   >> 147           const std::vector<G4double>& weight,
                                                   >> 148           G4double dens, 
                                                   >> 149           G4bool isotopes=true,
                                                   >> 150           G4State   state    = kStateSolid,     
                                                   >> 151           G4double  temp     = STP_Temperature,  
                                                   >> 152           G4double  pressure = STP_Pressure); 
                                                   >> 153 
                                                   >> 154   // construct a gas G4Material from scratch by atome count
                                                   >> 155   // 
                                                   >> 156   inline G4Material* ConstructNewGasMaterial(const G4String& name,
                                                   >> 157                const G4String& nameNist,
                                                   >> 158                G4double temp, 
                                                   >> 159                G4double pres, 
                                                   >> 160                G4bool isotopes=true);
                                                   >> 161 
                                                   >> 162   inline size_t GetNumberOfMaterials();
                                                   >> 163   
                                                   >> 164   inline G4int GetVerbose();
223                                                   165 
224   void SetVerbose(G4int);                         166   void SetVerbose(G4int);
225                                                   167 
226   // Print G4Material by name                  << 168   void PrintG4Material(const G4String&);
227   //                                           << 
228   void PrintG4Material(const G4String&) const; << 
229                                                   169 
230   // Print predefined Geant4 materials:        << 170   inline void ListMaterials(const G4String&);
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                                                   171 
239   // Access to the list of names of Geant4 pre << 
240   //                                           << 
241   inline const std::vector<G4String>& GetNistM    172   inline const std::vector<G4String>& GetNistMaterialNames() const;
242                                                   173 
243   // Fast computation of Z^1/3                 << 174   G4double GetZ13(G4double Z);
244   //                                           << 
245   inline G4double GetZ13(G4double Z) const;    << 
246   inline G4double GetZ13(G4int Z) const;       << 
247                                                   175 
248   // Fast computation of A^0.27 for natuaral a << 176   G4double GetLOGA(G4double A);
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                                                   177 
257   G4ICRU90StoppingData* GetICRU90StoppingData( << 178 private:
258                                                   179 
259  private:                                      << 
260   G4NistManager();                                180   G4NistManager();
                                                   >> 181   static G4NistManager* instance;
261                                                   182 
262   std::vector<G4Element*> elements;            << 183   static G4double POWERZ13[256];
263   std::vector<G4Material*> materials;          << 184   static G4double LOGA[256];
                                                   >> 185   
                                                   >> 186   std::vector<G4Element*>   elements;
                                                   >> 187   std::vector<G4Material*>  materials;
                                                   >> 188   
                                                   >> 189   size_t   nElements;
                                                   >> 190   size_t   nMaterials;
                                                   >> 191   
                                                   >> 192   G4int    verbose;
                                                   >> 193 
                                                   >> 194   G4NistElementBuilder*    elmBuilder;
                                                   >> 195   G4NistMaterialBuilder*   matBuilder;
                                                   >> 196   G4NistMessenger*         messenger;
264                                                   197 
265   G4ICRU90StoppingData* fICRU90;               << 
266   G4NistElementBuilder* elmBuilder;            << 
267   G4NistMaterialBuilder* matBuilder;           << 
268   G4NistMessenger* messenger;                  << 
269   G4Pow* g4pow;                                << 
270   const G4MaterialTable* theMaterialTable;     << 
271   const G4ElementTable* theElementTable;       << 
272   const G4IsotopeTable* theIsotopeTable;       << 
273                                                << 
274   G4double POWERA27[101];                      << 
275   G4double LOGAZ[101];                         << 
276                                                << 
277   std::size_t nElements;                       << 
278   std::size_t nMaterials;                      << 
279   G4int verbose;                               << 
280 };                                                198 };
281                                                   199 
282 //....oooOO0OOooo........oooOO0OOooo........oo    200 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
283                                                << 
284 inline std::size_t G4NistManager::GetNumberOfM << 
285                                                << 
286 //....oooOO0OOooo........oooOO0OOooo........oo    201 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
287                                                   202 
288 inline G4Element* G4NistManager::GetElement(st << 203 inline 
                                                   >> 204 size_t G4NistManager::GetNumberOfMaterials() 
289 {                                                 205 {
290   return (index < theElementTable->size()) ? ( << 206   return nMaterials;
291 }                                                 207 }
292                                                   208 
293 //....oooOO0OOooo........oooOO0OOooo........oo    209 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
294                                                   210 
295 inline G4Element* G4NistManager::FindElement(G << 211 inline 
                                                   >> 212 G4Element* G4NistManager::GetElement(size_t index)
                                                   >> 213 {
                                                   >> 214   G4Element* elm = 0; 
                                                   >> 215   const G4ElementTable* theElementTable = G4Element::GetElementTable();
                                                   >> 216   if(index < theElementTable->size()) elm = (*theElementTable)[index];
                                                   >> 217   return elm;
                                                   >> 218 }
296                                                   219 
297 //....oooOO0OOooo........oooOO0OOooo........oo    220 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
298                                                   221 
299 inline G4Element* G4NistManager::FindOrBuildEl << 222 inline 
                                                   >> 223 G4Element* G4NistManager::FindOrBuildElement(G4int Z, G4bool isotopes)
300 {                                                 224 {
301   return elmBuilder->FindOrBuildElement(Z, iso    225   return elmBuilder->FindOrBuildElement(Z, isotopes);
302 }                                                 226 }
303                                                   227 
304 //....oooOO0OOooo........oooOO0OOooo........oo    228 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
305                                                   229 
306 inline G4Element* G4NistManager::FindOrBuildEl << 230 inline
                                                   >> 231 G4Element* G4NistManager::FindOrBuildElement(const G4String& symb,
                                                   >> 232                                                    G4bool isotopes)
307 {                                                 233 {
308   return elmBuilder->FindOrBuildElement(symb,     234   return elmBuilder->FindOrBuildElement(symb, isotopes);
309 }                                                 235 }
310                                                   236 
311 //....oooOO0OOooo........oooOO0OOooo........oo    237 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
312                                                   238 
313 inline std::size_t G4NistManager::GetNumberOfE << 239 inline
314                                                << 240 size_t G4NistManager::GetNumberOfElements() const
315 //....oooOO0OOooo........oooOO0OOooo........oo << 241 { 
316                                                << 242   return nElements;
317 inline G4int G4NistManager::GetZ(const G4Strin << 243 }
318                                                   244 
319 //....oooOO0OOooo........oooOO0OOooo........oo    245 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
320                                                   246 
321 inline G4double G4NistManager::GetAtomicMassAm << 247 inline 
                                                   >> 248 G4int G4NistManager::GetZ(const G4String& symb) const
322 {                                                 249 {
323   return elmBuilder->GetAtomicMassAmu(symb);   << 250   return elmBuilder->GetZ(symb);
324 }                                                 251 }
325                                                   252 
326 //....oooOO0OOooo........oooOO0OOooo........oo    253 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
327                                                   254 
328 inline G4double G4NistManager::GetAtomicMassAm << 255 inline 
                                                   >> 256 G4double G4NistManager::GetAtomicMassAmu(G4int Z) const
329 {                                                 257 {
330   return elmBuilder->GetAtomicMassAmu(Z);      << 258   return elmBuilder->GetA(Z);
331 }                                                 259 }
332                                                   260 
333 //....oooOO0OOooo........oooOO0OOooo........oo    261 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
334                                                   262 
335 inline G4double G4NistManager::GetIsotopeMass( << 263 inline 
                                                   >> 264 G4double G4NistManager::GetIsotopeMass(G4int Z, G4int N) const
336 {                                                 265 {
337   return elmBuilder->GetIsotopeMass(Z, N);        266   return elmBuilder->GetIsotopeMass(Z, N);
338 }                                                 267 }
339                                                   268 
340 //....oooOO0OOooo........oooOO0OOooo........oo    269 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
341                                                   270 
342 inline G4double G4NistManager::GetAtomicMass(G << 271 inline 
                                                   >> 272 G4double G4NistManager::GetAtomicMass(G4int Z, G4int N) const
343 {                                                 273 {
344   return elmBuilder->GetAtomicMass(Z, N);         274   return elmBuilder->GetAtomicMass(Z, N);
345 }                                                 275 }
346                                                   276 
347 //....oooOO0OOooo........oooOO0OOooo........oo    277 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
348                                                   278 
349 inline G4double G4NistManager::GetTotalElectro << 279 inline 
350 {                                              << 280 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 {                                                 281 {
358   return elmBuilder->GetIsotopeAbundance(Z, N)    282   return elmBuilder->GetIsotopeAbundance(Z, N);
359 }                                                 283 }
360                                                   284 
361 //....oooOO0OOooo........oooOO0OOooo........oo    285 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
362                                                   286 
363 inline G4int G4NistManager::GetNistFirstIsotop << 287 inline 
                                                   >> 288 G4int G4NistManager::GetNistFirstIsotopeN(G4int Z) const
364 {                                                 289 {
365   return elmBuilder->GetNistFirstIsotopeN(Z);     290   return elmBuilder->GetNistFirstIsotopeN(Z);
366 }                                                 291 }
367                                                   292 
368 //....oooOO0OOooo........oooOO0OOooo........oo    293 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
369                                                   294 
370 inline G4int G4NistManager::GetNumberOfNistIso << 295 inline 
                                                   >> 296 G4int G4NistManager::GetNumberOfNistIsotopes(G4int Z) const
371 {                                                 297 {
372   return elmBuilder->GetNumberOfNistIsotopes(Z    298   return elmBuilder->GetNumberOfNistIsotopes(Z);
373 }                                                 299 }
374                                                   300 
375 //....oooOO0OOooo........oooOO0OOooo........oo    301 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
376                                                   302 
377 inline const std::vector<G4String>& G4NistMana << 303 inline 
                                                   >> 304 const std::vector<G4String>& G4NistManager::GetNistElementNames() const
378 {                                                 305 {
379   return elmBuilder->GetElementNames();           306   return elmBuilder->GetElementNames();
380 }                                                 307 }
381                                                   308 
382 //....oooOO0OOooo........oooOO0OOooo........oo    309 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
383                                                   310 
384 inline G4double G4NistManager::GetMeanIonisati << 311 inline 
                                                   >> 312 void G4NistManager::PrintElement(G4int Z)
385 {                                                 313 {
386   return matBuilder->GetMeanIonisationEnergy(Z << 314   elmBuilder->PrintElement(Z);
387 }                                                 315 }
388                                                   316 
389 //....oooOO0OOooo........oooOO0OOooo........oo    317 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
390                                                   318 
391 inline G4double G4NistManager::GetNominalDensi << 319 inline
                                                   >> 320 G4Material* G4NistManager::GetMaterial(size_t index)
392 {                                                 321 {
393   return matBuilder->GetNominalDensity(Z);     << 322   const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
                                                   >> 323   G4Material* mat = 0;
                                                   >> 324   if(index < theMaterialTable->size()) mat = (*theMaterialTable)[index];
                                                   >> 325   return mat;
394 }                                                 326 }
395                                                   327 
396 //....oooOO0OOooo........oooOO0OOooo........oo    328 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
397                                                   329 
398 inline void G4NistManager::PrintElement(G4int  << 330 inline
399                                                << 331 G4int G4NistManager::GetVerbose()
400 //....oooOO0OOooo........oooOO0OOooo........oo << 
401                                                << 
402 inline G4Material* G4NistManager::GetMaterial( << 
403 {                                                 332 {
404   return (index < theMaterialTable->size()) ?  << 333   return verbose;
405 }                                                 334 }
406                                                   335 
407 //....oooOO0OOooo........oooOO0OOooo........oo    336 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
408                                                   337 
409 inline G4int G4NistManager::GetVerbose() const << 338 inline
410                                                << 339 G4Material* G4NistManager::FindOrBuildMaterial(const G4String& name,
411 //....oooOO0OOooo........oooOO0OOooo........oo << 340                  G4bool isotopes,
412                                                << 341                  G4bool warning)
413 inline G4Material* G4NistManager::FindMaterial << 
414 {                                                 342 {
415   return matBuilder->FindMaterial(name);       << 343   return matBuilder->FindOrBuildMaterial(name, isotopes, warning);  
416 }                                                 344 }
417                                                   345 
418 //....oooOO0OOooo........oooOO0OOooo........oo    346 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
419                                                   347 
420 inline G4Material* G4NistManager::FindOrBuildM << 348 inline
421 {                                              << 349 G4Material* G4NistManager::ConstructNewMaterial(
422   return matBuilder->FindOrBuildMaterial(name, << 350                                       const G4String& name,
423 }                                              << 351                                       const std::vector<G4String>& elm,
424                                                << 352                                       const std::vector<G4int>& nbAtoms,
425 //....oooOO0OOooo........oooOO0OOooo........oo << 353               G4double dens, 
                                                   >> 354               G4bool isotopes,
                                                   >> 355               G4State   state,     
                                                   >> 356               G4double  T,  
                                                   >> 357               G4double  P) 
426                                                   358 
427 inline G4Material* G4NistManager::FindSimpleMa << 
428 {                                                 359 {
429   return matBuilder->FindSimpleMaterial(Z);    << 360   return 
                                                   >> 361     matBuilder->ConstructNewMaterial(name,elm,nbAtoms,dens,isotopes,state,T,P);
430 }                                                 362 }
431                                                   363 
432 //....oooOO0OOooo........oooOO0OOooo........oo    364 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
433                                                   365 
434 inline G4Material* G4NistManager::FindOrBuildS << 366 inline
                                                   >> 367 G4Material* G4NistManager::ConstructNewMaterial(
                                                   >> 368                                       const G4String& name,
                                                   >> 369                                       const std::vector<G4String>& elm,
                                                   >> 370                                       const std::vector<G4double>& w,
                                                   >> 371               G4double dens, 
                                                   >> 372               G4bool isotopes,
                                                   >> 373               G4State   state,     
                                                   >> 374               G4double  T,  
                                                   >> 375               G4double  P) 
435 {                                                 376 {
436   return matBuilder->FindOrBuildSimpleMaterial << 377   return matBuilder->ConstructNewMaterial(name,elm,w,dens,isotopes,state,T,P);
437 }                                                 378 }
438                                                   379 
439 //....oooOO0OOooo........oooOO0OOooo........oo    380 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
440                                                   381 
441 inline G4Material* G4NistManager::ConstructNew << 382 inline
442   const std::vector<G4String>& elm, const std: << 383 G4Material* G4NistManager::ConstructNewGasMaterial(
443   G4State state, G4double T, G4double P)       << 384               const G4String& name,
444                                                << 385                                       const G4String& nameNist,
                                                   >> 386               G4double temp, G4double pres, 
                                                   >> 387               G4bool isotopes)
445 {                                                 388 {
446   return matBuilder->ConstructNewMaterial(name << 389   return matBuilder->ConstructNewGasMaterial(name,nameNist,
                                                   >> 390                temp,pres,isotopes);
447 }                                                 391 }
448                                                   392 
449 //....oooOO0OOooo........oooOO0OOooo........oo    393 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
450                                                   394 
451 inline G4Material* G4NistManager::ConstructNew << 395 inline
452   const std::vector<G4String>& elm, const std: << 396 void G4NistManager::ListMaterials(const G4String& list)
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 {                                                 397 {
479   matBuilder->ListMaterials(list);                398   matBuilder->ListMaterials(list);
480 }                                                 399 }
481                                                   400 
482 //....oooOO0OOooo........oooOO0OOooo........oo    401 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
483                                                   402 
484 inline const std::vector<G4String>& G4NistMana << 403 inline
                                                   >> 404 const std::vector<G4String>& G4NistManager::GetNistMaterialNames() const
485 {                                                 405 {
486   return matBuilder->GetMaterialNames();          406   return matBuilder->GetMaterialNames();
487 }                                                 407 }
488                                                   408 
489 //....oooOO0OOooo........oooOO0OOooo........oo    409 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
490                                                   410 
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 {                                              << 
501   return (0 <= Z && Z < 101) ? POWERA27[Z] : g << 
502 }                                              << 
503                                                << 
504 //....oooOO0OOooo........oooOO0OOooo........oo << 
505                                                << 
506 inline G4double G4NistManager::GetLOGZ(G4int Z << 
507                                                << 
508 //....oooOO0OOooo........oooOO0OOooo........oo << 
509                                                << 
510 inline G4double G4NistManager::GetLOGAMU(G4int << 
511 {                                              << 
512   return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0; << 
513 }                                              << 
514                                                << 
515 //....oooOO0OOooo........oooOO0OOooo........oo << 
516                                                << 
517 #endif                                            411 #endif
                                                   >> 412 
518                                                   413