#include <CartesianStateAdaptor.h>
Public Types | |
typedef double | Scalar |
typedef Basic3DVector< Scalar > | Vector3D |
Public Member Functions | |
CartesianStateAdaptor (const RKSmallVector< double, 6 > &rk) | |
const Vector3D & | momentum () const |
const Vector3D & | position () const |
Static Public Member Functions | |
static Vector3D | momentum (const RKSmallVector< double, 6 > &rk) |
static Vector3D | position (const RKSmallVector< double, 6 > &rk) |
static RKSmallVector< double, 6 > | rkstate (const Vector3D &pos, const Vector3D &mom) |
Private Attributes | |
Vector3D | mom_ |
Vector3D | pos_ |
Definition at line 4 of file CartesianStateAdaptor.h.
typedef double CartesianStateAdaptor::Scalar |
Definition at line 7 of file CartesianStateAdaptor.h.
Definition at line 8 of file CartesianStateAdaptor.h.
CartesianStateAdaptor::CartesianStateAdaptor | ( | const RKSmallVector< double, 6 > & | rk | ) | [inline] |
Definition at line 10 of file CartesianStateAdaptor.h.
const Vector3D& CartesianStateAdaptor::momentum | ( | ) | const [inline] |
Definition at line 14 of file CartesianStateAdaptor.h.
Referenced by RKPropagatorInS::gtpFromVolumeLocal(), RKCartesianDistance::operator()(), CartesianLorentzForce::operator()(), RKPropagatorInS::propagateParametersOnCylinder(), and RKPropagatorInS::propagateParametersOnPlane().
{ return mom_;}
static Vector3D CartesianStateAdaptor::momentum | ( | const RKSmallVector< double, 6 > & | rk | ) | [inline, static] |
Definition at line 20 of file CartesianStateAdaptor.h.
{ return Vector3D(rk[3], rk[4], rk[5]); }
const Vector3D& CartesianStateAdaptor::position | ( | void | ) | const [inline] |
Definition at line 13 of file CartesianStateAdaptor.h.
Referenced by RKPropagatorInS::gtpFromVolumeLocal(), RKCartesianDistance::operator()(), CartesianLorentzForce::operator()(), RKPropagatorInS::propagateParametersOnCylinder(), and RKPropagatorInS::propagateParametersOnPlane().
{ return pos_;}
static Vector3D CartesianStateAdaptor::position | ( | const RKSmallVector< double, 6 > & | rk | ) | [inline, static] |
Definition at line 16 of file CartesianStateAdaptor.h.
{ return Vector3D(rk[0], rk[1], rk[2]); }
static RKSmallVector<double,6> CartesianStateAdaptor::rkstate | ( | const Vector3D & | pos, |
const Vector3D & | mom | ||
) | [inline, static] |
Definition at line 24 of file CartesianStateAdaptor.h.
References Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().
Referenced by CartesianLorentzForce::operator()(), RKPropagatorInS::propagateParametersOnCylinder(), and RKPropagatorInS::propagateParametersOnPlane().
{ RKSmallVector<double,6> res; res[0] = pos.x(); res[1] = pos.y(); res[2] = pos.z(); res[3] = mom.x(); res[4] = mom.y(); res[5] = mom.z(); return res; }
Vector3D CartesianStateAdaptor::mom_ [private] |
Definition at line 38 of file CartesianStateAdaptor.h.
Vector3D CartesianStateAdaptor::pos_ [private] |
Definition at line 37 of file CartesianStateAdaptor.h.