Go to the documentation of this file. 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 Vector3D momentum() const
CurvilinearState operator+(const CurvilinearState &a, const CurvilinearState &b)
CurvilinearState operator/(const CurvilinearState &v, const CurvilinearState::Scalar &s)
CurvilinearState(const Vector3D &pos, const Vector3D &p, Scalar ch)
Basic2DVector< Scalar > Vector2D
Scalar pzSign_
sign of local pz
const Vector & parameters() const
CurvilinearState operator-(const CurvilinearState &a, const CurvilinearState &b)
VectorDoublet< Vector2D, Vector3D > Vector
const Vector3D position() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
CurvilinearState(const Vector &v, Scalar z, Scalar pzsign)
CurvilinearState operator*(const CurvilinearState &v, const CurvilinearState::Scalar &s)
Basic3DVector< Scalar > Vector3D