Geant4 9.6.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 ()
 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.
 
- 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 57 of file G4INCLNuclearPotentialConstant.hh.

Constructor & Destructor Documentation

◆ NuclearPotentialConstant()

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

Definition at line 56 of file G4INCLNuclearPotentialConstant.cc.

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

◆ ~NuclearPotentialConstant()

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

Definition at line 63 of file G4INCLNuclearPotentialConstant.cc.

63 {
64 }

Member Function Documentation

◆ computePotentialEnergy()

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

Implements G4INCL::NuclearPotential::INuclearPotential.

Definition at line 104 of file G4INCLNuclearPotentialConstant.cc.

104 {
105
106 switch( particle->getType() )
107 {
108 case Proton:
109 case Neutron:
110 return vNucleon;
111 break;
112
113 case PiPlus:
114 case PiZero:
115 case PiMinus:
116 return computePionPotentialEnergy(particle);
117 break;
118
119 case DeltaPlusPlus:
120 case DeltaPlus:
121 case DeltaZero:
122 case DeltaMinus:
123 return vDelta;
124 break;
125 case UnknownParticle:
126 ERROR("Trying to compute potential energy of an unknown particle.");
127 return 0.0;
128 break;
129 default:
130 ERROR("Trying to compute potential energy of a malformed particle.");
131 return 0.0;
132 break;
133 }
134 }
#define ERROR(x)
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.

◆ getDeltaPotential()

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

Definition at line 64 of file G4INCLNuclearPotentialConstant.hh.

64{ return vDelta; }

◆ getNucleonPotential()

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

Definition at line 63 of file G4INCLNuclearPotentialConstant.hh.

63{ return vNucleon; }

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