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