50 theFermi.
Init(theA, theZ);
52 for (
G4double aR=0.;aR<theR; aR+=0.3*fermi)
55 G4double density = GetDensity(aPosition);
56 G4double fermiMom = GetFermiMomentum(density);
57 theFermiMomBuffer.push_back(fermiMom);
61 G4double density = GetDensity(aPosition);
62 G4double fermiMom = GetFermiMomentum(density);
63 theFermiMomBuffer.push_back(fermiMom);
67 theFermiMomBuffer.push_back(0);
71 theFermiMomBuffer.push_back(0);
81 unsigned int index =
static_cast<unsigned int>(x/(0.3*fermi));
82 if( (index+2) > theFermiMomBuffer.size())
return theFermiMomBuffer.back();
83 G4double y1 = theFermiMomBuffer[index];
84 G4double y2 = theFermiMomBuffer[index+1];
87 G4double fermiMom = y1 + (x-x1)*(y2-y1)/(x2-x1);
88 return -1*(fermiMom*fermiMom)/(2*neutron_mass_c2);