8#include <tracking/trackFindingCDC/geometry/PerigeeParameters.h>
10#include <tracking/trackFindingCDC/geometry/UncertainParameters.icc.h>
12#include <tracking/trackFindingCDC/numerics/Angle.h>
15using namespace TrackFindingCDC;
26 using namespace NPerigeeParameterIndices;
41 avgPar = relAvgPar + refPar;
A matrix implementation to be used as an interface typ through out the track finder.
Abstract base class for different kinds of events.
static void normalise(double &angle)
Normalise an angle inplace to lie in the range from [-pi, pi].
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 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 PerigeeUtil::ParameterVector &fromPar, const PerigeeUtil::CovarianceMatrix &fromCov, const PerigeeUtil::ParameterVector &toPar, const PerigeeUtil::CovarianceMatrix &toCov, PerigeeUtil::ParameterVector &avgPar, PerigeeUtil::CovarianceMatrix &avgCov)
Calculates the weighted average between two perigee parameter sets with their respective covariance m...
Utility struct to instantiate a couple of helper function related to a set of uncertain parameters.