Geant4-11
Public Member Functions | Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes
G4NucleiProperties Class Reference

#include <G4NucleiProperties.hh>

Public Member Functions

 G4NucleiProperties ()
 
 ~G4NucleiProperties ()
 

Static Public Member Functions

static G4double GetBindingEnergy (const G4double A, const G4double Z)
 
static G4double GetBindingEnergy (const G4int A, const G4int Z)
 
static G4double GetMassExcess (const G4double A, const G4double Z)
 
static G4double GetMassExcess (const G4int A, const G4int Z)
 
static G4double GetNuclearMass (const G4double A, const G4double Z)
 
static G4double GetNuclearMass (const G4int A, const G4int Z)
 
static G4bool IsInStableTable (const G4double A, const G4double Z)
 
static G4bool IsInStableTable (const G4int A, const G4int Z)
 

Private Types

enum  { MaxZ = 120 }
 

Static Private Member Functions

static G4double AtomicMass (G4double A, G4double Z)
 
static G4double BindingEnergy (G4double A, G4double Z)
 
static G4double GetAtomicMass (const G4double A, const G4double Z)
 
static G4double MassExcess (G4double A, G4double Z)
 
static G4double NuclearMass (G4double A, G4double Z)
 

Static Private Attributes

static G4ThreadLocal G4double electronMass [MaxZ]
 
static G4ThreadLocal G4bool isIntialized
 
static G4ThreadLocal G4double mass_alpha = -1.
 
static G4ThreadLocal G4double mass_deuteron = -1.
 
static G4ThreadLocal G4double mass_He3 = -1.
 
static G4ThreadLocal G4double mass_neutron = -1.
 
static G4ThreadLocal G4double mass_proton = -1.
 
static G4ThreadLocal G4double mass_triton = -1.
 

Detailed Description

Definition at line 44 of file G4NucleiProperties.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxZ 

Definition at line 85 of file G4NucleiProperties.hh.

Constructor & Destructor Documentation

◆ G4NucleiProperties()

G4NucleiProperties::G4NucleiProperties ( )
inline

Definition at line 48 of file G4NucleiProperties.hh.

48{}

◆ ~G4NucleiProperties()

G4NucleiProperties::~G4NucleiProperties ( )
inline

Definition at line 49 of file G4NucleiProperties.hh.

49{}

Member Function Documentation

◆ AtomicMass()

G4double G4NucleiProperties::AtomicMass ( G4double  A,
G4double  Z 
)
staticprivate

Definition at line 277 of file G4NucleiProperties.cc.

278{
279 G4double hydrogen_mass_excess;
280 G4double neutron_mass_excess;
281 hydrogen_mass_excess = G4NucleiPropertiesTableAME12::GetMassExcess(1,1);
282 neutron_mass_excess = G4NucleiPropertiesTableAME12::GetMassExcess(0,1);
283 G4double mass = (A-Z)*neutron_mass_excess
284 + Z*hydrogen_mass_excess - BindingEnergy(A,Z) + A*amu_c2;
285 return mass;
286}
double G4double
Definition: G4Types.hh:83
const G4int Z[17]
const G4double A[17]
static G4double GetMassExcess(G4int Z, G4int A)
static G4double BindingEnergy(G4double A, G4double Z)
float amu_c2
Definition: hepunit.py:276

References A, source.hepunit::amu_c2, BindingEnergy(), G4NucleiPropertiesTableAME12::GetMassExcess(), and Z.

Referenced by GetAtomicMass(), and NuclearMass().

◆ BindingEnergy()

G4double G4NucleiProperties::BindingEnergy ( G4double  A,
G4double  Z 
)
staticprivate

Definition at line 314 of file G4NucleiProperties.cc.

315{
316 //
317 // Weitzsaecker's Mass formula
318 //
319 G4int Npairing = G4int(A-Z)%2; // pairing
320 G4int Zpairing = G4int(Z)%2;
322 - 15.67*A // nuclear volume
323 + 17.23*std::pow(A,2./3.) // surface energy
324 + 93.15*((A/2.-Z)*(A/2.-Z))/A // asymmetry
325 + 0.6984523*Z*Z*std::pow(A,-1./3.); // coulomb
326 if( Npairing == Zpairing )
327 {
328 binding += (Npairing+Zpairing-1) * 12.0 / std::sqrt(A); // pairing
329 }
330
331 return -binding*MeV;
332}
static constexpr double MeV
Definition: G4SIunits.hh:200
int G4int
Definition: G4Types.hh:85

References A, MeV, and Z.

Referenced by AtomicMass(), and GetBindingEnergy().

