1 #ifndef _TRACKER_LOCALTRAJECTORYPARAMETERS_H_ 2 #define _TRACKER_LOCALTRAJECTORYPARAMETERS_H_ 60 float aX,
float aY,
float aPzSign,
bool charged =
true) :
91 if ( op<1.
e-9
f ) op = 1.e-9
f;
158 if ((p += dP) <= 0.
f)
return false;
159 float newQbp =
theQbp > 0. ? 1.f/p : -1.f/
p;
LocalVector direction() const
Momentum vector unit in the local frame.
Local3DVector LocalVector
Point3DBase< Scalar, LocalTag > LocalPoint
LocalPoint position() const
Local x and y position coordinates.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
float theY
local y position
float theQbp
q/p (charged) or 1/p (neutral)
LocalTrajectoryParameters(float aQbp, float aDxdz, float aDydz, float aX, float aY, float aPzSign, bool charged=true)
float signedInverseMomentum() const
Signed inverse momentum q/p (zero for neutrals).
short thePzSign
sign of local pz
AlgebraicVector5 vector() const
float theX
local x position
LocalVector directionNotNormalized() const
Momentum vector unit in the local frame.
Abs< T >::type abs(const T &t)
LocalVector momentum() const
Momentum vector in the local frame.
LocalTrajectoryParameters(const LocalPoint &pos, const LocalVector &p, TrackCharge charge)
Constructor from local position, momentum and charge.
float theDxdz
tangent of direction in local x vs. z
ROOT::Math::SVector< double, 5 > AlgebraicVector5
LocalTrajectoryParameters(const AlgebraicVector5 &v, float aPzSign, bool charged=true)
float theDydz
tangent of direction in local y vs. z
AlgebraicVector5 mixedFormatVector() const
TrackCharge charge() const
Charge (-1, 0 or 1)
LocalTrajectoryParameters()
float pzSign() const
Sign of the z-component of the momentum in the local frame.
bool updateP(float dP)
Update of momentum by a scalar dP.