1 #ifndef CartesianState_H 2 #define CartesianState_H 18 par_(pos,mom), charge_(s) {}
20 const Vector3D&
position()
const {
return par_.first();}
21 const Vector3D&
momentum()
const {
return par_.second();}
25 Scalar
charge()
const {
return charge_;}
CartesianState operator+(const CartesianState &a, const CartesianState &b)
CartesianState operator-(const CartesianState &a, const CartesianState &b)
Basic3DVector< Scalar > Vector3D
const Vector & parameters() const
const Vector3D & momentum() const
VectorDoublet< Vector3D, Vector3D > Vector
CartesianState(const Vector &v, Scalar s)
CartesianState(const Vector3D &pos, const Vector3D &mom, Scalar s)
const Vector3D & position() const
CartesianState operator/(const CartesianState &v, const CartesianState::Scalar &s)
CartesianState operator*(const CartesianState &v, const CartesianState::Scalar &s)