1 #ifndef _gal_RelativisticChargeInMagneticFieldODE_h_
2 #define _gal_RelativisticChargeInMagneticFieldODE_h_
22 template<
class MagneticFieldFunctor>
27 MagneticFieldFunctor& mag)
31 template<
typename Vector6>
41 dYdX[3] =
fQcE * (y[4]*b[2] - y[5]*b[1]);
42 dYdX[4] =
fQcE * (y[5]*b[0] - y[3]*b[2]);
43 dYdX[5] =
fQcE * (y[3]*b[1] - y[4]*b[0]);
47 operator unsigned int()
const
MagneticFieldFunctor & fMagField
void operator()(const double, const Vector6 &y, Vector6 &dYdX) const
calculate derivatives
RelativisticChargeInMagneticFieldODE(const double charge, const double energy, MagneticFieldFunctor &mag)