◆ GetAtomicMass()

G4double G4NucleiProperties::GetAtomicMass ( const G4double  A,
const G4double  Z 
)
staticprivate

Definition at line 206 of file G4NucleiProperties.cc.

207{
208 if (A < 1 || Z < 0 || Z > A)
209 {
210#ifdef G4VERBOSE
211 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
212 {
213 G4cout << "G4NucleiProperties::GetAtomicMass: Wrong values for A = "
214 << A << " and Z = " << Z << G4endl;
215 }
216#endif
217 return 0.0;
218
219 }
220 else if (std::fabs(A - G4int(A)) > 1.e-10)
221 {
222 return AtomicMass(A,Z);
223 }
224 else
225 {
226 G4int iA = G4int(A);
227 G4int iZ = G4int(Z);
232 } else {
233 return AtomicMass(A,Z);
234 }
235 }
236}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
static G4bool IsInTable(G4int Z, G4int A)
static G4double GetAtomicMass(G4int Z, G4int A)
static G4double AtomicMass(G4double A, G4double Z)
static G4ParticleTable * GetParticleTable()

References A, AtomicMass(), G4cout, G4endl, G4NucleiPropertiesTableAME12::GetAtomicMass(), G4NucleiPropertiesTheoreticalTable::GetAtomicMass(), G4ParticleTable::GetParticleTable(), G4NucleiPropertiesTableAME12::IsInTable(), G4NucleiPropertiesTheoreticalTable::IsInTable(), and Z.

Referenced by MassExcess().

◆ GetBindingEnergy() [1/2]

G4double G4NucleiProperties::GetBindingEnergy ( const G4double  A,
const G4double  Z 
)
static

Definition at line 239 of file G4NucleiProperties.cc.

240{
241 G4int iA = G4int(A);
242 G4int iZ = G4int(Z);
243 return GetBindingEnergy(iA,iZ);
244}
static G4double GetBindingEnergy(const G4int A, const G4int Z)

References A, GetBindingEnergy(), and Z.

◆ GetBindingEnergy() [2/2]

G4double G4NucleiProperties::GetBindingEnergy ( const G4int  A,
const G4int  Z 
)
static

Definition at line 246 of file G4NucleiProperties.cc.

247{
248 if (A < 1 || Z < 0 || Z > A)
249 {
250#ifdef G4VERBOSE
251 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
252 {
253 G4cout << "G4NucleiProperties::GetMassExccess: Wrong values for A = "
254 << A << " and Z = " << Z << G4endl;
255 }
256#endif
257 return 0.0;
258
259 }
260 else
261 {
266 }else {
267 return BindingEnergy(A,Z);
268 }
269 }
270}
static G4double GetBindingEnergy(G4int Z, G4int A)
static G4double GetBindingEnergy(G4int Z, G4int A)

References A, BindingEnergy(), G4cout, G4endl, G4NucleiPropertiesTableAME12::GetBindingEnergy(), G4NucleiPropertiesTheoreticalTable::GetBindingEnergy(), G4ParticleTable::GetParticleTable(), G4NucleiPropertiesTableAME12::IsInTable(), G4NucleiPropertiesTheoreticalTable::IsInTable(), and Z.

Referenced by G4ParticleHPInelasticBaseFS::BaseApply(), G4Fancy3DNucleus::BindingEnergy(), G4InuclSpecialFunctions::bindingEnergy(), G4StatMFMacroBiNucleon::CalcEnergy(), G4StatMFMacroTetraNucleon::CalcEnergy(), G4StatMFMacroTriNucleon::CalcEnergy(), G4StatMFMacroBiNucleon::CalcMeanMultiplicity(), G4StatMFMacroTetraNucleon::CalcMeanMultiplicity(), G4StatMFMacroTriNucleon::CalcMeanMultiplicity(), G4QMDNucleus::CalEnergyAndAngularMomentumInCM(), GetBindingEnergy(), G4AntiProtonField::GetField(), G4KaonMinusField::GetField(), G4KaonPlusField::GetField(), G4KaonZeroField::GetField(), G4PionMinusField::GetField(), G4PionPlusField::GetField(), G4PionZeroField::GetField(), G4SigmaMinusField::GetField(), G4SigmaPlusField::GetField(), G4SigmaZeroField::GetField(), G4ParticleHPInelasticBaseFS::InitGammas(), G4QMDGroundStateNucleus::packNucleons(), and G4KM_OpticalEqRhs::SetFactor().

◆ GetMassExcess() [1/2]

