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

#include <G4INCLNuclearPotentialIsospin.hh>

+ Inheritance diagram for G4INCL::NuclearPotential::NuclearPotentialIsospin:

Public Member Functions

 NuclearPotentialIsospin (const G4int A, const G4int Z, const G4bool pionPotential)
 
virtual ~NuclearPotentialIsospin ()
 
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 G4INCLNuclearPotentialIsospin.hh.

Constructor & Destructor Documentation

◆ NuclearPotentialIsospin()

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

Definition at line 58 of file G4INCLNuclearPotentialIsospin.cc.

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

◆ ~NuclearPotentialIsospin()

G4INCL::NuclearPotential::NuclearPotentialIsospin::~NuclearPotentialIsospin ( )
virtual

Definition at line 65 of file G4INCLNuclearPotentialIsospin.cc.

65{}

Member Function Documentation

◆ computePotentialEnergy()

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

Implements G4INCL::NuclearPotential::INuclearPotential.

Reimplemented in G4INCL::NuclearPotential::NuclearPotentialEnergyIsospin, and G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth.

Definition at line 113 of file G4INCLNuclearPotentialIsospin.cc.

113 {
114
115 switch( particle->getType() )
116 {
117 case Proton:
118 return vProton;
119 break;
120 case Neutron:
121 return vNeutron;
122 break;
123
124 case PiPlus:
125 case PiZero:
126 case PiMinus:
127 return computePionPotentialEnergy(particle);
128 break;
129
130 case DeltaPlusPlus:
131 return vDeltaPlusPlus;
132 break;
133 case DeltaPlus:
134 return vDeltaPlus;
135 break;
136 case DeltaZero:
137 return vDeltaZero;
138 break;
139 case DeltaMinus:
140 return vDeltaMinus;
141 break;
142 case Composite:
143 ERROR("No potential computed for particle of type Cluster.");
144 return 0.0;
145 break;
146 case UnknownParticle:
147 ERROR("Trying to compute potential energy for an unknown particle.");
148 return 0.0;
149 break;
150 }
151
152 ERROR("There is no potential for this type of particle.");
153 return 0.0;
154 }
#define ERROR(x)
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.

Referenced by G4INCL::NuclearPotential::NuclearPotentialEnergyIsospin::computePotentialEnergy(), and G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth::computePotentialEnergy().


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