10#include <tracking/trackingUtilities/geometry/SZLine.h>
12#include <tracking/trackingUtilities/geometry/SZParameters.h>
14#include <Math/Vector2D.h>
25 namespace TrackingUtilities {
42 const double chi2 = 0.0,
55 const double chi2 = 0.0,
68 const double chi2 = 0.0,
123 double covariance(
const ESZParameter& iRow,
const ESZParameter& iCol)
const
187 SZJacobian jacobian =
m_szLine.passiveMoveByJacobian(bySZ);
199 SZJacobian jacobian =
m_szLine.passiveMoveByJacobian(bySZ);
218 std::ostream& operator<<(std::ostream& output,
const UncertainSZLine& uncertainSZLine);
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.
void passiveMoveBy(const ROOT::Math::XYVector &bySZ)
Moves the coordinate system by the vector by and calculates the new sz line and its 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.
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.
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.
SZCovariance passiveMovedCovarianceBy(const ROOT::Math::XYVector &bySZ) const
Calculates the jacobian matrix that is needed for the translation of the parameter covariance for a p...
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.
Abstract base class for different kinds of events.
static CovarianceMatrix transported(const JacobianMatrix &jacobian, const CovarianceMatrix &cov)
static void transport(const JacobianMatrix &jacobian, CovarianceMatrix &cov)
static CovarianceMatrix identity()
static void reverse(CovarianceMatrix &cov)
static CovarianceMatrix reversed(const CovarianceMatrix &cov)