89 G4double *yInitial, *yMiddle, *dydxMid, *yOneStep;
100 G4double momentum_mag_square = y[3]*y[3] + y[4]*y[4] + y[5]*y[5];
101 G4double inv_momentum_magnitude = 1.0 / std::sqrt( momentum_mag_square );
105 dydx[0] = y[3]*inv_momentum_magnitude;
106 dydx[1] = y[4]*inv_momentum_magnitude;
107 dydx[2] = y[5]*inv_momentum_magnitude;
109 dydx[3] = cof*(y[4]*Field[2] - y[5]*Field[1]) ;
110 dydx[4] = cof*(y[5]*Field[0] - y[3]*Field[2]) ;
111 dydx[5] = cof*(y[3]*Field[1] - y[4]*Field[0]) ;
118 PositionAndTime[0] = y[0];
119 PositionAndTime[1] = y[1];
120 PositionAndTime[2] = y[2];
122 PositionAndTime[3] = y[7];
123 fEq -> GetFieldValue(PositionAndTime, B) ;
void DumbStepper(const G4double yIn[], const G4double dydx[], G4double h, G4double yOut[])
G4int IntegratorOrder() const
void RightHandSideConst(const G4double y[], G4double dydx[]) const
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
void GetConstField(const G4double y[], G4double Field[])
G4double DistChord() const