50 factor = hbarc*hbarc*std::pow(3.*pi2*A,2./3.)/3.;
58 G4double yMod = std::sqrt(y[0]*y[0]+y[1]*y[1]+y[2]*y[2]);
59 G4double e = std::sqrt(theMass*theMass+y[3]*y[3]+y[4]*y[4]+y[5]*y[5]);
64 dydx[0] = c_light*y[3]/e;
65 dydx[1] = c_light*y[4]/e;
66 dydx[2] = c_light*y[5]/e;
90 if (density > 0 ) deriv = (factor/theMass)*
91 std::pow(density, -1./3.)*nuclearDensity->
GetDeriv(pos);
96 dydx[3] = yMod == 0 ? 0 : deriv*y[0]/yMod*c_light;
97 dydx[4] = yMod == 0 ? 0 : deriv*y[1]/yMod*c_light;
98 dydx[5] = yMod == 0 ? 0 : deriv*y[2]/yMod*c_light;
virtual void EvaluateRhsGivenB(const G4double y[], const G4double B[3], G4double dydx[]) const
G4KM_NucleonEqRhs(G4KM_DummyField *field, G4V3DNucleus *nucleus)
virtual const G4VNuclearDensity * GetNuclearDensity() const =0
virtual G4int GetMassNumber()=0
G4double GetDensity(const G4ThreeVector &aPosition) const
virtual G4double GetDeriv(const G4ThreeVector &point) const =0