Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4INCL::NuclearPotential::NuclearPotentialConstant Class Reference

#include <G4INCLNuclearPotentialConstant.hh>

Inheritance diagram for G4INCL::NuclearPotential::NuclearPotentialConstant:
Collaboration 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? 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...
 
G4double computePionResonancePotentialEnergy (const Particle *const p) const
 Compute the potential energy for the given pion resonances (Eta, Omega and EtaPrime and Gamma also). 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 56 of file G4INCLNuclearPotentialConstant.hh.

Constructor & Destructor Documentation

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  }
double A(double temperature)
INuclearPotential(const G4int A, const G4int Z, const G4bool pionPot)
G4INCL::NuclearPotential::NuclearPotentialConstant::~NuclearPotentialConstant ( )
virtual

Definition at line 62 of file G4INCLNuclearPotentialConstant.cc.

62  {
63  }

Member Function Documentation

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

Implements G4INCL::NuclearPotential::INuclearPotential.

Definition at line 136 of file G4INCLNuclearPotentialConstant.cc.

136  {
137 
138  switch( particle->getType() )
139  {
140  case Proton:
141  case Neutron:
142  return vNucleon;
143  break;
144 
145  case PiPlus:
146  case PiZero:
147  case PiMinus:
148  return computePionPotentialEnergy(particle);
149  break;
150 
151  case Eta:
152  case Omega:
153  case EtaPrime:
154  return computePionResonancePotentialEnergy(particle);
155  break;
156 
157  case Photon:
158  return 0.0;
159  break;
160 
161  case DeltaPlusPlus:
162  case DeltaPlus:
163  case DeltaZero:
164  case DeltaMinus:
165  return vDelta;
166  break;
167  case UnknownParticle:
168  INCL_ERROR("Trying to compute potential energy of an unknown particle.");
169  return 0.0;
170  break;
171  default:
172  INCL_ERROR("Trying to compute potential energy of a malformed particle.");
173  return 0.0;
174  break;
175  }
176  }
#define INCL_ERROR(x)
G4double computePionResonancePotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion resonances (Eta, Omega and EtaPrime and Gamma also)...
G4double computePionPotentialEnergy(const Particle *const p) const
Compute the potential energy for the given pion.

Here is the call graph for this function:

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

Definition at line 63 of file G4INCLNuclearPotentialConstant.hh.

63 { return vDelta; }
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: