Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NucleiProperties.hh
Go to the documentation of this file.
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: G4NucleiProperties.hh 67971 2013-03-13 10:13:24Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // ------------------------------------------------------------
34 // Hadronic Process: Nuclear De-excitations by V. Lara (Oct 1998)
35 // Migrate into particles category by H.Kurashige (17 Nov. 98)
36 // Added Shell-Pairing corrections to the Cameron mass
37 // excess formula by V.Lara (9 May 99)
38 //
39 // 090331 Migrate to AME03 by Koi, Tatsumi
40 
41 #ifndef G4NucleiProperties_h
42 #define G4NucleiProperties_h 1
43 
44 #include "globals.hh"
45 #include "G4ios.hh"
48 #include "G4ParticleTable.hh"
49 
51 {
52  // Class Description
53  // G4NucleiProperties is an utility class to provide mass formula of nuclei
54  // (i.e. it has static member function only)
55 
56 public:
57 
58  // Destructor
60 
61  // Default constructor ()
63 
64 
65 public: // With Description
66 
67  // Give mass of nucleus A,Z
68  static G4double GetNuclearMass(const G4double A, const G4double Z);
69  static G4double GetNuclearMass(const G4int A, const G4int Z);
70 
71  // return 'true' if the nucleus in the stable table
72  // (i.e.in G4NucleiPropertiesTable)
73  static bool IsInStableTable(const G4double A, const G4double Z);
74  static bool IsInStableTable(const G4int A, const G4int Z);
75 
76  // Give binding energy
77  static G4double GetBindingEnergy(const G4int A, const G4int Z);
78  static G4double GetBindingEnergy(const G4double A, const G4double Z);
79 
80  // Calculate Mass Excess of nucleus A,Z
81  static G4double GetMassExcess(const G4int A, const G4int Z);
82  static G4double GetMassExcess(const G4double A, const G4double Z);
83 
84 private:
85  // hidie methods to enforce using GetNuclearMass
86  // Give mass of Atom A,Z
87  static G4double GetAtomicMass(const G4double A, const G4double Z);
88 
89 private:
90 
91  static G4double AtomicMass(G4double A, G4double Z);
92 
93  static G4double NuclearMass(G4double A, G4double Z);
94 
95  static G4double BindingEnergy(G4double A, G4double Z);
96 
97  static G4double MassExcess(G4double A, G4double Z);
98 
99 private:
100  // table of orbit electrons mass - binding energy
101  enum {MaxZ = 120};
102  static G4ThreadLocal G4double electronMass[MaxZ];
103 
104 private:
105  static G4ThreadLocal G4bool isIntialized;
106  static G4ThreadLocal G4double mass_proton;
107  static G4ThreadLocal G4double mass_neutron;
108  static G4ThreadLocal G4double mass_deuteron;
109  static G4ThreadLocal G4double mass_triton;
110  static G4ThreadLocal G4double mass_alpha;
111  static G4ThreadLocal G4double mass_He3;
112 
113 };
114 
115 
116 
117 #endif
118 
119 
120 
121 
122 
123 
124 
125 
static G4double GetNuclearMass(const G4double A, const G4double Z)
#define G4ThreadLocal
Definition: tls.hh:52
int G4int
Definition: G4Types.hh:78
static G4double GetMassExcess(const G4int A, const G4int Z)
bool G4bool
Definition: G4Types.hh:79
static bool IsInStableTable(const G4double A, const G4double Z)
static G4double GetBindingEnergy(const G4int A, const G4int Z)
double G4double
Definition: G4Types.hh:76