8#include <tracking/trackFindingCDC/geometry/LineParameters.h>
10#include <tracking/trackFindingCDC/geometry/UncertainParameters.icc.h>
12#include <tracking/trackFindingCDC/numerics/Angle.h>
15using namespace TrackFindingCDC;
26 using namespace NLineParameterIndices;
28 refPar(c_I) = (fromPar(c_I) + toPar(c_I)) / 2;
32 relFromPar(c_I) = fromPar(c_I) - refPar(c_I);
36 relToPar(c_I) = toPar(c_I) - refPar(c_I);
43 avgPar(c_I) = relAvgPar(c_I) + refPar(c_I);
A matrix implementation to be used as an interface typ through out the track finder.
Abstract base class for different kinds of events.
static double average(const double angle1, double angle2)
Combines two angular values to the one that lies half way between them on the short arc.
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].
static double average(const ParameterVector< N > &par1, const CovarianceMatrix< N > &cov1, const ParameterVector< N > &par2, const CovarianceMatrix< N > &cov2, ParameterVector< N > &par, CovarianceMatrix< N > &cov)
Averages two parameter vectors taking into account their respective covariances.
static double average(const LineUtil::ParameterVector &fromPar, const LineUtil::CovarianceMatrix &fromCov, const LineUtil::ParameterVector &toPar, const LineUtil::CovarianceMatrix &toCov, LineUtil::ParameterVector &avgPar, LineUtil::CovarianceMatrix &avgCov)
Calculates the weighted average between two line parameter sets with their respective covariance matr...
Utility struct to instantiate a couple of helper function related to a set of uncertain parameters.