#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 |
Definition at line 55 of file G4INCLNuclearPotentialIsospin.hh.
G4INCL::NuclearPotential::NuclearPotentialIsospin::NuclearPotentialIsospin | ( | const G4int | A, | |
const G4int | Z, | |||
const G4bool | pionPotential | |||
) |
Definition at line 56 of file G4INCLNuclearPotentialIsospin.cc.
00057 : INuclearPotential(A, Z, aPionPotential) 00058 { 00059 initialize(); 00060 }
G4INCL::NuclearPotential::NuclearPotentialIsospin::~NuclearPotentialIsospin | ( | ) | [virtual] |
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 111 of file G4INCLNuclearPotentialIsospin.cc.
References G4INCL::Composite, G4INCL::NuclearPotential::INuclearPotential::computePionPotentialEnergy(), G4INCL::DeltaMinus, G4INCL::DeltaPlus, G4INCL::DeltaPlusPlus, G4INCL::DeltaZero, ERROR, G4INCL::Particle::getType(), G4INCL::Neutron, G4INCL::PiMinus, G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Proton, and G4INCL::UnknownParticle.
Referenced by G4INCL::NuclearPotential::NuclearPotentialEnergyIsospinSmooth::computePotentialEnergy(), and G4INCL::NuclearPotential::NuclearPotentialEnergyIsospin::computePotentialEnergy().
00111 { 00112 00113 switch( particle->getType() ) 00114 { 00115 case Proton: 00116 return vProton; 00117 break; 00118 case Neutron: 00119 return vNeutron; 00120 break; 00121 00122 case PiPlus: 00123 case PiZero: 00124 case PiMinus: 00125 return computePionPotentialEnergy(particle); 00126 break; 00127 00128 case DeltaPlusPlus: 00129 return vDeltaPlusPlus; 00130 break; 00131 case DeltaPlus: 00132 return vDeltaPlus; 00133 break; 00134 case DeltaZero: 00135 return vDeltaZero; 00136 break; 00137 case DeltaMinus: 00138 return vDeltaMinus; 00139 break; 00140 case Composite: 00141 ERROR("No potential computed for particle of type Cluster."); 00142 return 0.0; 00143 break; 00144 case UnknownParticle: 00145 ERROR("Trying to compute potential energy for an unknown particle."); 00146 return 0.0; 00147 break; 00148 } 00149 00150 ERROR("There is no potential for this type of particle."); 00151 return 0.0; 00152 }