Geant4  10.00.p02
G4NucleiProperties.cc
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.cc 69015 2013-04-15 09:46:48Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // ------------------------------------------------------------
34 //
35 // Hadronic Process: Nuclear De-excitations
36 // by V. Lara (Oct 1998)
37 // Migrate into particles category by H.Kurashige (17 Nov. 98)
38 // Added Shell-Pairing corrections to the Cameron mass
39 // excess formula by V.Lara (9 May 99)
40 // 090331 Migrate to AME03 by Koi, Tatsumi
41 
42 #include "G4NucleiProperties.hh"
43 #include "G4PhysicalConstants.hh"
44 #include "G4SystemOfUnits.hh"
45 
52 
54 {
55  G4double mass=0.0;
56 
57  if (std::fabs(A - G4int(A)) > 1.e-10) {
58  mass = NuclearMass(A,Z);
59 
60  } else {
61  // use mass table
62  G4int iZ = G4int(Z);
63  G4int iA = G4int(A);
64  mass =GetNuclearMass(iA,iZ);
65  }
66 
67  return mass;
68 }
69 
70 
72 {
73  if (mass_proton <= 0.0 ) {
74  const G4ParticleDefinition * nucleus = 0;
75  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("proton"); // proton
76  if (nucleus!=0) mass_proton = nucleus->GetPDGMass();
77  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("neutron"); // neutron
78  if (nucleus!=0) mass_neutron = nucleus->GetPDGMass();
79  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("deuteron"); // deuteron
80  if (nucleus!=0) mass_deuteron = nucleus->GetPDGMass();
81  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("triton"); // triton
82  if (nucleus!=0) mass_triton = nucleus->GetPDGMass();
83  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("alpha"); // alpha
84  if (nucleus!=0) mass_alpha = nucleus->GetPDGMass();
85  nucleus = G4ParticleTable::GetParticleTable()->FindParticle("He3"); // He3
86  if (nucleus!=0) mass_He3 = nucleus->GetPDGMass();
87 
88  }
89 
90  if (A < 1 || Z < 0 || Z > A) {
91 #ifdef G4VERBOSE
92  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
93  G4cout << "G4NucleiProperties::GetNuclearMass: Wrong values for A = " << A
94  << " and Z = " << Z << G4endl;
95  }
96 #endif
97  return 0.0;
98  }
99 
100  G4double mass= -1.;
101  if ( (Z<=2) ) {
102  // light nuclei
103  if ( (Z==1)&&(A==1) ) {
104  mass = mass_proton;
105  } else if ( (Z==0)&&(A==1) ) {
106  mass = mass_neutron;
107  } else if ( (Z==1)&&(A==2) ) {
108  mass = mass_deuteron;
109  } else if ( (Z==1)&&(A==3) ) {
110  mass = mass_triton;
111  } else if ( (Z==2)&&(A==4) ) {
112  mass = mass_alpha;
113  } else if ( (Z==2)&&(A==3) ) {
114  mass = mass_He3;
115  }
116  }
117 
118  if (mass < 0.) {
120  // AME 03 table
123  // Theoretical table
125  } else {
126  mass = NuclearMass(G4double(A),G4double(Z));
127  }
128  }
129 
130  if (mass < 0.) mass = 0.0;
131  return mass;
132 }
133 
135 {
136  G4int iA = G4int(A);
137  G4int iZ = G4int(Z);
138  return IsInStableTable(iA, iZ);
139 }
140 
142 {
143  if (A < 1 || Z < 0 || Z > A) {
144 #ifdef G4VERBOSE
145  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
146  G4cout << "G4NucleiProperties::IsInStableTable: Wrong values for A = "
147  << A << " and Z = " << Z << G4endl;
148  }
149 #endif
150  return false;
151  }
152 
154 
155 }
156 
158 {
159  G4int iA = G4int(A);
160  G4int iZ = G4int(Z);
161  return GetMassExcess(iA,iZ);
162 }
163 
165 {
166  if (A < 1 || Z < 0 || Z > A) {
167 #ifdef G4VERBOSE
168  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
169  G4cout << "G4NucleiProperties::GetMassExccess: Wrong values for A = "
170  << A << " and Z = " << Z << G4endl;
171  }
172 #endif
173  return 0.0;
174 
175  } else {
176 
181  } else {
182  return MassExcess(A,Z);
183  }
184  }
185 
186 }
187 
188 
190 {
191  if (A < 1 || Z < 0 || Z > A) {
192 #ifdef G4VERBOSE
193  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
194  G4cout << "G4NucleiProperties::GetAtomicMass: Wrong values for A = "
195  << A << " and Z = " << Z << G4endl;
196  }
197 #endif
198  return 0.0;
199 
200  } else if (std::fabs(A - G4int(A)) > 1.e-10) {
201  return AtomicMass(A,Z);
202 
203  } else {
204  G4int iA = G4int(A);
205  G4int iZ = G4int(Z);
210  } else {
211  return AtomicMass(A,Z);
212  }
213  }
214 }
215 
217 {
218  G4int iA = G4int(A);
219  G4int iZ = G4int(Z);
220  return GetBindingEnergy(iA,iZ);
221 }
222 
224 {
225  if (A < 1 || Z < 0 || Z > A) {
226 #ifdef G4VERBOSE
227  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
228  G4cout << "G4NucleiProperties::GetMassExccess: Wrong values for A = "
229  << A << " and Z = " << Z << G4endl;
230  }
231 #endif
232  return 0.0;
233 
234  } else {
239  }else {
240  return BindingEnergy(A,Z);
241  }
242 
243  }
244 }
245 
246 
248 {
249  return GetAtomicMass(A,Z) - A*amu_c2;
250 }
251 
253 {
254  const G4double hydrogen_mass_excess = G4NucleiPropertiesTableAME03::GetMassExcess(1,1);
255  const G4double neutron_mass_excess = G4NucleiPropertiesTableAME03::GetMassExcess(0,1);
256 
257  G4double mass =
258  (A-Z)*neutron_mass_excess + Z*hydrogen_mass_excess - BindingEnergy(A,Z) + A*amu_c2;
259 
260  return mass;
261 }
262 
264 {
265  if (A < 1 || Z < 0 || Z > A) {
266 #ifdef G4VERBOSE
267  if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0) {
268  G4cout << "G4NucleiProperties::NuclearMass: Wrong values for A = "
269  << A << " and Z = " << Z << G4endl;
270  }
271 #endif
272  return 0.0;
273  }
274 
275  G4double mass = AtomicMass(A,Z);
276  // atomic mass is converted to nuclear mass according formula in AME03
277  mass -= Z*electron_mass_c2;
278  mass += ( 14.4381*std::pow ( Z , 2.39 ) + 1.55468*1e-6*std::pow ( Z , 5.35 ) )*eV;
279 
280  return mass;
281 }
282 
284 {
285  //
286  // Weitzsaecker's Mass formula
287  //
288  G4int Npairing = G4int(A-Z)%2; // pairing
289  G4int Zpairing = G4int(Z)%2;
290  G4double binding =
291  - 15.67*A // nuclear volume
292  + 17.23*std::pow(A,2./3.) // surface energy
293  + 93.15*((A/2.-Z)*(A/2.-Z))/A // asymmetry
294  + 0.6984523*Z*Z*std::pow(A,-1./3.); // coulomb
295  if( Npairing == Zpairing ) binding += (Npairing+Zpairing-1) * 12.0 / std::sqrt(A); // pairing
296 
297  return -binding*MeV;
298 }
299 
static G4double GetAtomicMass(G4int Z, G4int A)
static const double MeV
Definition: G4SIunits.hh:193
static G4double GetNuclearMass(const G4double A, const G4double Z)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ThreadLocal G4double mass_deuteron
static G4double AtomicMass(G4double A, G4double Z)
static G4double GetAtomicMass(const G4double A, const G4double Z)
static G4double BindingEnergy(G4double A, G4double Z)
#define G4ThreadLocal
Definition: tls.hh:52
static G4ThreadLocal G4double mass_neutron
int G4int
Definition: G4Types.hh:78
static G4double GetMassExcess(const G4int A, const G4int Z)
static G4double GetNuclearMass(G4int Z, G4int A)
G4GLOB_DLL std::ostream G4cout
static G4double GetBindingEnergy(G4int Z, G4int A)
static G4double NuclearMass(G4double A, G4double Z)
bool G4bool
Definition: G4Types.hh:79
static G4ThreadLocal G4double mass_triton
static G4ThreadLocal G4double mass_proton
static bool IsInStableTable(const G4double A, const G4double Z)
static G4double GetBindingEnergy(G4int Z, G4int A)
static const G4double A[nN]
static G4ThreadLocal G4double mass_He3
static const double eV
Definition: G4SIunits.hh:194
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
static G4double GetBindingEnergy(const G4int A, const G4int Z)
static G4bool IsInTable(G4int Z, G4int A)
static G4ThreadLocal G4double mass_alpha
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
static G4double GetMassExcess(G4int Z, G4int A)
static G4double MassExcess(G4double A, G4double Z)