38 G4int noIntegrationVariables,
42 const G4int numberOfVariables = noIntegrationVariables;
112 b41 = 3043.0/3528.0 ,
113 b42 = -3757.0/1176.0 ,
116 b51 = 17617.0/11662.0 ,
117 b52 = -4023.0/686.0 ,
118 b53 = 9372.0/1715.0 ,
127 dc1 = 363.0/2975.0 - b61 ,
129 dc3 = 981.0/1750.0 - b63,
130 dc4 = 2709.0/4250.0 - b64 ,
131 dc5 = -3.0/10.0 - b65 ,
142 for(i=0; i<numberOfVariables; ++i)
149 for(i=0; i<numberOfVariables; ++i)
151 yTemp[i] =
yIn[i] + b21*Step*DyDx[i] ;
155 for(i=0; i<numberOfVariables; ++i)
157 yTemp[i] =
yIn[i] + Step*(b31*DyDx[i] + b32*
ak2[i]) ;
161 for(i=0; i<numberOfVariables; ++i)
163 yTemp[i] =
yIn[i] + Step*(b41*DyDx[i] + b42*
ak2[i] + b43*
ak3[i]) ;
167 for(i=0; i<numberOfVariables; ++i)
170 + b53*
ak3[i] + b54*
ak4[i]) ;
174 for(i=0; i<numberOfVariables; ++i)
176 yOut[i] =
yIn[i] + Step*(b61*DyDx[i] + b62*
ak2[i] + b63*
ak3[i]
177 + b64*
ak4[i] + b65*
ak5[i]) ;
181 for(i=0; i<numberOfVariables; ++i)
184 yErr[i] = Step*(dc1*DyDx[i] + dc2*
ak2[i] + dc3*
ak3[i] + dc4*
ak4[i]
185 + dc5*
ak5[i] + dc6*
ak6[i] ) ;
224 if (initialPoint != finalPoint)
227 distChord = distLine;
231 distChord = (midPoint-initialPoint).mag();
261 G4double bf1, bf2, bf3, bf4, bf5, bf6;
265 for(
G4int i=0; i<numberOfVariables; ++i)
270 G4double tau_2 = tau*tau, tau_3 = tau*tau_2;
274 bf1 = -(162.0*tau_3 - 504.0*tau_2 + 551.0*tau - 238.0)/238.0 ,
276 bf3 = 27.0*tau*(27.0*tau_2 - 70.0*tau + 51.0 )/385.0 ,
277 bf4 = -27*tau*(27.0*tau_2 - 50.0*tau + 21.0)/85.0 ,
278 bf5 = 7.0*tau*(2232.0*tau_2 - 4166.0*tau + 1785.0 )/3278.0 ,
279 bf6 = tau*(tau - 1.0)*(387.0*tau - 238.0)/149.0 ;
281 for(
G4int i=0; i<numberOfVariables; ++i)
283 yOut[i] =
yIn[i] + Step*tau*(bf1*dydx[i] + bf2*
ak2[i] + bf3*
ak3[i]
284 + bf4*
ak4[i] + bf5*
ak5[i] + bf6*
ak6[i] ) ;