Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCL::NuclearPotential::NuclearPotentialIsospin Class Reference

#include <G4INCLNuclearPotentialIsospin.hh>

Inheritance diagram for G4INCL::NuclearPotential::NuclearPotentialIsospin:
G4INCL::NuclearPotential::INuclearPotential G4INCL::NuclearPotential::NuclearPotentialEnergyIsospin G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth

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 () const
 Do we have a pion potential? More...
 
G4double getFermiEnergy (const Particle *const p) const
 Return the Fermi energy for a particle. More...
 
G4double getFermiEnergy (const ParticleType t) const
 Return the Fermi energy for a particle type. More...
 
G4double getSeparationEnergy (const Particle *const p) const
 Return the separation energy for a particle. More...
 
G4double getSeparationEnergy (const ParticleType t) const
 Return the separation energy for a particle type. More...
 
G4double getFermiMomentum (const Particle *const p) const
 Return the Fermi momentum for a particle. More...
 
G4double getFermiMomentum (const ParticleType t) const
 Return the Fermi momentum for a particle type. More...
 

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. More...
 
- Protected Attributes inherited from G4INCL::NuclearPotential::INuclearPotential
const G4int theA
 The mass number of the nucleus. More...
 
const G4int theZ
 The charge number of the nucleus. More...
 
std::map< ParticleType, G4doublefermiEnergy
 
std::map< ParticleType, G4doublefermiMomentum
 
std::map< ParticleType, G4doubleseparationEnergy
 

Detailed Description

Definition at line 55 of file G4INCLNuclearPotentialIsospin.hh.

Constructor & Destructor Documentation

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

Definition at line 56 of file G4INCLNuclearPotentialIsospin.cc.

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

Definition at line 63 of file G4INCLNuclearPotentialIsospin.cc.

63 {}

Member Function Documentation

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

Implements G4INCL::NuclearPotential::INuclearPotential.

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

Definition at line 135 of file G4INCLNuclearPotentialIsospin.cc.

References G4INCL::Composite, G4INCL::NuclearPotential::INuclearPotential::computePionPotentialEnergy(), G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, G4INCL::Particle::getType(), INCL_ERROR, G4INCL::Neutron, G4INCL::PiMinus, G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Proton, and G4INCL::UnknownParticle.

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

135  {
136 
137  switch( particle->getType() )
138  {
139  case Proton:
140  return vProton;
141  break;
142  case Neutron:
143  return vNeutron;
144  break;
145 
146  case PiPlus:
147  case PiZero:
148  case PiMinus:
149  return computePionPotentialEnergy(particle);
150  break;
151 
152  case DeltaPlusPlus:
153  return vDeltaPlusPlus;
154  break;
155  case DeltaPlus:
156  return vDeltaPlus;
157  break;
158  case DeltaZero:
159  return vDeltaZero;
160  break;
161  case DeltaMinus:
162  return vDeltaMinus;
163  break;
164  case Composite:
165  INCL_ERROR("No potential computed for particle of type Cluster.");
166  return 0.0;
167  break;
168  case UnknownParticle:
169  INCL_ERROR("Trying to compute potential energy for an unknown particle.");
170  return 0.0;
171  break;
172  }
173 
174  INCL_ERROR("There is no potential for this type of particle.");
175  return 0.0;
176  }
#define INCL_ERROR(x)
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.

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