G4double G4NucleiProperties::GetMassExcess ( const G4double  A,
const G4double  Z 
)
static

Definition at line 170 of file G4NucleiProperties.cc.

171{
172 G4int iA = G4int(A);
173 G4int iZ = G4int(Z);
174 return GetMassExcess(iA,iZ);
175}
static G4double GetMassExcess(const G4int A, const G4int Z)

References A, GetMassExcess(), and Z.

◆ GetMassExcess() [2/2]

G4double G4NucleiProperties::GetMassExcess ( const G4int  A,
const G4int  Z 
)
static

Definition at line 177 of file G4NucleiProperties.cc.

178{
179 if (A < 1 || Z < 0 || Z > A)
180 {
181#ifdef G4VERBOSE
182 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
183 {
184 G4cout << "G4NucleiProperties::GetMassExccess: Wrong values for A = "
185 << A << " and Z = " << Z << G4endl;
186 }
187#endif
188 return 0.0;
189
190 }
191 else
192 {
193
195 // AME table
199 } else {
200 return MassExcess(A,Z);
201 }
202 }
203}
static G4double MassExcess(G4double A, G4double Z)

References A, G4cout, G4endl, G4NucleiPropertiesTableAME12::GetMassExcess(), G4NucleiPropertiesTheoreticalTable::GetMassExcess(), G4ParticleTable::GetParticleTable(), G4NucleiPropertiesTableAME12::IsInTable(), G4NucleiPropertiesTheoreticalTable::IsInTable(), MassExcess(), and Z.

Referenced by G4StatMF::CalcEnergy(), G4StatMFFragment::GetEnergy(), and GetMassExcess().

◆ GetNuclearMass() [1/2]

G4double G4NucleiProperties::GetNuclearMass ( const G4double  A,
const G4double  Z 
)
static

Definition at line 50 of file G4NucleiProperties.cc.

51{
52 G4double mass =0.0;
53
54 if (std::fabs(A - G4int(A)) > 1.e-10)
55 {
56 mass = NuclearMass(A,Z);
57
58 }
59 else
60 {
61 // use mass table
62 G4int iZ = G4int(Z);
63 G4int iA = G4int(A);
64 mass =GetNuclearMass(iA,iZ);
65 }
66 return mass;
67}
static G4double NuclearMass(G4double A, G4double Z)
static G4double GetNuclearMass(const G4double A, const G4double Z)

References A, GetNuclearMass(), NuclearMass(), and Z.

