40 G4int noIntegrationVariables,
44 const G4int numberOfVariables = noIntegrationVariables;
123 b31 = -0.00848065549235698854 ,
124 b32 = 0.335480655492356989 ,
126 b41 = 2.89715305710549343 ,
127 b42 = -6.35944848997507484 ,
128 b43 = 4.36229543286958141 ,
130 b51 = 5.325864828439257,
131 b52 = -11.748883564062828,
132 b53 = 7.49553934288983621 ,
133 b54 = -0.09249506636175525,
135 b61 = 5.8614554429464200,
136 b62 = -12.9209693178471093 ,
137 b63 = 8.1593678985761586 ,
138 b64 = -0.071584973281400997,
139 b65 = -0.0282690503940683829,
141 b71 = 0.0964607668180652295 ,
143 b73 = 0.479889650414499575,
144 b74 = 1.37900857410374189,
145 b75 = -3.2900695154360807,
146 b76 = 2.32471052409977398,
156 dc1 = 0.0935237485818927066 - b71 ,
157 dc2 = 0.00865288314156636761 - b72,
158 dc3 = 0.492893099131431868 - b73 ,
159 dc4 = 1.14023541226785810 - b74 ,
160 dc5 = - 2.3291801924393646 - b75,
161 dc6 = 1.56887504931661552 - b76 ,
176 yOut[7] =
yTemp[7] =
yIn[7] = yInput[7];
180 for(
G4int i=0; i<numberOfVariables; ++i)
186 for(
G4int i=0; i<numberOfVariables; ++i)
188 yTemp[i] =
yIn[i] + b21*Step*dydx[i] ;
192 for(
G4int i=0; i<numberOfVariables; ++i)
194 yTemp[i] =
yIn[i] + Step*(b31*dydx[i] + b32*
ak2[i]) ;
198 for(
G4int i=0; i<numberOfVariables; ++i)
200 yTemp[i] =
yIn[i] + Step*(b41*dydx[i] + b42*
ak2[i] + b43*
ak3[i]) ;
204 for(
G4int i=0; i<numberOfVariables; ++i)
211 for(
G4int i=0; i<numberOfVariables; ++i)
214 b64*
ak4[i] + b65*
ak5[i]) ;
218 for(
G4int i=0; i<numberOfVariables; ++i)
220 yOut[i] =
yIn[i] + Step*(b71*dydx[i] + b72*
ak2[i] + b73*
ak3[i] +
226 for(
G4int i=0; i<numberOfVariables; ++i)
228 yErr[i] = Step*(dc1*dydx[i] + dc2*
ak2[i] + dc3*
ak3[i] + dc4*
ak4[i] +
255 G4double bf1, bf2, bf3, bf4, bf5, bf6, bf7;
262 for(
G4int i=0; i<numberOfVariables; ++i)
271 bf1 = -1.0530884977290216*tau*(tau - 1.3299890189751412)*(tau_2 -
272 1.4364028541716351*tau + 0.7139816917074209);
273 bf2 = 0.1017*tau_2*(tau_2 - 2.1966568338249754*tau +
275 bf3 = 2.490627285651252793*tau_2*(tau_2 - 2.38535645472061657*tau
276 + 1.57803468208092486);
277 bf4 = -16.54810288924490272*(tau - 1.21712927295533244)*
278 (tau - 0.61620406037800089)*tau_2;
279 bf5 = 47.37952196281928122*(tau - 1.203071208372362603)*
280 (tau - 0.658047292653547382)*tau_2;
281 bf6 = -34.87065786149660974*(tau - 1.2)*(tau -
282 0.666666666666666667)*tau_2;
283 bf7 = 2.5*(tau - 1.0)*(tau - 0.6)*tau_2;
288 for(
G4int i=0; i<numberOfVariables; ++i)
290 yOut[i] =
yIn[i] + Step*( bf1*dydx[i] + bf2*
ak2[i] + bf3*
ak3[i]
319 if (initialPoint != finalPoint)
322 distChord = distLine;
326 distChord = (midPoint-initialPoint).mag();
CLHEP::Hep3Vector G4ThreeVector
static G4double Distline(const G4ThreeVector &OtherPnt, const G4ThreeVector &LinePntA, const G4ThreeVector &LinePntB)
G4int GetNumberOfVariables() const
void RightHandSide(const G4double y[], G4double dydx[]) const
G4int GetNumberOfStateVariables() const
G4double DistChord() const
G4double * fLastFinalVector
void Interpolate(const G4double yInput[], const G4double dydx[], const G4double Step, G4double yOut[], G4double tau)
G4TsitourasRK45 * fAuxStepper
G4TsitourasRK45(G4EquationOfMotion *EqRhs, G4int numberOfVariables=6, G4bool primary=true)
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
G4double * fLastInitialVector
void SetupInterpolation()
T max(const T t1, const T t2)
brief Return the largest of the two arguments