74 G4double yMod = std::sqrt(y[0]*y[0]+y[1]*y[1]+y[2]*y[2]);
75 G4double e = std::sqrt(theMass*theMass+y[3]*y[3]+y[4]*y[4]+y[5]*y[5]);
76 dydx[0] = c_light*y[3]/e;
77 dydx[1] = c_light*y[4]/e;
78 dydx[2] = c_light*y[5]/e;
88 dydx[3] = yMod == 0 ? 0 : -deriv*y[0]/yMod*c_light;
89 dydx[4] = yMod == 0 ? 0 : -deriv*y[1]/yMod*c_light;
90 dydx[5] = yMod == 0 ? 0 : -deriv*y[2]/yMod*c_light;