10#include <tracking/trackFindingCDC/geometry/UncertainSZLine.h>
11#include <tracking/trackFindingCDC/geometry/Vector2D.h>
20 namespace TrackFindingCDC {
68 double getZDist(
const double s,
const double z)
const
80 double getSZDist(
const double s,
const double z)
const
Linear trajectory in sz space.
CDCTrajectorySZ(const UncertainSZLine &szLine)
Constructs the trajectory from the given two dimensional sz line.
double mapSToZ(const double s=0) const
Translates the travel distance to the z coordinate.
static CDCTrajectorySZ basicAssumption()
Constructs a basic assumption, what the z0 start position and the sz slope are, including some broad ...
double getChi2() const
Getter for the chi square value of the line fit.
double getPValue() const
Getter for p-value.
bool isFitted() const
Indicates if the line has been fitted.
CDCTrajectorySZ(const double tanLambda, const double z0)
Constructs the trajectory with the given slope and start z.
double mapPtToPz(const double pt) const
Translates the absolute value of the transverse momentum to the momentum in z direction.
UncertainSZLine m_szLine
Memory for the line representation.
double getSZDist(const double s, const double z) const
Gets the signed distance of the sz point to the line in the sz plane This gives the signed distance o...
double getTanLambda() const
Getter for the slope over the travel distance coordinate.
double getZDist(const double s, const double z) const
Calculates the distance along between the given point at the sz trajectory.
CDCTrajectorySZ()
Default constructor for ROOT compatibility.
void setSZLine(const UncertainSZLine &szLine)
Setter for the line in sz space.
void setNDF(std::size_t ndf)
Setter for the number of degrees of freedom of the line fit.
double getZ0() const
Getter for the z coordinate at zero travel distance.
static SZCovariance getBasicSZCovariance()
Getter for a default assumption about the parameter covariances.
void clear()
Clears all information from this trajectory line.
const UncertainSZLine & getSZLine() const
Getter for the line in sz space.
void setChi2(const double chi2)
Setter for the chi square value of the line fit.
void passiveMoveS(const double deltaS)
Passively Shift the s coordinate by the amount given.
size_t getNDF() const
Getter for the number of degrees of freedom of the line fit.
A matrix implementation to be used as an interface typ through out the track finder.
bool isInvalid() const
Indicates if the line parameters do not represent a valid line.
double slope() const
Getter for the slope in the sz space which is equivalent to tan lambda.
double intercept() const
Getter for the intercept in the sz space which is equivalent to z0.
double map(double s) const
Maps the two dimensional arc length s to z.
double distance(const Vector2D &szPoint) const
Calculates the signed distance of the point to the line.
A line in sz where s is the transverse travel distance as seen in the xy projection with uncertaintie...
void invalidate()
Sets all line parameters to zero including the covariance matrix.
void passiveMoveBy(const Vector2D &bySZ)
Moves the coordinate system by the vector by and calculates the new sz line and its covariance matrix...
double chi2() const
Getter for the chi square value of the line fit.
void setNDF(std::size_t ndf)
Setter for the number of degrees of freediom used in the line fit.
void setChi2(const double chi2)
Setter for the chi square value of the line fit.
std::size_t ndf() const
Getter for the number of degrees of freediom used in the line fit.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
Abstract base class for different kinds of events.