54 theFermi.
Init(theA, theZ);
55 for (
G4double aR=0.;aR<theRadius; aR+=0.3*fermi)
58 G4double density = GetDensity(aPosition);
59 G4double fermiMom = GetFermiMomentum(density);
60 theFermiMomBuffer.push_back(fermiMom);
64 G4double density = GetDensity(aPosition);
65 G4double fermiMom = GetFermiMomentum(density);
66 theFermiMomBuffer.push_back(fermiMom);
70 theFermiMomBuffer.push_back(0);
74 theFermiMomBuffer.push_back(0);
86 unsigned int index =
static_cast<unsigned int>(x/(0.3*fermi));
87 if((index+2) > theFermiMomBuffer.size())
return theFermiMomBuffer.back();
88 G4double y1 = theFermiMomBuffer[index];
89 G4double y2 = theFermiMomBuffer[index+1];
92 G4double fermiMom = y1 + (x-x1)*(y2-y1)/(x2-x1);
93 G4double y = -1*(fermiMom*fermiMom)/(2*proton_mass_c2)+theBarrier;