Referenced by G4EMDissociation::ApplyYourself(), G4EmCaptureCascade::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4NeutronRadCapture::ApplyYourself(), G4LowEGammaNuclearModel::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4LMsdGenerator::ApplyYourself(), G4PreCompoundModel::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4ParticleHPCaptureFS::ApplyYourself(), G4Nucleus::AtomicMass(), G4ParticleHPInelasticBaseFS::BaseApply(), G4InuclEvaporation::BreakItUp(), G4UnstableFragmentBreakUp::BreakUpChain(), G4Fragment::CalculateGroundStateMass(), G4HadronicProcess::CheckEnergyMomentumConservation(), G4HadronicProcess::CheckResult(), G4NeutrinoNucleusModel::CoherentPion(), G4ParticleHPInelasticCompFS::CompositeApply(), G4ComponentGGNuclNuclXsc::ComputeCoulombBarier(), G4Fragment::ComputeGroundStateMass(), G4HadronElastic::ComputeMomentumCMS(), G4NuclearRadii::CoulombFactor(), G4GEMProbability::Dump(), G4CompetitiveFission::EmittedFragment(), G4NeutrinoNucleusModel::FinalBarion(), G4ElasticData::G4ElasticData(), G4EvaporationChannel::G4EvaporationChannel(), G4FermiFragment::G4FermiFragment(), G4FermiPair::G4FermiPair(), G4GEMChannel::G4GEMChannel(), G4GEMChannelVI::G4GEMChannelVI(), G4UnstableFragmentBreakUp::G4UnstableFragmentBreakUp(), G4VEmissionProbability::G4VEmissionProbability(), G4ParticleHPCaptureData::GetCrossSection(), G4ParticleHPElasticData::GetCrossSection(), G4ParticleHPFissionData::GetCrossSection(), G4ParticleHPInelasticData::GetCrossSection(), G4EvaporationChannel::GetEmissionProbability(), G4GEMChannel::GetEmissionProbability(), G4GEMChannelVI::GetEmissionProbability(), G4IonsShenCrossSection::GetIsoCrossSection(), G4MuonMinusBoundDecay::GetMuonDecayRate(), G4QMDNucleus::GetNuclearMass(), GetNuclearMass(), G4HyperNucleiProperties::GetNuclearMass(), G4InuclNuclei::getNucleiMass(), G4IonTable::GetNucleusMass(), G4ParticleHPThermalBoost::GetThermalEnergy(), G4FermiFragmentsPoolVI::Initialise(), G4VPreCompoundFragment::Initialize(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4hCoulombScatteringModel::MinPrimaryEnergy(), G4GeneratorPrecompoundInterface::Propagate(), G4GeneratorPrecompoundInterface::PropagateNuclNucl(), G4ParticleHPContAngularPar::Sample(), G4DiffuseElastic::SampleInvariantT(), G4DiffuseElasticV2::SampleInvariantT(), G4NuclNuclDiffuseElastic::SampleInvariantT(), G4AntiNuclElastic::SampleInvariantT(), G4eSingleCoulombScatteringModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4BetheHeitler5DModel::SampleSecondaries(), G4ScreeningMottCrossSection::SetupKinematic(), G4ElectroNuclearCrossSection::ThresholdEnergy(), and G4PhotoNuclearCrossSection::ThresholdEnergy().

◆ GetNuclearMass() [2/2]

G4double G4NucleiProperties::GetNuclearMass ( const G4int  A,
const G4int  Z 
)
static

Definition at line 70 of file G4NucleiProperties.cc.

71{
72 if (mass_proton <= 0.0 )
73 {
74 const G4ParticleDefinition * nucleus = nullptr;
75 nucleus = G4ParticleTable::GetParticleTable()->FindParticle("neutron");
76 if (nucleus!=nullptr) mass_neutron = nucleus->GetPDGMass();
77
78 nucleus = G4ParticleTable::GetParticleTable()->FindParticle("deuteron");
79 if (nucleus!=nullptr) mass_deuteron = nucleus->GetPDGMass();
80
82 if (nucleus!=nullptr) mass_triton = nucleus->GetPDGMass();
83
85 if (nucleus!=nullptr) mass_alpha = nucleus->GetPDGMass();
86
88 if (nucleus!=nullptr) mass_He3 = nucleus->GetPDGMass();
89
91 if (nucleus!=nullptr) mass_proton = nucleus->GetPDGMass();
92 }
93
94 if (A < 1 || Z < 0 || Z > A)
95 {
96#ifdef G4VERBOSE
97 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
98 {
99 G4cout << "G4NucleiProperties::GetNuclearMass: Wrong values for A = "
100 << A << " and Z = " << Z << G4endl;
101 }
102#endif
103 return 0.0;
104 }
105
106 G4double mass= -1.;
107 if ( (Z<=2) )
108 {
109 // light nuclei
110 if ( (Z==1)&&(A==1) ) {
111 mass = mass_proton;
112 } else if ( (Z==0)&&(A==1) ) {
113 mass = mass_neutron;
114 } else if ( (Z==1)&&(A==2) ) {
115 mass = mass_deuteron;
116 } else if ( (Z==1)&&(A==3) ) {
117 mass = mass_triton;
118 } else if ( (Z==2)&&(A==4) ) {
119 mass = mass_alpha;
120 } else if ( (Z==2)&&(A==3) ) {
121 mass = mass_He3;
122 }
123 }
124
125 if (mass < 0.)
126 {
128 // AME table
131 // Theoretical table
133 } else if ( Z == A ) {
134 mass = A*mass_proton;
135 } else if( 0 == Z ) {
136 mass = A*mass_neutron;
137 } else {
138 mass = NuclearMass(G4double(A),G4double(Z));
139 }
140 }
141
142 if (mass < 0.) mass = 0.0;
143 return mass;
144}
static G4double GetNuclearMass(G4int Z, G4int A)
static G4ThreadLocal G4double mass_neutron
static G4ThreadLocal G4double mass_triton
static G4ThreadLocal G4double mass_proton
static G4ThreadLocal G4double mass_alpha
static G4ThreadLocal G4double mass_He3
static G4ThreadLocal G4double mass_deuteron
G4ParticleDefinition * FindParticle(G4int PDGEncoding)

References A, G4ParticleTable::FindParticle(), G4cout, G4endl, G4NucleiPropertiesTableAME12::GetNuclearMass(), G4NucleiPropertiesTheoreticalTable::GetNuclearMass(), G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGMass(), G4NucleiPropertiesTableAME12::IsInTable(), G4NucleiPropertiesTheoreticalTable::IsInTable(), mass_alpha, mass_deuteron, mass_He3, mass_neutron, mass_proton, mass_triton, NuclearMass(), and Z.

