47{
50
51
52
54
55
56
57 for(
G4int i=0; i<nvar; ++i)
58 {
59 yInitial[i]=yInput[i];
60 }
61 yInitial[7] = yInput[7];
62 yMiddle[7] = yInput[7];
63 yOneStep[7] = yInput[7];
64
65
66 for(
G4int i=nvar; i<maxvar; ++i)
67 {
68 yOutput[i]=yInput[i];
69 }
70
71
73
74
75
79
80
81
82 fMidPoint =
G4ThreeVector( yMiddle[0], yMiddle[1], yMiddle[2]);
83
84
85
87 for(
G4int i=0; i<nvar; ++i)
88 {
89 yError [i] = yOutput[i] - yOneStep[i] ;
90 yOutput[i] += yError[i]*correction ;
91
92 }
93
94 fInitialPoint =
G4ThreeVector( yInitial[0], yInitial[1], yInitial[2]);
95 fFinalPoint =
G4ThreeVector( yOutput[0], yOutput[1], yOutput[2]);
96
97 return;
98}
CLHEP::Hep3Vector G4ThreeVector
virtual void DumbStepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[])=0
G4int GetNumberOfVariables() const
void RightHandSide(const G4double y[], G4double dydx[]) const
G4int GetNumberOfStateVariables() const
virtual G4int IntegratorOrder() const =0