8#include <tracking/trackFindingCDC/geometry/UncertainHelix.h>
10#include <tracking/trackFindingCDC/geometry/UncertainPerigeeCircle.h>
12#include <tracking/trackFindingCDC/geometry/Helix.h>
14#include <tracking/trackFindingCDC/geometry/HelixParameters.h>
15#include <tracking/trackFindingCDC/geometry/PerigeeParameters.h>
16#include <tracking/trackFindingCDC/geometry/SZParameters.h>
21using namespace TrackFindingCDC;
32 HelixParameters avgPar;
33 HelixCovariance avgCov;
44 const PerigeeHelixAmbiguity& fromAmbiguity,
53 HelixParameters avgPar;
54 HelixCovariance avgCov;
65 const PerigeeHelixAmbiguity& fromAmbiguity,
67 const PerigeeHelixAmbiguity& toAmbiguity,
68 const SZParameters& szParameters)
76 HelixParameters avgPar;
77 HelixCovariance avgCov;
95std::ostream& TrackFindingCDC::operator<<(std::ostream& output,
const UncertainHelix& uncertainHelix)
97 return output <<
"Uncertain" << uncertainHelix.
helix();
A general helix class including a covariance matrix.
const HelixCovariance & helixCovariance() const
Getter for the whole covariance matrix of the perigee parameters.
UncertainHelix()
Default constructor for ROOT compatibility.
static UncertainHelix average(const UncertainHelix &fromHelix, const UncertainHelix &toHelix)
Construct the averages of the two given helices by properly considering their covariance matrix.
HelixParameters helixParameters() const
Getter for the perigee parameters in the order defined by EPerigeeParameter.h.
double chi2() const
Getter for the chi square value of the helix fit.
std::size_t ndf() const
Getter for the number of degrees of freediom used in the helix fit.
const Helix & helix() const
Getter for the underlying helix.
Adds an uncertainty matrix to the circle in perigee parameterisation.
PerigeeParameters perigeeParameters() const
Getter for the perigee parameters in the order defined by EPerigeeParameter.h.
const PerigeeCovariance & perigeeCovariance() const
Getter for the whole covariance matrix of the perigee parameters.
UncertainHelix()
Default constructor initialising all members to zero.
Abstract base class for different kinds of events.
static double average(const HelixUtil::ParameterVector &fromPar, const HelixUtil::CovarianceMatrix &fromCov, const HelixUtil::ParameterVector &toPar, const HelixUtil::CovarianceMatrix &toCov, HelixUtil::ParameterVector &avgPar, HelixUtil::CovarianceMatrix &avgCov)
Calculates the weighted average between two helix parameter sets with their respective covariance mat...