10#include <tracking/trackFindingCDC/geometry/SZLine.h>
12#include <tracking/trackFindingCDC/geometry/SZParameters.h>
23 namespace TrackFindingCDC {
41 const double chi2 = 0.0,
54 const double chi2 = 0.0,
67 const double chi2 = 0.0,
217 std::ostream& operator<<(std::ostream& output,
const UncertainSZLine& uncertainSZLine);
A matrix implementation to be used as an interface typ through out the track finder.
SZParameters szParameters() const
Getter for the sz parameters.
void reverse()
Reverse the arc length direction in place.
SZJacobian passiveMoveByJacobian(const Vector2D &bySZ) const
Computes the Jacobi matrix for a move of the coordinate system by the given vector.
void invalidate()
Sets the parameters to a invalid representation.
void passiveMoveBy(const Vector2D &bySZ)
Passively move the coordinate system in place by the given sz vector.
SZLine reversed() const
Returns a copy of the line with reversed the arc length direction.
A line in sz where s is the transverse travel distance as seen in the xy projection with uncertaintie...
void setSZCovariance(const SZCovariance &szCovariance)
Setter for the whole covariance matrix of the sz line parameters.
SZCovariance m_szCovariance
Memory for the 2x2 covariance matrix of sz slope (aka tan lambda) and z0.
UncertainSZLine(const SZLine &szLine, const SZCovariance &szCovariance=SZUtil::identity(), const double chi2=0.0, const size_t ndf=0)
Augments a plain two dimensional line with a covariance matrix.
const SZLine * operator->() const
Access to the constant interface of the underlying parameter line Allows the user of this "super" cla...
double variance(const ESZParameter &i) const
Getter for individual diagonal elements of the covariance matrix.
SZParameters szParameters() const
Getter for the sz parameters in the order defined by ESZParameter.h.
void reverse()
Reverses the direction of flight represented by this sz line.
SZCovariance passiveMovedCovarianceBy(const Vector2D &bySZ) const
Calculates the jacobian matrix that is needed for the translation of the parameter covariance for a p...
UncertainSZLine(const double tanLambda, const double z0, const SZCovariance &szCovariance=SZUtil::identity(), const double chi2=0.0, const size_t ndf=0)
Composes an uncertain sz line from the perigee parameters and a 2x2 covariance matrix.
double m_chi2
Memory for the chi square value of the fit of this line.
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...
const SZCovariance & szCovariance() const
Getter for the whole covariance matrix of the sz line parameters.
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.
size_t m_ndf
Memory for the number of degrees of freedim of the fit of this line.
UncertainSZLine(const SZParameters szParameters, const SZCovariance &szCovariance=SZUtil::identity(), const double chi2=0.0, const size_t ndf=0)
Composes an uncertain sz line from the perigee parameters and a 2x2 covariance matrix.
SZLine m_szLine
Memory for the underlying line.
void setChi2(const double chi2)
Setter for the chi square value of the line fit.
UncertainSZLine reversed() const
Returns a copy of the line corresponding to the reverse direction of travel.
double covariance(const ESZParameter &iRow, const ESZParameter &iCol) const
Getter for individual elements of the covariance matrix.
std::size_t ndf() const
Getter for the number of degrees of freediom used in the line fit.
UncertainSZLine()
Default constructor for ROOT compatibility.
const SZLine & szLine() const
Getter for the underlying sz line.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
ESZParameter
Enumeration to address the individual sz parameters in a vector or matrix.
Abstract base class for different kinds of events.
static CovarianceMatrix transported(const JacobianMatrix &jacobian, const CovarianceMatrix &cov)
Return a copy of the covariance matrix transported with the given jacobian matrix.
static void transport(const JacobianMatrix &jacobian, CovarianceMatrix &cov)
Transport the covariance matrix inplace with the given jacobian matrix.
static CovarianceMatrix identity()
Returns an identity matrix.
static void reverse(CovarianceMatrix &cov)
Reverse the covariance matrix inplace.
static CovarianceMatrix reversed(const CovarianceMatrix &cov)
Return a copy of the reversed covariance matrix.