1 #ifndef CartesianStateAdaptor_H
2 #define CartesianStateAdaptor_H
11 pos_(rk[0], rk[1], rk[2]),
mom_(rk[3], rk[4], rk[5]) {}
17 return Vector3D(rk[0], rk[1], rk[2]);
21 return Vector3D(rk[3], rk[4], rk[5]);
static Vector3D momentum(const RKSmallVector< double, 6 > &rk)
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
static Vector3D position(const RKSmallVector< double, 6 > &rk)
T z() const
Cartesian z coordinate.
static RKSmallVector< double, 6 > rkstate(const Vector3D &pos, const Vector3D &mom)
const Vector3D & momentum() const
Basic3DVector< Scalar > Vector3D
const Vector3D & position() const
CartesianStateAdaptor(const RKSmallVector< double, 6 > &rk)