1 #ifndef CartesianStateAdaptor_H 2 #define CartesianStateAdaptor_H 14 pos_(rk[0], rk[1], rk[2]), mom_(rk[3], rk[4], rk[5]) {}
16 const Vector3D&
position()
const {
return pos_;}
17 const Vector3D&
momentum()
const {
return mom_;}
20 return Vector3D(rk[0], rk[1], rk[2]);
24 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.
ROOT::Math::SVector< T, N > RKSmallVector
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)