Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // G4IonTable 26 // G4IonTable 27 // 27 // 28 // Class description: 28 // Class description: 29 // 29 // 30 // G4IonTable stores all pointers to G4Particl 30 // G4IonTable stores all pointers to G4ParticleDefinition. 31 31 32 // Author: H.Kurashige, 27 June 1998 32 // Author: H.Kurashige, 27 June 1998 33 // ------------------------------------------- 33 // -------------------------------------------------------------------- 34 #ifndef G4IonTable_hh 34 #ifndef G4IonTable_hh 35 #define G4IonTable_hh 1 35 #define G4IonTable_hh 1 36 36 37 #include "G4Ions.hh" 37 #include "G4Ions.hh" 38 #include "G4ParticleDefinition.hh" 38 #include "G4ParticleDefinition.hh" 39 #include "G4ParticleTable.hh" 39 #include "G4ParticleTable.hh" 40 #include "G4ios.hh" 40 #include "G4ios.hh" 41 #include "globals.hh" 41 #include "globals.hh" 42 42 43 #include <cmath> 43 #include <cmath> 44 #include <map> 44 #include <map> 45 #include <vector> 45 #include <vector> 46 46 47 class G4ParticleTable; 47 class G4ParticleTable; 48 class G4VIsotopeTable; 48 class G4VIsotopeTable; 49 class G4IsotopeProperty; 49 class G4IsotopeProperty; 50 class G4NuclideTable; 50 class G4NuclideTable; 51 51 52 class G4IonTable 52 class G4IonTable 53 { 53 { 54 public: 54 public: 55 using G4IonList = std::multimap<G4int, con 55 using G4IonList = std::multimap<G4int, const G4ParticleDefinition*>; 56 using G4IonListIterator = std::multimap<G4 56 using G4IonListIterator = std::multimap<G4int, const G4ParticleDefinition*>::iterator; 57 57 58 // Constructor, destructor 58 // Constructor, destructor 59 G4IonTable(); 59 G4IonTable(); 60 ~G4IonTable(); 60 ~G4IonTable(); 61 61 62 // Forbidden copy constructor and assignme 62 // Forbidden copy constructor and assignment operator 63 G4IonTable(const G4IonTable&) = delete; 63 G4IonTable(const G4IonTable&) = delete; 64 G4IonTable& operator=(const G4IonTable&) = 64 G4IonTable& operator=(const G4IonTable&) = delete; 65 65 66 static G4IonTable* GetIonTable(); 66 static G4IonTable* GetIonTable(); 67 67 68 // Method is used by each worker thread to 68 // Method is used by each worker thread to copy the content 69 // from the master thread. 69 // from the master thread. 70 void WorkerG4IonTable(); 70 void WorkerG4IonTable(); 71 71 72 // Destructor for worker 72 // Destructor for worker 73 void DestroyWorkerG4IonTable(); 73 void DestroyWorkerG4IonTable(); 74 74 75 // Get number of elements defined in the I 75 // Get number of elements defined in the IonTable 76 G4int GetNumberOfElements() const; 76 G4int GetNumberOfElements() const; 77 77 78 // Register Isotope table 78 // Register Isotope table 79 void RegisterIsotopeTable(G4VIsotopeTable* 79 void RegisterIsotopeTable(G4VIsotopeTable* table); 80 80 81 // G4IonTable asks properties of isotopes 81 // G4IonTable asks properties of isotopes to G4VIsotopeTable 82 // by using FindIsotope(G4IsotopeProperty* 82 // by using FindIsotope(G4IsotopeProperty* property) method 83 G4VIsotopeTable* GetIsotopeTable(std::size 83 G4VIsotopeTable* GetIsotopeTable(std::size_t idx = 0) const; 84 84 85 // All ground state ions are created. 85 // All ground state ions are created. 86 // Stable ground states are defined in G4N 86 // Stable ground states are defined in G4NuclearProperty 87 void CreateAllIon(); 87 void CreateAllIon(); 88 88 89 // All excited ions with long life time (> 89 // All excited ions with long life time (>1.0*ns) are created. 90 // Isomers are defined in G4VIsotopeTable 90 // Isomers are defined in G4VIsotopeTable 91 void CreateAllIsomer(); 91 void CreateAllIsomer(); 92 92 93 // All nuclide with a life time longer tha 93 // All nuclide with a life time longer than certain value are created 94 // prior to the event loop 94 // prior to the event loop 95 void PrepareNuclideTable(); 95 void PrepareNuclideTable(); 96 void PreloadNuclide(); 96 void PreloadNuclide(); 97 97 98 // --------------------------------------- 98 // -------------------------------------------------------------- 99 // FindIon/GetIon 99 // FindIon/GetIon 100 // FindIon() methods return pointer of i 100 // FindIon() methods return pointer of ion if it exists. 101 // GetIon() methods also return pointer 101 // GetIon() methods also return pointer of ion; the designated 102 // ion is created if it does not exist. 102 // ion is created if it does not exist. 103 // 103 // 104 // !! PDGCharge in G4ParticleDefinition of 104 // !! PDGCharge in G4ParticleDefinition of ions is !! 105 // !! electric charge of nucleus (i.e. ful 105 // !! electric charge of nucleus (i.e. fully ionized ions) !! 106 // --------------------------------------- 106 // -------------------------------------------------------------- 107 107 108 // Find/Get "ground state" and "excited st 108 // Find/Get "ground state" and "excited state" 109 // 109 // 110 G4ParticleDefinition* GetIon(G4int Z, G4in 110 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int lvl = 0); 111 G4ParticleDefinition* GetIon(G4int Z, G4in 111 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int nL, G4int lvl); 112 G4ParticleDefinition* GetIon(G4int Z, G4in 112 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4double E, G4int J = 0); 113 G4ParticleDefinition* GetIon(G4int Z, G4in 113 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb, 114 G4int J = 0); 114 G4int J = 0); 115 G4ParticleDefinition* GetIon(G4int Z, G4in 115 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4double E, char flbChar, G4int J = 0); 116 G4ParticleDefinition* GetIon(G4int Z, G4in 116 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int nL, G4double E, G4int J = 0); 117 G4ParticleDefinition* GetIon(G4int Z, G4in 117 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int nL, G4double E, 118 G4Ions::G4Flo 118 G4Ions::G4FloatLevelBase flb, G4int J = 0); 119 G4ParticleDefinition* GetIon(G4int Z, G4in 119 G4ParticleDefinition* GetIon(G4int Z, G4int A, G4int nL, G4double E, char flbChar, G4int J = 0); 120 // Z: Atomic Number 120 // Z: Atomic Number 121 // A: Atomic Mass (nn + np +nlambda) 121 // A: Atomic Mass (nn + np +nlambda) 122 // nL: Number of Lambda 122 // nL: Number of Lambda 123 // E: Excitation energy 123 // E: Excitation energy 124 // lvl: Isomer Level 0: ground state) 124 // lvl: Isomer Level 0: ground state) 125 // flb: Floating level base (enum defined 125 // flb: Floating level base (enum defined in G4Ions.hh) 126 // flbChar: Floating level base denoted b 126 // flbChar: Floating level base denoted by a character 127 // (<null>,X,Y,Z,U,V,W,R,S,T,A,B 127 // (<null>,X,Y,Z,U,V,W,R,S,T,A,B,C,D,E) 128 // J: Total Angular momentum (in unit of 1 128 // J: Total Angular momentum (in unit of 1/2) : not used 129 129 130 // The ion can be retrieved by using PDG e 130 // The ion can be retrieved by using PDG encoding 131 // !! Only ground state can be obtained .i 131 // !! Only ground state can be obtained .i.e. Isomer = 0 132 G4ParticleDefinition* GetIon(G4int encodin 132 G4ParticleDefinition* GetIon(G4int encoding); 133 133 134 // Find/Get "excited state" 134 // Find/Get "excited state" 135 // 135 // 136 G4ParticleDefinition* FindIon(G4int Z, G4i 136 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int lvl = 0); 137 G4ParticleDefinition* FindIon(G4int Z, G4i 137 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int nL, G4int lvl); 138 G4ParticleDefinition* FindIon(G4int Z, G4i 138 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4double E, G4int J = 0); 139 G4ParticleDefinition* FindIon(G4int Z, G4i 139 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb, 140 G4int J = 0) 140 G4int J = 0); 141 G4ParticleDefinition* FindIon(G4int Z, G4i 141 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4double E, char flbChar, G4int J = 0); 142 G4ParticleDefinition* FindIon(G4int Z, G4i 142 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int nL, G4double E, G4int J = 0); 143 G4ParticleDefinition* FindIon(G4int Z, G4i 143 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int nL, G4double E, 144 G4Ions::G4Fl 144 G4Ions::G4FloatLevelBase flb, G4int J = 0); 145 G4ParticleDefinition* FindIon(G4int Z, G4i 145 G4ParticleDefinition* FindIon(G4int Z, G4int A, G4int nL, G4double E, char flbChar, 146 G4int J = 0) 146 G4int J = 0); 147 // Z: Atomic Number 147 // Z: Atomic Number 148 // A: Atomic Mass (nn + np +nlambda) 148 // A: Atomic Mass (nn + np +nlambda) 149 // nL: Number of Lambda 149 // nL: Number of Lambda 150 // E: Excitaion energy 150 // E: Excitaion energy 151 // lvl: Isomer Level 0: ground state) 151 // lvl: Isomer Level 0: ground state) 152 // flb: Floating level base (enum defined 152 // flb: Floating level base (enum defined in G4Ions.hh) 153 // flbChar: Floating level base denoted b 153 // flbChar: Floating level base denoted by a character 154 // (<null>,X,Y,Z,U,V,W,R,S,T,A,B 154 // (<null>,X,Y,Z,U,V,W,R,S,T,A,B,C,D,E) 155 // J: Total Angular momentum (in unit of 1 155 // J: Total Angular momentum (in unit of 1/2) : not used 156 156 157 // Return true if the particle is ion 157 // Return true if the particle is ion 158 static G4bool IsIon(const G4ParticleDefini 158 static G4bool IsIon(const G4ParticleDefinition*); 159 159 160 // Return true if the particle is anti_ion 160 // Return true if the particle is anti_ion 161 static G4bool IsAntiIon(const G4ParticleDe 161 static G4bool IsAntiIon(const G4ParticleDefinition*); 162 162 163 // Get ion name 163 // Get ion name 164 G4String GetIonName(G4int Z, G4int A, G4in 164 G4String GetIonName(G4int Z, G4int A, G4int lvl = 0) const; 165 G4String GetIonName(G4int Z, G4int A, G4do 165 G4String GetIonName(G4int Z, G4int A, G4double E, 166 G4Ions::G4FloatLevelBa 166 G4Ions::G4FloatLevelBase flb = G4Ions::G4FloatLevelBase::no_Float) const; 167 G4String GetIonName(G4int Z, G4int A, G4in 167 G4String GetIonName(G4int Z, G4int A, G4int nL, G4double E, 168 G4Ions::G4FloatLevelBa 168 G4Ions::G4FloatLevelBase flb = G4Ions::G4FloatLevelBase::no_Float) const; 169 G4String GetIonName(G4int Z, G4int A, G4in 169 G4String GetIonName(G4int Z, G4int A, G4int nL, G4int lvl) const; 170 170 171 // Get PDG code for Ions. 171 // Get PDG code for Ions. 172 // Nuclear codes are given as 10-digit num 172 // Nuclear codes are given as 10-digit numbers +-100ZZZAAAI. 173 // For a nucleus consisting of np protons 173 // For a nucleus consisting of np protons and nn neutrons 174 // A = np + nn and Z = np. 174 // A = np + nn and Z = np. 175 // I gives the isomer level, with I = 0 co 175 // I gives the isomer level, with I = 0 corresponding 176 // to the ground state and I >0 to excitat 176 // to the ground state and I >0 to excitations 177 static G4int GetNucleusEncoding(G4int Z, G 177 static G4int GetNucleusEncoding(G4int Z, G4int A, G4double E = 0.0, G4int lvl = 0); 178 178 179 // Get PDG code for Hyper-Nucleus Ions. 179 // Get PDG code for Hyper-Nucleus Ions. 180 // Nuclear codes are given as 10-digit num 180 // Nuclear codes are given as 10-digit numbers +-10LZZZAAAI. 181 // For a nucleus consisting of np protons 181 // For a nucleus consisting of np protons and nn neutrons 182 // A = np + nn +nlambda and Z = np. 182 // A = np + nn +nlambda and Z = np. 183 // nL = nlambda 183 // nL = nlambda 184 // I gives the isomer level, with I = 0 co 184 // I gives the isomer level, with I = 0 corresponding 185 // to the ground state and I >0 to excitat 185 // to the ground state and I >0 to excitations 186 static G4int GetNucleusEncoding(G4int Z, G 186 static G4int GetNucleusEncoding(G4int Z, G4int A, G4int nL, G4double E = 0.0, G4int lvl = 0); 187 187 188 static G4bool GetNucleusByEncoding(G4int e 188 static G4bool GetNucleusByEncoding(G4int encoding, G4int& Z, G4int& A, G4double& E, G4int& lvl); 189 static G4bool GetNucleusByEncoding(G4int e 189 static G4bool GetNucleusByEncoding(G4int encoding, G4int& Z, G4int& A, G4int& L, G4double& E, 190 G4int& 190 G4int& lvl); 191 // Energy will not be given even for excit 191 // Energy will not be given even for excited state!! 192 192 193 // These methods returns Nucleus (i.e. ful 193 // These methods returns Nucleus (i.e. full ionized atom) mass, where 194 // Z is Atomic Number (number of protons) 194 // Z is Atomic Number (number of protons) and 195 // A is Atomic Number (number of nucleons 195 // A is Atomic Number (number of nucleons and hyperons) 196 // nL is number of lambda (A= nn + np + n 196 // nL is number of lambda (A= nn + np + nlambda) 197 // lvl is isomer level 197 // lvl is isomer level 198 G4double GetIonMass(G4int Z, G4int A, G4in 198 G4double GetIonMass(G4int Z, G4int A, G4int nL = 0, G4int lvl = 0) const; 199 G4double GetNucleusMass(G4int Z, G4int A, 199 G4double GetNucleusMass(G4int Z, G4int A, G4int nL = 0, G4int lvl = 0) const; 200 G4double GetIsomerMass(G4int Z, G4int A, G 200 G4double GetIsomerMass(G4int Z, G4int A, G4int lvl = 0) const; 201 201 202 // Returns a life time of an ion. -1 for s 202 // Returns a life time of an ion. -1 for stable ion, and -1001 for ion 203 // that is not listed in G4NuclideTable 203 // that is not listed in G4NuclideTable 204 G4double GetLifeTime(const G4ParticleDefin 204 G4double GetLifeTime(const G4ParticleDefinition*) const; 205 G4double GetLifeTime(G4int Z, G4int A, G4d 205 G4double GetLifeTime(G4int Z, G4int A, G4double E, 206 G4Ions::G4FloatLevelB 206 G4Ions::G4FloatLevelBase flb = G4Ions::G4FloatLevelBase::no_Float) const; 207 G4double GetLifeTime(G4int Z, G4int A, G4d 207 G4double GetLifeTime(G4int Z, G4int A, G4double E, char flbChar) const; 208 208 209 G4ParticleDefinition* GetMuonicAtom(G4Ions 209 G4ParticleDefinition* GetMuonicAtom(G4Ions const*); 210 G4ParticleDefinition* GetMuonicAtom(G4int 210 G4ParticleDefinition* GetMuonicAtom(G4int Z, G4int A); 211 211 212 // Return number of ions in the table 212 // Return number of ions in the table 213 G4int Entries() const; 213 G4int Entries() const; 214 214 215 // Return the pointer of index-th ion in t 215 // Return the pointer of index-th ion in the table 216 G4ParticleDefinition* GetParticle(G4int in 216 G4ParticleDefinition* GetParticle(G4int index) const; 217 217 218 // Return 'true' if the ion exists 218 // Return 'true' if the ion exists 219 G4bool Contains(const G4ParticleDefinition 219 G4bool Contains(const G4ParticleDefinition* particle) const; 220 220 221 // Insert/Remove an ion in the table 221 // Insert/Remove an ion in the table 222 void Insert(const G4ParticleDefinition* pa 222 void Insert(const G4ParticleDefinition* particle); 223 void Remove(const G4ParticleDefinition* pa 223 void Remove(const G4ParticleDefinition* particle); 224 224 225 // Erase all contents in the list (not del 225 // Erase all contents in the list (not delete just remove) 226 void clear(); 226 void clear(); 227 227 228 // Return number of ions in the table 228 // Return number of ions in the table 229 G4int size() const; 229 G4int size() const; 230 230 231 // Dump information of particles specified 231 // Dump information of particles specified by name 232 void DumpTable(const G4String& particle_na 232 void DumpTable(const G4String& particle_name = "ALL") const; 233 233 234 public: 234 public: 235 // Needed for MT 235 // Needed for MT 236 void InitializeLightIons(); 236 void InitializeLightIons(); 237 237 238 // It is very important for multithreaded 238 // It is very important for multithreaded Geant4 to keep only one copy of 239 // the particle table pointer and the ion 239 // the particle table pointer and the ion table pointer. However, we try 240 // to let each worker thread hold its own 240 // to let each worker thread hold its own copy of the particle dictionary 241 // and the ion list. This implementation i 241 // and the ion list. This implementation is equivalent to make the ion 242 // table thread private. The two shadow po 242 // table thread private. The two shadow ponters are used by each worker 243 // thread to copy the content from the mas 243 // thread to copy the content from the master thread 244 static G4ThreadLocal G4IonList* fIonList; 244 static G4ThreadLocal G4IonList* fIonList; 245 static G4ThreadLocal std::vector<G4VIsotop 245 static G4ThreadLocal std::vector<G4VIsotopeTable*>* fIsotopeTableList; 246 static G4IonList* fIonListShadow; 246 static G4IonList* fIonListShadow; 247 static std::vector<G4VIsotopeTable*>* fIso 247 static std::vector<G4VIsotopeTable*>* fIsotopeTableListShadow; 248 248 249 enum 249 enum 250 { 250 { 251 numberOfElements = 118 251 numberOfElements = 118 252 }; 252 }; 253 static const G4String elementName[numberOf 253 static const G4String elementName[numberOfElements]; 254 254 255 #ifdef G4MULTITHREADED 255 #ifdef G4MULTITHREADED 256 static G4Mutex ionTableMutex; 256 static G4Mutex ionTableMutex; 257 #endif 257 #endif 258 258 259 protected: 259 protected: 260 G4ParticleDefinition* FindIonInMaster(G4in 260 G4ParticleDefinition* FindIonInMaster(G4int Z, G4int A, G4int lvl = 0); 261 G4ParticleDefinition* FindIonInMaster(G4in 261 G4ParticleDefinition* FindIonInMaster(G4int Z, G4int A, G4int nL, G4int lvl); 262 G4ParticleDefinition* FindIonInMaster(G4in 262 G4ParticleDefinition* FindIonInMaster(G4int Z, G4int A, G4double E, 263 G4Io 263 G4Ions::G4FloatLevelBase flb, G4int J = 0); 264 G4ParticleDefinition* FindIonInMaster(G4in 264 G4ParticleDefinition* FindIonInMaster(G4int Z, G4int A, G4int nL, G4double E, 265 G4Io 265 G4Ions::G4FloatLevelBase flb, G4int J = 0); 266 266 267 G4ParticleDefinition* CreateIon(G4int Z, G 267 G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4double E, G4Ions::G4FloatLevelBase flb); 268 G4ParticleDefinition* CreateIon(G4int Z, G 268 G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4int nL, G4double E, 269 G4Ions::G4 269 G4Ions::G4FloatLevelBase flb); 270 G4ParticleDefinition* CreateIon(G4int Z, G 270 G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4int lvl = 0); 271 G4ParticleDefinition* CreateIon(G4int Z, G 271 G4ParticleDefinition* CreateIon(G4int Z, G4int A, G4int nL, G4int lvl); 272 272 273 void InsertWorker(const G4ParticleDefiniti 273 void InsertWorker(const G4ParticleDefinition* particle); 274 274 275 // Create Ion 275 // Create Ion 276 276 277 G4IsotopeProperty* FindIsotope(G4int Z, G4 277 G4IsotopeProperty* FindIsotope(G4int Z, G4int A, G4double E, 278 G4Ions::G4F 278 G4Ions::G4FloatLevelBase flb) const; 279 G4IsotopeProperty* FindIsotope(G4int Z, G4 279 G4IsotopeProperty* FindIsotope(G4int Z, G4int A, G4int lvl) const; 280 // Ask properties of isotopes 280 // Ask properties of isotopes 281 281 282 G4ParticleDefinition* GetLightIon(G4int Z, 282 G4ParticleDefinition* GetLightIon(G4int Z, G4int A) const; 283 G4ParticleDefinition* GetLightAntiIon(G4in 283 G4ParticleDefinition* GetLightAntiIon(G4int Z, G4int A) const; 284 284 285 // Return true if the particle is pre-defi 285 // Return true if the particle is pre-defined ion 286 G4bool IsLightIon(const G4ParticleDefiniti 286 G4bool IsLightIon(const G4ParticleDefinition*) const; 287 G4bool IsLightAntiIon(const G4ParticleDefi 287 G4bool IsLightAntiIon(const G4ParticleDefinition*) const; 288 288 289 // Add process manager to ions with name o 289 // Add process manager to ions with name of 'ionName' 290 void AddProcessManager(G4ParticleDefinitio 290 void AddProcessManager(G4ParticleDefinition*); 291 291 292 // Get Verbose Level defined in G4Particle 292 // Get Verbose Level defined in G4ParticleTable 293 G4int GetVerboseLevel() const; 293 G4int GetVerboseLevel() const; 294 294 295 private: 295 private: 296 G4NuclideTable* pNuclideTable = nullptr; 296 G4NuclideTable* pNuclideTable = nullptr; 297 297 298 // Isomer table and flag of creation 298 // Isomer table and flag of creation 299 G4bool isIsomerCreated = false; 299 G4bool isIsomerCreated = false; 300 }; 300 }; 301 301 302 // ------------------------ 302 // ------------------------ 303 // Inline methods 303 // Inline methods 304 // ------------------------ 304 // ------------------------ 305 305 306 inline G4int G4IonTable::GetNumberOfElements() 306 inline G4int G4IonTable::GetNumberOfElements() const 307 { 307 { 308 return numberOfElements; 308 return numberOfElements; 309 } 309 } 310 310 311 #endif 311 #endif 312 312