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