1 #ifndef RKOne4OrderStep_H 2 #define RKOne4OrderStep_H 10 template <
typename T,
int N>
17 const Vector& startState,
21 const Scalar huge = 1.e5;
22 const Scalar hugediff = 100.;
25 Vector
one(solver(startPar, startState, deriv, step));
27 return std::pair<Vector, Scalar>(one, hugediff);
29 Vector firstHalf(solver(startPar, startState, deriv, step / 2));
30 Vector secondHalf(solver(startPar + step / 2, firstHalf, deriv, step / 2));
31 Scalar
diff = dist(one, secondHalf, startPar + step);
32 return std::pair<Vector, Scalar>(secondHalf,
diff);
std::pair< Vector, T > operator()(Scalar startPar, const Vector &startState, const RKDerivative< T, N > &deriv, const RKDistance< T, N > &dist, Scalar step)
ROOT::Math::SVector< T, N > RKSmallVector
Abs< T >::type abs(const T &t)
Base class for derivative calculation.
RKSmallVector< T, N > Vector