Geant4  10.03.p03
 All Classes 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 99159 2016-09-07 08:11:50Z 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"
46 
48 {
49  // Class Description
50  // G4NucleiProperties is an utility class to provide mass formula of nuclei
51  // (i.e. it has static member function only)
52 
53 public:
54 
55  // Destructor
57 
58  // Default constructor ()
60 
61 
62 public: // With Description
63 
64  // Give mass of nucleus A,Z
65  static G4double GetNuclearMass(const G4double A, const G4double Z);
66  static G4double GetNuclearMass(const G4int A, const G4int Z);
67 
68  // return 'true' if the nucleus in the stable table
69  // (i.e.in G4NucleiPropertiesTable)
70  static bool IsInStableTable(const G4double A, const G4double Z);
71  static bool IsInStableTable(const G4int A, const G4int Z);
72 
73  // Give binding energy
74  static G4double GetBindingEnergy(const G4int A, const G4int Z);
75  static G4double GetBindingEnergy(const G4double A, const G4double Z);
76 
77  // Calculate Mass Excess of nucleus A,Z
78  static G4double GetMassExcess(const G4int A, const G4int Z);
79  static G4double GetMassExcess(const G4double A, const G4double Z);
80 
81  //Swich AME table in use
82  static void UseOldAMETable( G4bool val = true );
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  static G4bool use_old_evaluation;
113 
114 };
115 
116 
117 
118 #endif
119 
120 
121 
122 
123 
124 
125 
126 
static G4double GetNuclearMass(const G4double A, const G4double Z)
#define G4ThreadLocal
Definition: tls.hh:89
int G4int
Definition: G4Types.hh:78
static void UseOldAMETable(G4bool val=true)
static G4double GetMassExcess(const G4int A, const G4int Z)
double A(double temperature)
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