50 theFermi.
Init(theA, theZ);
56 G4double density = GetDensity(aPosition);
57 G4double fermiMom = GetFermiMomentum(density);
58 theFermiMomBuffer.push_back(fermiMom);
63 G4double density = GetDensity(aPosition);
64 G4double fermiMom = GetFermiMomentum(density);
65 theFermiMomBuffer.push_back(fermiMom);
69 theFermiMomBuffer.push_back(0);
73 theFermiMomBuffer.push_back(0);
83 G4int index =
static_cast<G4int>(x/(0.3*fermi) );
84 if(index+2>
static_cast<G4int>(theFermiMomBuffer.size()))
return theFermiMomBuffer.back();
85 G4double y1 = theFermiMomBuffer[index];
86 G4double y2 = theFermiMomBuffer[index+1];
89 G4double fermiMom = y1 + (x-x1)*(y2-y1)/(x2-x1);
90 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