[824] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: G4NucleiPropertiesTable.hh,v 1.13 2006/06/29 19:23:56 gunter Exp $ |
---|
| 28 | // GEANT4 tag $Name: $ |
---|
| 29 | // |
---|
| 30 | // ------------------------------------------------------------------- |
---|
| 31 | // GEANT 4 class file --- Copyright CERN 1997 |
---|
| 32 | // CERN Geneva Switzerland |
---|
| 33 | // |
---|
| 34 | // |
---|
| 35 | // File name: G4NucleiPropertiesTable.cc |
---|
| 36 | // |
---|
| 37 | // Authors: Vicente Lara (Vicente.Lara@cern.ch) |
---|
| 38 | // Christian V"olcker (Christian.Volcker@cern.ch), |
---|
| 39 | // |
---|
| 40 | // Creation date: November 1997 |
---|
| 41 | // |
---|
| 42 | // Testfiles: |
---|
| 43 | // |
---|
| 44 | // Modifications: |
---|
| 45 | // |
---|
| 46 | // Migrate into particles category by H.Kurashige (17 Nov. 98) |
---|
| 47 | // Subtract electron mass by H.Kurashige |
---|
| 48 | // Avoid substraction of electron mass in Atomic masses by V.Lara (12 May 99) |
---|
| 49 | // Remove "theInstance" by H.Kurashige (12 Dec. 03) |
---|
| 50 | // ------------------------------------------------------------------- |
---|
| 51 | #include "globals.hh" |
---|
| 52 | #include <cmath> |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | #ifndef G4NucleiPropertiesTable_h |
---|
| 56 | #define G4NucleiPropertiesTable_h 1 |
---|
| 57 | |
---|
| 58 | // Class Description |
---|
| 59 | // Class: G4NucleiPropertiesTable |
---|
| 60 | // Encapsulates Data from G. Audi and A.H. Wapstra, Nucl. |
---|
| 61 | // Physics,A595 vol 4 p 409-480, |
---|
| 62 | // 25. Dec. 1995. |
---|
| 63 | // Name, Z, A, |
---|
| 64 | // Mass Excess |
---|
| 65 | // Binding Energy |
---|
| 66 | // Beta Decay Energy |
---|
| 67 | // Atomic Mass |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | class G4NucleiPropertiesTable |
---|
| 71 | { |
---|
| 72 | private: |
---|
| 73 | |
---|
| 74 | // Default constructor - this class should exist only once! |
---|
| 75 | G4NucleiPropertiesTable(){}; |
---|
| 76 | |
---|
| 77 | public: |
---|
| 78 | |
---|
| 79 | // Destructor (generated) |
---|
| 80 | ~G4NucleiPropertiesTable() { }; |
---|
| 81 | |
---|
| 82 | enum {nEntries = 2931,MaxA = 273}; |
---|
| 83 | |
---|
| 84 | // Other Operations |
---|
| 85 | public: // With Description |
---|
| 86 | |
---|
| 87 | // Operation: GetMassExcess |
---|
| 88 | static G4double GetMassExcess(G4int Z, G4int A); |
---|
| 89 | |
---|
| 90 | // Operation: GetNuclearMass |
---|
| 91 | static G4double GetNuclearMass(G4int Z, G4int A); |
---|
| 92 | |
---|
| 93 | // Operation: GetBindingEnergy |
---|
| 94 | static G4double GetBindingEnergy(G4int Z, G4int A); |
---|
| 95 | |
---|
| 96 | // Operation: GetBetaDecayEnergy |
---|
| 97 | static G4double GetBetaDecayEnergy(G4int Z, G4int A); |
---|
| 98 | |
---|
| 99 | // Operation: GetAtomicMass .. in Geant4 Energy units! |
---|
| 100 | static G4double GetAtomicMass(G4int Z, G4int A); |
---|
| 101 | |
---|
| 102 | // Is the nucleus (A,Z) in table? |
---|
| 103 | static G4bool IsInTable(G4int Z, G4int A); |
---|
| 104 | |
---|
| 105 | static G4int MaxZ(G4int A); |
---|
| 106 | static G4int MinZ(G4int A); |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | private: |
---|
| 110 | |
---|
| 111 | // Operation: GetIndex |
---|
| 112 | static G4int GetIndex(G4int Z, G4int A); |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | // Data Members for Class Attributes |
---|
| 116 | //---------------------------------- |
---|
| 117 | |
---|
| 118 | // The following arrays are static for allow inicialization. |
---|
| 119 | // The inicialization is Done in G4NucleiPropertiesTable.cc |
---|
| 120 | |
---|
| 121 | // Mass Excess |
---|
| 122 | static G4double MassExcess[nEntries]; |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | // Beta Decay Energy |
---|
| 126 | static G4double BetaEnergy[nEntries]; |
---|
| 127 | |
---|
| 128 | |
---|
| 129 | // Table of Z (number of protons) and A (number of nucleons) |
---|
| 130 | // indexArray[0][ ] --> Z |
---|
| 131 | // indexArray[1][ ] --> A |
---|
| 132 | static G4int indexArray[2][nEntries]; |
---|
| 133 | |
---|
| 134 | // Reduced Table of A for shorter index search. |
---|
| 135 | // The index in this table coincide with A-1 |
---|
| 136 | // For each A value shortTable[A-1] has the index of the 1st occurrence in |
---|
| 137 | // the indexArray[][] |
---|
| 138 | static G4int shortTable[MaxA+1]; |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | }; |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | #endif |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | |
---|