34#define INCLXX_IN_GEANT4_MODE 1
54 namespace NuclearPotential {
66 void NuclearPotentialIsospin::initialize() {
81 vProton = theProtonFermiEnergy + theProtonSeparationEnergy;
89 vNeutron = theNeutronFermiEnergy + theNeutronSeparationEnergy;
91 const G4double separationEnergyDeltaPlusPlus = 2.*theProtonSeparationEnergy - theNeutronSeparationEnergy;
95 const G4double separationEnergyDeltaMinus = 2.*theNeutronSeparationEnergy - theProtonSeparationEnergy;
100 vDeltaZero = vNeutron;
101 vDeltaPlusPlus = std::max(separationEnergyDeltaPlusPlus + tinyMargin, 2.*vDeltaPlus - vDeltaZero);
102 vDeltaMinus = std::max(separationEnergyDeltaMinus + tinyMargin, 2.*vDeltaZero - vDeltaPlus);
110 if(asy>0.11)vLambda = 56.549-678.73*asy+4905.35*std::pow(asy,2.)-9789.1*std::pow(asy,3.);
131 separationEnergy[
KMinus] = 2.*theNeutronSeparationEnergy - theProtonSeparationEnergy-theLambdaSeparationEnergy;
151 INCL_DEBUG(
"Table of separation energies [MeV] for A=" <<
theA <<
", Z=" <<
theZ <<
":" <<
'\n'
177 INCL_DEBUG(
"Table of Fermi energies [MeV] for A=" <<
theA <<
", Z=" <<
theZ <<
":" <<
'\n'
190 INCL_DEBUG(
"Table of Fermi momenta [MeV/c] for A=" <<
theA <<
", Z=" <<
theZ <<
":" <<
'\n'
246 return vDeltaPlusPlus;
258 INCL_ERROR(
"No potential computed for particle of type Cluster.");
262 INCL_ERROR(
"Trying to compute potential energy for an unknown particle.");
267 INCL_ERROR(
"There is no potential for this type of particle.");
double A(double temperature)
Isospin- and energy-independent nuclear potential.
Isospin-dependent nuclear potential.
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.
std::map< ParticleType, G4double > fermiMomentum
const G4int theA
The mass number of the nucleus.
std::map< ParticleType, G4double > separationEnergy
G4double computePionResonancePotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion resonances (Eta, Omega and EtaPrime and Gamma also).
G4double computeKaonPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given kaon.
std::map< ParticleType, G4double > fermiEnergy
const G4int theZ
The charge number of the nucleus.
NuclearPotentialIsospin(const G4int A, const G4int Z, const G4bool pionPotential)
virtual G4double computePotentialEnergy(const Particle *const p) const
virtual ~NuclearPotentialIsospin()
G4INCL::ParticleType getType() const
G4double pow13(G4double x)
G4ThreadLocal FermiMomentumFn getFermiMomentum
G4ThreadLocal SeparationEnergyFn getSeparationEnergy
Static pointer to the separation-energy function.
G4double getINCLMass(const G4int A, const G4int Z, const G4int S)
Get INCL nuclear mass (in MeV/c^2)