Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::NuclearPotential::NuclearPotentialConstant Class Reference

#include <G4INCLNuclearPotentialConstant.hh>

+ Inheritance diagram for G4INCL::NuclearPotential::NuclearPotentialConstant:

Public Member Functions

 NuclearPotentialConstant (const G4int A, const G4int Z, const G4bool pionPotential)
 
virtual ~NuclearPotentialConstant ()
 
G4double getNucleonPotential () const
 
G4double getDeltaPotential () const
 
virtual G4double computePotentialEnergy (const Particle *const p) const
 
- Public Member Functions inherited from G4INCL::NuclearPotential::INuclearPotential
 INuclearPotential (const G4int A, const G4int Z, const G4bool pionPot)
 
virtual ~INuclearPotential ()
 
G4bool hasPionPotential () const
 Do we have a pion potential?
 
virtual G4double computePotentialEnergy (const Particle *const p) const =0
 
G4double getFermiEnergy (const Particle *const p) const
 Return the Fermi energy for a particle.
 
G4double getFermiEnergy (const ParticleType t) const
 Return the Fermi energy for a particle type.
 
G4double getSeparationEnergy (const Particle *const p) const
 Return the separation energy for a particle.
 
G4double getSeparationEnergy (const ParticleType t) const
 Return the separation energy for a particle type.
 
G4double getFermiMomentum (const Particle *const p) const
 Return the Fermi momentum for a particle.
 
G4double getFermiMomentum (const ParticleType t) const
 Return the Fermi momentum for a particle type.
 

Additional Inherited Members

- Protected Member Functions inherited from G4INCL::NuclearPotential::INuclearPotential
G4double computePionPotentialEnergy (const Particle *const p) const
 Compute the potential energy for the given pion.
 
G4double computeKaonPotentialEnergy (const Particle *const p) const
 Compute the potential energy for the given kaon.
 
G4double computePionResonancePotentialEnergy (const Particle *const p) const
 Compute the potential energy for the given pion resonances (Eta, Omega and EtaPrime and Gamma also).
 
- Protected Attributes inherited from G4INCL::NuclearPotential::INuclearPotential
const G4int theA
 The mass number of the nucleus.
 
const G4int theZ
 The charge number of the nucleus.
 
std::map< ParticleType, G4doublefermiEnergy
 
std::map< ParticleType, G4doublefermiMomentum
 
std::map< ParticleType, G4doubleseparationEnergy
 

Detailed Description

Definition at line 56 of file G4INCLNuclearPotentialConstant.hh.

Constructor & Destructor Documentation

◆ NuclearPotentialConstant()

G4INCL::NuclearPotential::NuclearPotentialConstant::NuclearPotentialConstant ( const G4int  A,
const G4int  Z,
const G4bool  pionPotential 
)

Definition at line 55 of file G4INCLNuclearPotentialConstant.cc.

56 : INuclearPotential(A, Z, aPionPotential)
57 {
58 initialize();
59 }
INuclearPotential(const G4int A, const G4int Z, const G4bool pionPot)

◆ ~NuclearPotentialConstant()

G4INCL::NuclearPotential::NuclearPotentialConstant::~NuclearPotentialConstant ( )
virtual

Definition at line 62 of file G4INCLNuclearPotentialConstant.cc.

62 {
63 }

Member Function Documentation

◆ computePotentialEnergy()

G4double G4INCL::NuclearPotential::NuclearPotentialConstant::computePotentialEnergy ( const Particle *const  p) const
virtual

Implements G4INCL::NuclearPotential::INuclearPotential.

Definition at line 170 of file G4INCLNuclearPotentialConstant.cc.

170 {
171
172 switch( particle->getType() )
173 {
174 case Proton:
175 case Neutron:
176 return vNucleon;
177 break;
178
179 case PiPlus:
180 case PiZero:
181 case PiMinus:
182 return computePionPotentialEnergy(particle);
183 break;
184
185 case Eta:
186 case Omega:
187 case EtaPrime:
189 break;
190
191 case SigmaPlus:
192 case SigmaZero:
193 case SigmaMinus:
194 return vSigma;
195 break;
196 case Lambda:
197 return vLambda;
198 break;
199
200 case KPlus:
201 case KZero:
202 case KZeroBar:
203 case KMinus:
204 return computeKaonPotentialEnergy(particle);
205 break;
206
207 case Photon:
208 return 0.0;
209 break;
210
211 case DeltaPlusPlus:
212 case DeltaPlus:
213 case DeltaZero:
214 case DeltaMinus:
215 return vDelta;
216 break;
217 case UnknownParticle:
218 INCL_ERROR("Trying to compute potential energy of an unknown particle.");
219 return 0.0;
220 break;
221 default:
222 INCL_ERROR("Trying to compute potential energy of a malformed particle.");
223 return 0.0;
224 break;
225 }
226 }
#define INCL_ERROR(x)
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.
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.

◆ getDeltaPotential()

G4double G4INCL::NuclearPotential::NuclearPotentialConstant::getDeltaPotential ( ) const
inline

Definition at line 63 of file G4INCLNuclearPotentialConstant.hh.

63{ return vDelta; }

◆ getNucleonPotential()

G4double G4INCL::NuclearPotential::NuclearPotentialConstant::getNucleonPotential ( ) const
inline

Definition at line 62 of file G4INCLNuclearPotentialConstant.hh.

62{ return vNucleon; }

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