◆ IsInStableTable() [1/2]

G4bool G4NucleiProperties::IsInStableTable ( const G4double  A,
const G4double  Z 
)
static

Definition at line 146 of file G4NucleiProperties.cc.

147{
148 G4int iA = G4int(A);
149 G4int iZ = G4int(Z);
150 return IsInStableTable(iA, iZ);
151}
static G4bool IsInStableTable(const G4double A, const G4double Z)

References A, IsInStableTable(), and Z.

Referenced by IsInStableTable(), G4ElectroNuclearCrossSection::ThresholdEnergy(), and G4PhotoNuclearCrossSection::ThresholdEnergy().

◆ IsInStableTable() [2/2]

G4bool G4NucleiProperties::IsInStableTable ( const G4int  A,
const G4int  Z 
)
static

Definition at line 153 of file G4NucleiProperties.cc.

154{
155 if (A < 1 || Z < 0 || Z > A)
156 {
157#ifdef G4VERBOSE
158 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
159 {
160 G4cout << "G4NucleiProperties::IsInStableTable: Wrong values for A = "
161 << A << " and Z = " << Z << G4endl;
162 }
163#endif
164 return false;
165 }
166
168}

References A, G4cout, G4endl, G4ParticleTable::GetParticleTable(), G4NucleiPropertiesTableAME12::IsInTable(), and Z.

◆ MassExcess()

G4double G4NucleiProperties::MassExcess ( G4double  A,
G4double  Z 
)
staticprivate

Definition at line 272 of file G4NucleiProperties.cc.

273{
274 return GetAtomicMass(A,Z) - A*amu_c2;
275}
static G4double GetAtomicMass(const G4double A, const G4double Z)

References A, source.hepunit::amu_c2, GetAtomicMass(), and Z.

Referenced by GetMassExcess().

◆ NuclearMass()

G4double G4NucleiProperties::NuclearMass ( G4double  A,
G4double  Z 
)
staticprivate

Definition at line 288 of file G4NucleiProperties.cc.

289{
290 if (A < 1 || Z < 0 || Z > A)
291 {
292#ifdef G4VERBOSE
293 if (G4ParticleTable::GetParticleTable()->GetVerboseLevel()>0)
294 {
295 G4cout << "G4NucleiProperties::NuclearMass: Wrong values for A = "
296 << A << " and Z = " << Z << G4endl;
297 }
298#endif
299 return 0.0;
300 }
301
302 G4double mass = AtomicMass(A,Z);
303
304 // atomic mass is converted to nuclear mass according to
305 // formula in AME03 and 12
306 //
307 mass -= Z*electron_mass_c2;
308 mass += ( 14.4381*std::pow ( Z , 2.39 )
309 + 1.55468*1e-6*std::pow ( Z , 5.35 ) )*eV;
310
311 return mass;
312}
static constexpr double eV
Definition: G4SIunits.hh:201
float electron_mass_c2
Definition: hepunit.py:273

References A, AtomicMass(), source.hepunit::electron_mass_c2, eV, G4cout, G4endl, G4ParticleTable::GetParticleTable(), and Z.

Referenced by GetNuclearMass().

Field Documentation

◆ electronMass

G4ThreadLocal G4double G4NucleiProperties::electronMass[MaxZ]
staticprivate

Definition at line 86 of file G4NucleiProperties.hh.

◆ isIntialized

G4ThreadLocal G4bool G4NucleiProperties::isIntialized
staticprivate

Definition at line 89 of file G4NucleiProperties.hh.

◆ mass_alpha

G4ThreadLocal G4double G4NucleiProperties::mass_alpha = -1.
staticprivate

Definition at line 94 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().

◆ mass_deuteron

G4ThreadLocal G4double G4NucleiProperties::mass_deuteron = -1.
staticprivate

Definition at line 92 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().

◆ mass_He3

G4ThreadLocal G4double G4NucleiProperties::mass_He3 = -1.
staticprivate

Definition at line 95 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().

◆ mass_neutron

G4ThreadLocal G4double G4NucleiProperties::mass_neutron = -1.
staticprivate

Definition at line 91 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().

◆ mass_proton

G4ThreadLocal G4double G4NucleiProperties::mass_proton = -1.
staticprivate

Definition at line 90 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().

◆ mass_triton

G4ThreadLocal G4double G4NucleiProperties::mass_triton = -1.
staticprivate

Definition at line 93 of file G4NucleiProperties.hh.

Referenced by GetNuclearMass().


The documentation for this class was generated from the following files: