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);
void Init(G4int anA, G4int aZ)
virtual G4double GetBarrier()
virtual G4double GetField(const G4ThreeVector &aPosition)
virtual ~G4NeutronField()
G4NeutronField(G4V3DNucleus *nucleus)
virtual G4double GetOuterRadius()=0
virtual G4int GetCharge()=0
virtual G4int GetMassNumber()=0
G4V3DNucleus * theNucleus