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 11.1)


  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 //
 26 // -------------------------------------------     27 // -------------------------------------------------------------------
 27 //                                                 28 //
 28 // GEANT4 Class header file                        29 // GEANT4 Class header file
 29 //                                                 30 //
 30 // File name:     G4NistManager                    31 // File name:     G4NistManager
 31 //                                                 32 //
 32 // Author:        Vladimir Ivanchenko              33 // Author:        Vladimir Ivanchenko
 33 //                                                 34 //
 34 // Creation date: 23.12.2004                       35 // Creation date: 23.12.2004
 35 //                                                 36 //
 36 // Modifications:                                  37 // Modifications:
 37 // 27.02.06 V.Ivanchneko add GetAtomicMassAmu      38 // 27.02.06 V.Ivanchneko add GetAtomicMassAmu and ConstructNewGasMaterial
 38 // 11.05.06 V.Ivanchneko add warning flag to F     39 // 11.05.06 V.Ivanchneko add warning flag to FindMaterial method
 39 // 17.10.06 V.Ivanchneko add methods: GetAtomi     40 // 17.10.06 V.Ivanchneko add methods: GetAtomicMass, GetNistElementNames,
 40 //                       GetNistMaterialNames      41 //                       GetNistMaterialNames
 41 // 02.05.07 V.Ivanchneko add GetNistFirstIsoto <<  42 // 02.05.07 V.Ivanchneko add GetNistFirstIsotopeN and GetNumberOfNistIsotopes 
 42 // 28.07.07 V.Ivanchneko make simple methods i     43 // 28.07.07 V.Ivanchneko make simple methods inline
 43 // 28.10.07 V.Ivanchneko add state, T, P to ma     44 // 28.10.07 V.Ivanchneko add state, T, P to maetrial build
 44 // 29.04.10 V.Ivanchneko add GetMeanIonisation <<  45 // 29.04.10 V.Ivanchneko add GetMeanIonisationEnergy method 
 45 // 01.11.10 V.Ivanchneko add G4Pow for fast co <<  46 // 01.11.10 V.Ivanchneko add G4Pow for fast computations 
 46 // 09.02.12 P.Gumplinger add ConstructNewIdeal     47 // 09.02.12 P.Gumplinger add ConstructNewIdealGasMaterial
 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 <CLHEP/Units/PhysicalConstants.h>
                                                   >>  69 
                                                   >>  70 #include "globals.hh"
 61 #include "G4Material.hh"                           71 #include "G4Material.hh"
 62 #include "G4Element.hh"                        << 
 63 #include "G4Isotope.hh"                        << 
 64 #include "G4NistElementBuilder.hh"                 72 #include "G4NistElementBuilder.hh"
 65 #include "G4NistMaterialBuilder.hh"                73 #include "G4NistMaterialBuilder.hh"
                                                   >>  74 #include "G4ICRU90StoppingData.hh"
 66 #include "G4Pow.hh"                                75 #include "G4Pow.hh"
 67 #include "globals.hh"                          << 
 68                                                << 
 69 #include <CLHEP/Units/PhysicalConstants.h>     << 
 70                                                << 
 71 #include <vector>                              << 
 72                                                    76 
 73 class G4NistMessenger;                             77 class G4NistMessenger;
 74                                                    78 
                                                   >>  79 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
                                                   >>  80 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
                                                   >>  81 
 75 class G4NistManager                                82 class G4NistManager
 76 {                                                  83 {
 77  public:                                       <<  84 
                                                   >>  85 public:
                                                   >>  86 
 78   static G4NistManager* Instance();                87   static G4NistManager* Instance();
 79   ~G4NistManager();                                88   ~G4NistManager();
 80                                                    89 
 81   // Get G4Element by index                        90   // Get G4Element by index
 82   //                                               91   //
 83   inline G4Element* GetElement(std::size_t ind <<  92   inline G4Element* GetElement(size_t index) const;
 84                                                <<  93   
 85   // Find or build G4Element by atomic number      94   // Find or build G4Element by atomic number
 86   //                                               95   //
 87   inline G4Element* FindElement(G4int Z) const     96   inline G4Element* FindElement(G4int Z) const;
 88   inline G4Element* FindOrBuildElement(G4int Z <<  97   inline G4Element* FindOrBuildElement(G4int Z, G4bool isotopes=true);
 89                                                <<  98   
 90   // Find or build G4Element by symbol             99   // Find or build G4Element by symbol
 91   //                                              100   //
 92   inline G4Element* FindOrBuildElement(const G << 101   inline G4Element* FindOrBuildElement(const G4String& symb, 
                                                   >> 102                G4bool isotopes=true);
 93                                                   103 
 94   // Get number of elements                       104   // Get number of elements
 95   //                                              105   //
 96   inline std::size_t GetNumberOfElements() con << 106   inline size_t GetNumberOfElements() const;
 97                                                   107 
 98   // Get atomic number by element symbol          108   // Get atomic number by element symbol
 99   //                                              109   //
100   inline G4int GetZ(const G4String& symb) cons    110   inline G4int GetZ(const G4String& symb) const;
101                                                   111 
102   // Get atomic weight by element symbol - mea << 112   // Get atomic weight by element symbol - mean mass in units of amu of 
103   // an atom with electron shell for the natur << 113   // an atom with electron shell for the natural isotope composition 
104   //                                              114   //
105   inline G4double GetAtomicMassAmu(const G4Str    115   inline G4double GetAtomicMassAmu(const G4String& symb) const;
106                                                   116 
107   // Get atomic weight in atomic units - mean  << 117   // Get atomic weight in atomic units - mean mass in units of amu of an atom 
108   // with electron shell for the natural isoto << 118   // with electron shell for the natural isotope composition 
109   //                                              119   //
110   inline G4double GetAtomicMassAmu(G4int Z) co    120   inline G4double GetAtomicMassAmu(G4int Z) const;
111                                                   121 
112   // Get mass of isotope without electron shel << 122   // Get mass of isotope without electron shell in Geant4 energy units 
113   //                                              123   //
114   inline G4double GetIsotopeMass(G4int Z, G4in    124   inline G4double GetIsotopeMass(G4int Z, G4int N) const;
115                                                   125 
116   // Get mass in Geant4 energy units of an ato << 126   // Get mass in Geant4 energy units of an atom of a particular isotope 
117   // with the electron shell                   << 127   // with the electron shell  
118   //                                              128   //
119   inline G4double GetAtomicMass(G4int Z, G4int    129   inline G4double GetAtomicMass(G4int Z, G4int N) const;
120                                                   130 
121   // Get total ionisation energy of an atom       131   // Get total ionisation energy of an atom
122   //                                              132   //
123   inline G4double GetTotalElectronBindingEnerg    133   inline G4double GetTotalElectronBindingEnergy(G4int Z) const;
124                                                   134 
125   // Get N for the first natural isotope          135   // Get N for the first natural isotope
126   //                                              136   //
127   inline G4int GetNistFirstIsotopeN(G4int Z) c    137   inline G4int GetNistFirstIsotopeN(G4int Z) const;
128                                                   138 
129   // Get number of natural isotopes               139   // Get number of natural isotopes
130   //                                              140   //
131   inline G4int GetNumberOfNistIsotopes(G4int Z    141   inline G4int GetNumberOfNistIsotopes(G4int Z) const;
132                                                   142 
133   // Get natural isotope abundance                143   // Get natural isotope abundance
134   //                                              144   //
135   inline G4double GetIsotopeAbundance(G4int Z,    145   inline G4double GetIsotopeAbundance(G4int Z, G4int N) const;
136                                                   146 
137   // Print element by Z                           147   // Print element by Z
138   //                                              148   //
139   inline void PrintElement(G4int Z) const;        149   inline void PrintElement(G4int Z) const;
140                                                   150 
141   // Print element from internal DB by symbol,    151   // Print element from internal DB by symbol, if "all" - print all elements
142   //                                              152   //
143   void PrintElement(const G4String&) const;       153   void PrintElement(const G4String&) const;
144                                                   154 
145   // Print G4Element by name, if "all" - print    155   // Print G4Element by name, if "all" - print all G4Elements
146   //                                              156   //
147   void PrintG4Element(const G4String&) const;  << 157   void PrintG4Element(const G4String&) const;  
148                                                   158 
149   // Access to the vector of Geant4 predefined << 159   // Access to the vector of Geant4 predefined element names 
150   //                                              160   //
151   inline const std::vector<G4String>& GetNistE    161   inline const std::vector<G4String>& GetNistElementNames() const;
152                                                   162 
153   // Access mean ionisation energy for atoms ( << 163   // Access mean ionisation energy for atoms (Z <= 98) by its index 
154   //                                           << 164   // 
155   inline G4double GetMeanIonisationEnergy(G4in    165   inline G4double GetMeanIonisationEnergy(G4int Z) const;
156                                                   166 
157   // Access nominal density by atomic number f << 167   // Access nominal density by atomic number for simple materials and 
158   // by the index for other NIST materials     << 168   // by the index for other NIST materials 
159   //                                              169   //
160   inline G4double GetNominalDensity(G4int Z) c    170   inline G4double GetNominalDensity(G4int Z) const;
161                                                   171 
162   // Get G4Material by index                   << 172   // Get G4Material by index 
163   //                                              173   //
164   inline G4Material* GetMaterial(std::size_t i << 174   inline G4Material* GetMaterial(size_t index) const;
165                                                << 175   
166   // Find or build a G4Material by name, from     176   // Find or build a G4Material by name, from the Geant4 dataBase
167   //                                              177   //
168   inline G4Material* FindMaterial(const G4Stri << 178   inline G4Material* FindMaterial(const G4String& name) const; 
169   inline G4Material* FindOrBuildMaterial(      << 179   inline G4Material* FindOrBuildMaterial(const G4String& name, 
170     const G4String& name, G4bool isotopes = tr << 180            G4bool isotopes=true,
                                                   >> 181            G4bool warning=false);
171                                                   182 
172   // Find or build a simple material via atomi    183   // Find or build a simple material via atomic number
173   //                                              184   //
174   inline G4Material* FindSimpleMaterial(G4int  << 185   inline G4Material* FindSimpleMaterial(G4int Z) const; 
175   inline G4Material* FindOrBuildSimpleMaterial << 186   inline G4Material* FindOrBuildSimpleMaterial(G4int Z, 
176                                                << 187                  G4bool warning=false);
                                                   >> 188   
177   // Build G4Material with user defined name a    189   // Build G4Material with user defined name and density on base
178   // of a material from Geant4 dataBase           190   // of a material from Geant4 dataBase
179   //                                              191   //
180   G4Material* BuildMaterialWithNewDensity(cons << 192   G4Material* BuildMaterialWithNewDensity(const G4String& name,
181     G4double density = 0.0, G4double temp = NT << 193                                           const G4String& basename, 
                                                   >> 194             G4double density = 0.0,
                                                   >> 195             G4double temp = NTP_Temperature,  
                                                   >> 196             G4double pres = CLHEP::STP_Pressure);
182                                                   197 
183   // Construct a G4Material from scratch by at    198   // Construct a G4Material from scratch by atome count
184   // temperature and pressure should be consis    199   // temperature and pressure should be consistent with the density
185   //                                           << 200   // 
186   inline G4Material* ConstructNewMaterial(cons << 201   inline G4Material* ConstructNewMaterial(
187     const std::vector<G4int>& nbAtoms, G4doubl << 202                 const G4String& name,
188     G4State state = kStateSolid, G4double temp << 203           const std::vector<G4String>& elm,
189     G4double pressure = CLHEP::STP_Pressure);  << 204           const std::vector<G4int>& nbAtoms,
                                                   >> 205           G4double dens, 
                                                   >> 206           G4bool isotopes=true,
                                                   >> 207           G4State   state    = kStateSolid,     
                                                   >> 208           G4double  temp     = NTP_Temperature,  
                                                   >> 209           G4double  pressure = CLHEP::STP_Pressure); 
190                                                   210 
191   // Construct a G4Material from scratch by fr    211   // Construct a G4Material from scratch by fraction mass
192   // temperature and pressure should be consis    212   // temperature and pressure should be consistent with the density
193   //                                           << 213   // 
194   inline G4Material* ConstructNewMaterial(cons << 214   inline G4Material* ConstructNewMaterial(
195     const std::vector<G4double>& weight, G4dou << 215           const G4String& name,
196     G4State state = kStateSolid, G4double temp << 216           const std::vector<G4String>& elm,
197     G4double pressure = CLHEP::STP_Pressure);  << 217           const std::vector<G4double>& weight,
                                                   >> 218           G4double dens, 
                                                   >> 219           G4bool isotopes=true,
                                                   >> 220           G4State   state    = kStateSolid,     
                                                   >> 221           G4double  temp     = NTP_Temperature,  
                                                   >> 222           G4double  pressure = CLHEP::STP_Pressure); 
198                                                   223 
199   // Construct a gas G4Material from scratch b    224   // Construct a gas G4Material from scratch by atome count
200   //                                           << 225   // 
201   inline G4Material* ConstructNewGasMaterial(c << 226   inline G4Material* ConstructNewGasMaterial(const G4String& name,
202     G4double temp, G4double pres, G4bool isoto << 227                const G4String& nameNist,
                                                   >> 228                G4double temp, 
                                                   >> 229                G4double pres, 
                                                   >> 230                G4bool isotopes=true);
203                                                   231 
204   // Construct an ideal gas G4Material from sc    232   // Construct an ideal gas G4Material from scratch by atom count
205   //                                              233   //
206   inline G4Material* ConstructNewIdealGasMater << 234   inline G4Material* ConstructNewIdealGasMaterial(
207     const std::vector<G4String>& elm, const st << 235                                   const G4String& name,
208     G4double temp = NTP_Temperature, G4double  << 236                                   const std::vector<G4String>& elm,
                                                   >> 237                                   const std::vector<G4int>& nbAtoms,
                                                   >> 238                                   G4bool isotopes    = true,
                                                   >> 239                                   G4double  temp     = NTP_Temperature,
                                                   >> 240                                   G4double  pressure = CLHEP::STP_Pressure);
209                                                   241 
210   // enable/disable density effect calculator     242   // enable/disable density effect calculator by material name
211   //                                              243   //
212   void SetDensityEffectCalculatorFlag(const G4    244   void SetDensityEffectCalculatorFlag(const G4String&, G4bool);
213                                                   245 
214   // enable/disable density effect calculator     246   // enable/disable density effect calculator by material pointer
215   //                                              247   //
216   void SetDensityEffectCalculatorFlag(G4Materi    248   void SetDensityEffectCalculatorFlag(G4Material*, G4bool);
217                                                   249 
218   // Get number of G4Materials                    250   // Get number of G4Materials
219   //                                              251   //
220   inline std::size_t GetNumberOfMaterials() co << 252   inline size_t GetNumberOfMaterials() const;
221                                                << 253   
222   inline G4int GetVerbose() const;                254   inline G4int GetVerbose() const;
223                                                   255 
224   void SetVerbose(G4int);                         256   void SetVerbose(G4int);
225                                                   257 
226   // Print G4Material by name                     258   // Print G4Material by name
227   //                                              259   //
228   void PrintG4Material(const G4String&) const;    260   void PrintG4Material(const G4String&) const;
229                                                   261 
230   // Print predefined Geant4 materials:           262   // Print predefined Geant4 materials:
231   // "simple" - only pure materials in basic s    263   // "simple" - only pure materials in basic state (Z = 1, ..., 98)
232   // "compound" - NIST compounds                  264   // "compound" - NIST compounds
233   // "hep" - HEP materials and compounds          265   // "hep" - HEP materials and compounds
234   // "bio" - bio-medical materials and compoun    266   // "bio" - bio-medical materials and compounds
235   // "all" - all                                  267   // "all" - all
236   //                                              268   //
237   inline void ListMaterials(const G4String&) c    269   inline void ListMaterials(const G4String&) const;
238                                                   270 
239   // Access to the list of names of Geant4 pre    271   // Access to the list of names of Geant4 predefined materials
240   //                                              272   //
241   inline const std::vector<G4String>& GetNistM    273   inline const std::vector<G4String>& GetNistMaterialNames() const;
242                                                   274 
243   // Fast computation of Z^1/3                    275   // Fast computation of Z^1/3
244   //                                              276   //
245   inline G4double GetZ13(G4double Z) const;       277   inline G4double GetZ13(G4double Z) const;
246   inline G4double GetZ13(G4int Z) const;          278   inline G4double GetZ13(G4int Z) const;
247                                                   279 
248   // Fast computation of A^0.27 for natuaral a    280   // Fast computation of A^0.27 for natuaral abundances
249   //                                              281   //
250   inline G4double GetA27(G4int Z) const;          282   inline G4double GetA27(G4int Z) const;
251                                                   283 
252   // Fast computation of log(A)                   284   // Fast computation of log(A)
253   //                                              285   //
254   inline G4double GetLOGZ(G4int Z) const;         286   inline G4double GetLOGZ(G4int Z) const;
255   inline G4double GetLOGAMU(G4int Z) const;       287   inline G4double GetLOGAMU(G4int Z) const;
256                                                   288 
257   G4ICRU90StoppingData* GetICRU90StoppingData(    289   G4ICRU90StoppingData* GetICRU90StoppingData();
258                                                   290 
259  private:                                      << 291 private:
260   G4NistManager();                             << 292 
                                                   >> 293   explicit G4NistManager();
261                                                   294 
262   std::vector<G4Element*> elements;            << 295   static G4NistManager* instance;
                                                   >> 296   
                                                   >> 297   std::vector<G4Element*>  elements;
263   std::vector<G4Material*> materials;             298   std::vector<G4Material*> materials;
264                                                   299 
265   G4ICRU90StoppingData* fICRU90;               << 300   G4ICRU90StoppingData*  fICRU90;
266   G4NistElementBuilder* elmBuilder;            << 301   G4NistElementBuilder*  elmBuilder;
267   G4NistMaterialBuilder* matBuilder;              302   G4NistMaterialBuilder* matBuilder;
268   G4NistMessenger* messenger;                  << 303   G4NistMessenger*       messenger;
269   G4Pow* g4pow;                                << 304   G4Pow*                 g4pow;
270   const G4MaterialTable* theMaterialTable;     << 
271   const G4ElementTable* theElementTable;       << 
272   const G4IsotopeTable* theIsotopeTable;       << 
273                                                   305 
274   G4double POWERA27[101];                         306   G4double POWERA27[101];
275   G4double LOGAZ[101];                            307   G4double LOGAZ[101];
276                                                   308 
277   std::size_t nElements;                       << 309   size_t   nElements;
278   std::size_t nMaterials;                      << 310   size_t   nMaterials;  
279   G4int verbose;                               << 311   G4int    verbose;
280 };                                                312 };
281                                                   313 
282 //....oooOO0OOooo........oooOO0OOooo........oo    314 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >> 315 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
283                                                   316 
284 inline std::size_t G4NistManager::GetNumberOfM << 317 inline size_t G4NistManager::GetNumberOfMaterials() const
                                                   >> 318 {
                                                   >> 319   return nMaterials;
                                                   >> 320 }
285                                                   321 
286 //....oooOO0OOooo........oooOO0OOooo........oo    322 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
287                                                   323 
288 inline G4Element* G4NistManager::GetElement(st << 324 inline G4Element* G4NistManager::GetElement(size_t index) const
289 {                                                 325 {
290   return (index < theElementTable->size()) ? ( << 326   const G4ElementTable* theElementTable = G4Element::GetElementTable();
                                                   >> 327   return (index < theElementTable->size()) ? (*theElementTable)[index] : nullptr; 
291 }                                                 328 }
292                                                   329 
293 //....oooOO0OOooo........oooOO0OOooo........oo    330 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
294                                                   331 
295 inline G4Element* G4NistManager::FindElement(G << 332 inline 
                                                   >> 333 G4Element* G4NistManager::FindElement(G4int Z) const
                                                   >> 334 {
                                                   >> 335   return elmBuilder->FindElement(Z);
                                                   >> 336 }
296                                                   337 
297 //....oooOO0OOooo........oooOO0OOooo........oo    338 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
298                                                   339 
299 inline G4Element* G4NistManager::FindOrBuildEl << 340 inline 
                                                   >> 341 G4Element* G4NistManager::FindOrBuildElement(G4int Z, G4bool isotopes)
300 {                                                 342 {
301   return elmBuilder->FindOrBuildElement(Z, iso    343   return elmBuilder->FindOrBuildElement(Z, isotopes);
302 }                                                 344 }
303                                                   345 
304 //....oooOO0OOooo........oooOO0OOooo........oo    346 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
305                                                   347 
306 inline G4Element* G4NistManager::FindOrBuildEl << 348 inline
                                                   >> 349 G4Element* G4NistManager::FindOrBuildElement(const G4String& symb,
                                                   >> 350                                                    G4bool isotopes)
307 {                                                 351 {
308   return elmBuilder->FindOrBuildElement(symb,     352   return elmBuilder->FindOrBuildElement(symb, isotopes);
309 }                                                 353 }
310                                                   354 
311 //....oooOO0OOooo........oooOO0OOooo........oo    355 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
312                                                   356 
313 inline std::size_t G4NistManager::GetNumberOfE << 357 inline size_t G4NistManager::GetNumberOfElements() const
                                                   >> 358 { 
                                                   >> 359   return nElements;
                                                   >> 360 }
314                                                   361 
315 //....oooOO0OOooo........oooOO0OOooo........oo    362 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
316                                                   363 
317 inline G4int G4NistManager::GetZ(const G4Strin << 364 inline G4int G4NistManager::GetZ(const G4String& symb) const
                                                   >> 365 {
                                                   >> 366   return elmBuilder->GetZ(symb);
                                                   >> 367 }
318                                                   368 
319 //....oooOO0OOooo........oooOO0OOooo........oo    369 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
320                                                   370 
321 inline G4double G4NistManager::GetAtomicMassAm    371 inline G4double G4NistManager::GetAtomicMassAmu(const G4String& symb) const
322 {                                                 372 {
323   return elmBuilder->GetAtomicMassAmu(symb);      373   return elmBuilder->GetAtomicMassAmu(symb);
324 }                                                 374 }
325                                                   375 
326 //....oooOO0OOooo........oooOO0OOooo........oo    376 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
327                                                   377 
328 inline G4double G4NistManager::GetAtomicMassAm    378 inline G4double G4NistManager::GetAtomicMassAmu(G4int Z) const
329 {                                                 379 {
330   return elmBuilder->GetAtomicMassAmu(Z);         380   return elmBuilder->GetAtomicMassAmu(Z);
331 }                                                 381 }
332                                                   382 
333 //....oooOO0OOooo........oooOO0OOooo........oo    383 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
334                                                   384 
335 inline G4double G4NistManager::GetIsotopeMass( << 385 inline 
                                                   >> 386 G4double G4NistManager::GetIsotopeMass(G4int Z, G4int N) const
336 {                                                 387 {
337   return elmBuilder->GetIsotopeMass(Z, N);        388   return elmBuilder->GetIsotopeMass(Z, N);
338 }                                                 389 }
339                                                   390 
340 //....oooOO0OOooo........oooOO0OOooo........oo    391 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
341                                                   392 
342 inline G4double G4NistManager::GetAtomicMass(G << 393 inline 
                                                   >> 394 G4double G4NistManager::GetAtomicMass(G4int Z, G4int N) const
343 {                                                 395 {
344   return elmBuilder->GetAtomicMass(Z, N);         396   return elmBuilder->GetAtomicMass(Z, N);
345 }                                                 397 }
346                                                   398 
347 //....oooOO0OOooo........oooOO0OOooo........oo    399 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
348                                                   400 
349 inline G4double G4NistManager::GetTotalElectro << 401 inline 
                                                   >> 402 G4double G4NistManager::GetTotalElectronBindingEnergy(G4int Z) const
350 {                                                 403 {
351   return elmBuilder->GetTotalElectronBindingEn    404   return elmBuilder->GetTotalElectronBindingEnergy(Z);
352 }                                                 405 }
353                                                   406 
354 //....oooOO0OOooo........oooOO0OOooo........oo    407 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
355                                                   408 
356 inline G4double G4NistManager::GetIsotopeAbund << 409 inline 
                                                   >> 410 G4double G4NistManager::GetIsotopeAbundance(G4int Z, G4int N) const
357 {                                                 411 {
358   return elmBuilder->GetIsotopeAbundance(Z, N)    412   return elmBuilder->GetIsotopeAbundance(Z, N);
359 }                                                 413 }
360                                                   414 
361 //....oooOO0OOooo........oooOO0OOooo........oo    415 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
362                                                   416 
363 inline G4int G4NistManager::GetNistFirstIsotop << 417 inline 
                                                   >> 418 G4int G4NistManager::GetNistFirstIsotopeN(G4int Z) const
364 {                                                 419 {
365   return elmBuilder->GetNistFirstIsotopeN(Z);     420   return elmBuilder->GetNistFirstIsotopeN(Z);
366 }                                                 421 }
367                                                   422 
368 //....oooOO0OOooo........oooOO0OOooo........oo    423 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
369                                                   424 
370 inline G4int G4NistManager::GetNumberOfNistIso << 425 inline 
                                                   >> 426 G4int G4NistManager::GetNumberOfNistIsotopes(G4int Z) const
371 {                                                 427 {
372   return elmBuilder->GetNumberOfNistIsotopes(Z    428   return elmBuilder->GetNumberOfNistIsotopes(Z);
373 }                                                 429 }
374                                                   430 
375 //....oooOO0OOooo........oooOO0OOooo........oo    431 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
376                                                   432 
377 inline const std::vector<G4String>& G4NistMana << 433 inline 
                                                   >> 434 const std::vector<G4String>& G4NistManager::GetNistElementNames() const
378 {                                                 435 {
379   return elmBuilder->GetElementNames();           436   return elmBuilder->GetElementNames();
380 }                                                 437 }
381                                                   438 
382 //....oooOO0OOooo........oooOO0OOooo........oo    439 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
383                                                   440 
384 inline G4double G4NistManager::GetMeanIonisati    441 inline G4double G4NistManager::GetMeanIonisationEnergy(G4int Z) const
385 {                                                 442 {
386   return matBuilder->GetMeanIonisationEnergy(Z    443   return matBuilder->GetMeanIonisationEnergy(Z);
387 }                                                 444 }
388                                                   445 
389 //....oooOO0OOooo........oooOO0OOooo........oo    446 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
390                                                   447 
391 inline G4double G4NistManager::GetNominalDensi    448 inline G4double G4NistManager::GetNominalDensity(G4int Z) const
392 {                                                 449 {
393   return matBuilder->GetNominalDensity(Z);        450   return matBuilder->GetNominalDensity(Z);
394 }                                                 451 }
395                                                   452 
396 //....oooOO0OOooo........oooOO0OOooo........oo    453 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
397                                                   454 
398 inline void G4NistManager::PrintElement(G4int  << 455 inline void G4NistManager::PrintElement(G4int Z) const
                                                   >> 456 {
                                                   >> 457   elmBuilder->PrintElement(Z);
                                                   >> 458 }
399                                                   459 
400 //....oooOO0OOooo........oooOO0OOooo........oo    460 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
401                                                   461 
402 inline G4Material* G4NistManager::GetMaterial( << 462 inline G4Material* G4NistManager::GetMaterial(size_t index) const
403 {                                                 463 {
                                                   >> 464   const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
404   return (index < theMaterialTable->size()) ?     465   return (index < theMaterialTable->size()) ? (*theMaterialTable)[index] : nullptr;
405 }                                                 466 }
406                                                   467 
407 //....oooOO0OOooo........oooOO0OOooo........oo    468 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
408                                                   469 
409 inline G4int G4NistManager::GetVerbose() const << 470 inline G4int G4NistManager::GetVerbose() const
                                                   >> 471 {
                                                   >> 472   return verbose;
                                                   >> 473 }
410                                                   474 
411 //....oooOO0OOooo........oooOO0OOooo........oo    475 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
412                                                   476 
413 inline G4Material* G4NistManager::FindMaterial << 477 inline
                                                   >> 478 G4Material* G4NistManager::FindMaterial(const G4String& name) const
414 {                                                 479 {
415   return matBuilder->FindMaterial(name);       << 480   return matBuilder->FindMaterial(name);  
416 }                                                 481 }
417                                                   482 
418 //....oooOO0OOooo........oooOO0OOooo........oo    483 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
419                                                   484 
420 inline G4Material* G4NistManager::FindOrBuildM << 485 inline
                                                   >> 486 G4Material* G4NistManager::FindOrBuildMaterial(const G4String& name,
                                                   >> 487                  G4bool, G4bool warning)
421 {                                                 488 {
422   return matBuilder->FindOrBuildMaterial(name,    489   return matBuilder->FindOrBuildMaterial(name, warning);
423 }                                                 490 }
424                                                   491 
425 //....oooOO0OOooo........oooOO0OOooo........oo    492 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
426                                                   493 
427 inline G4Material* G4NistManager::FindSimpleMa << 494 inline 
                                                   >> 495 G4Material* G4NistManager::FindSimpleMaterial(G4int Z) const
428 {                                                 496 {
429   return matBuilder->FindSimpleMaterial(Z);    << 497   return matBuilder->FindSimpleMaterial(Z);  
430 }                                                 498 }
431                                                   499 
432 //....oooOO0OOooo........oooOO0OOooo........oo    500 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
433                                                   501 
434 inline G4Material* G4NistManager::FindOrBuildS << 502 inline 
                                                   >> 503 G4Material* G4NistManager::FindOrBuildSimpleMaterial(G4int Z, G4bool warning)
435 {                                                 504 {
436   return matBuilder->FindOrBuildSimpleMaterial << 505   return matBuilder->FindOrBuildSimpleMaterial(Z, warning);  
437 }                                                 506 }
438                                                   507 
439 //....oooOO0OOooo........oooOO0OOooo........oo    508 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
440                                                   509 
441 inline G4Material* G4NistManager::ConstructNew << 510 inline G4Material* G4NistManager::ConstructNewMaterial(
442   const std::vector<G4String>& elm, const std: << 511                                       const G4String& name,
443   G4State state, G4double T, G4double P)       << 512                                       const std::vector<G4String>& elm,
                                                   >> 513                                       const std::vector<G4int>& nbAtoms,
                                                   >> 514               G4double dens, 
                                                   >> 515               G4bool,
                                                   >> 516               G4State   state,     
                                                   >> 517               G4double  T,  
                                                   >> 518               G4double  P) 
444                                                   519 
445 {                                                 520 {
446   return matBuilder->ConstructNewMaterial(name << 521   return 
                                                   >> 522     matBuilder->ConstructNewMaterial(name,elm,nbAtoms,dens,state,T,P);
447 }                                                 523 }
448                                                   524 
449 //....oooOO0OOooo........oooOO0OOooo........oo    525 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
450                                                   526 
451 inline G4Material* G4NistManager::ConstructNew << 527 inline G4Material* G4NistManager::ConstructNewMaterial(
452   const std::vector<G4String>& elm, const std: << 528                                       const G4String& name,
453   G4State state, G4double T, G4double P)       << 529                                       const std::vector<G4String>& elm,
                                                   >> 530                                       const std::vector<G4double>& w,
                                                   >> 531               G4double dens, 
                                                   >> 532               G4bool,
                                                   >> 533               G4State   state,     
                                                   >> 534               G4double  T,  
                                                   >> 535               G4double  P) 
454 {                                                 536 {
455   return matBuilder->ConstructNewMaterial(name << 537   return matBuilder->ConstructNewMaterial(name,elm,w,dens,state,T,P);
456 }                                                 538 }
457                                                   539 
458 //....oooOO0OOooo........oooOO0OOooo........oo    540 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
459                                                   541 
460 inline G4Material* G4NistManager::ConstructNew    542 inline G4Material* G4NistManager::ConstructNewGasMaterial(
461   const G4String& name, const G4String& nameNi << 543               const G4String& name,
                                                   >> 544                                       const G4String& nameNist,
                                                   >> 545               G4double temp, G4double pres, 
                                                   >> 546               G4bool)
462 {                                                 547 {
463   return matBuilder->ConstructNewGasMaterial(n << 548   return matBuilder->ConstructNewGasMaterial(name,nameNist,temp,pres);
464 }                                                 549 }
465                                                   550 
466 //....oooOO0OOooo........oooOO0OOooo........oo    551 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
467                                                   552 
468 inline G4Material* G4NistManager::ConstructNew << 553 inline G4Material* G4NistManager::ConstructNewIdealGasMaterial(
469   const std::vector<G4String>& elm, const std: << 554                                       const G4String& name,
470   G4double P)                                  << 555                                       const std::vector<G4String>& elm,
                                                   >> 556                                       const std::vector<G4int>& nbAtoms,
                                                   >> 557                                       G4bool,
                                                   >> 558                                       G4double  T,
                                                   >> 559                                       G4double  P)
471 {                                                 560 {
472   return matBuilder->ConstructNewIdealGasMater << 561   return
                                                   >> 562     matBuilder->ConstructNewIdealGasMaterial(name,elm,nbAtoms,T,P);
473 }                                                 563 }
474                                                   564 
475 //....oooOO0OOooo........oooOO0OOooo........oo    565 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
476                                                   566 
477 inline void G4NistManager::ListMaterials(const    567 inline void G4NistManager::ListMaterials(const G4String& list) const
478 {                                                 568 {
479   matBuilder->ListMaterials(list);                569   matBuilder->ListMaterials(list);
480 }                                                 570 }
481                                                   571 
482 //....oooOO0OOooo........oooOO0OOooo........oo    572 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
483                                                   573 
484 inline const std::vector<G4String>& G4NistMana << 574 inline
                                                   >> 575 const std::vector<G4String>& G4NistManager::GetNistMaterialNames() const
485 {                                                 576 {
486   return matBuilder->GetMaterialNames();          577   return matBuilder->GetMaterialNames();
487 }                                                 578 }
488                                                   579 
489 //....oooOO0OOooo........oooOO0OOooo........oo    580 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
490                                                   581 
491 inline G4double G4NistManager::GetZ13(G4double << 582 inline G4double G4NistManager::GetZ13(G4double A) const
                                                   >> 583 {
                                                   >> 584   return g4pow->A13(A);
                                                   >> 585 }
492                                                   586 
493 //....oooOO0OOooo........oooOO0OOooo........oo    587 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
494                                                   588 
495 inline G4double G4NistManager::GetZ13(G4int Z) << 589 inline G4double G4NistManager::GetZ13(G4int Z) const
                                                   >> 590 {
                                                   >> 591   return g4pow->Z13(Z);
                                                   >> 592 }
496                                                   593 
497 //....oooOO0OOooo........oooOO0OOooo........oo    594 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
498                                                   595 
499 inline G4double G4NistManager::GetA27(G4int Z)    596 inline G4double G4NistManager::GetA27(G4int Z) const
500 {                                                 597 {
501   return (0 <= Z && Z < 101) ? POWERA27[Z] : g    598   return (0 <= Z && Z < 101) ? POWERA27[Z] : g4pow->powZ(Z, 0.27);
502 }                                                 599 }
503                                                   600 
504 //....oooOO0OOooo........oooOO0OOooo........oo    601 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
505                                                   602 
506 inline G4double G4NistManager::GetLOGZ(G4int Z << 603 inline G4double G4NistManager::GetLOGZ(G4int Z) const
                                                   >> 604 {
                                                   >> 605   return g4pow->logZ(Z);
                                                   >> 606 }
507                                                   607 
508 //....oooOO0OOooo........oooOO0OOooo........oo    608 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
509                                                   609 
510 inline G4double G4NistManager::GetLOGAMU(G4int    610 inline G4double G4NistManager::GetLOGAMU(G4int Z) const
511 {                                                 611 {
512   return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0;    612   return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0;
513 }                                                 613 }
514                                                   614 
515 //....oooOO0OOooo........oooOO0OOooo........oo    615 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
516                                                   616 
517 #endif                                            617 #endif
                                                   >> 618 
518                                                   619