1 #ifndef CurvilinearState_H 2 #define CurvilinearState_H 35 pzSign_(
p.
z() > 0. ? 1. : -1.) {}
40 Scalar p = 1. / fabs(par_.second().z());
57 double pzSign()
const {
return pzSign_; }
const Vector & parameters() const
VectorDoublet< Vector2D, Vector3D > Vector
const Vector3D position() const
Basic2DVector< Scalar > Vector2D
CurvilinearState operator*(const CurvilinearState &v, const CurvilinearState::Scalar &s)
CurvilinearState operator-(const CurvilinearState &a, const CurvilinearState &b)
CurvilinearState(const Vector &v, Scalar z, Scalar pzsign)
const Vector3D momentum() const
Basic3DVector< Scalar > Vector3D
CurvilinearState operator/(const CurvilinearState &v, const CurvilinearState::Scalar &s)
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
CurvilinearState(const Vector3D &pos, const Vector3D &p, Scalar ch)
Scalar pzSign_
sign of local pz
CurvilinearState operator+(const CurvilinearState &a, const CurvilinearState &b)