 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/geometry/LineParameters.h>
12 #include <tracking/trackFindingCDC/geometry/UncertainParameters.icc.h>
14 #include <tracking/trackFindingCDC/numerics/Angle.h>
17 using namespace TrackFindingCDC;
28 using namespace NLineParameterIndices;
30 refPar(c_I) = (fromPar(c_I) + toPar(c_I)) / 2;
34 relFromPar(c_I) = fromPar(c_I) - refPar(c_I);
38 relToPar(c_I) = toPar(c_I) - refPar(c_I);
45 avgPar(c_I) = relAvgPar(c_I) + refPar(c_I);
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.
Abstract base class for different kinds of events.
static double average(const double angle1, double angle2)
Combines two angluar values to the one that lies half way between them on the short arc.
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...
A matrix implementation to be used as an interface typ through out the track finder.
static double normalised(const double angle)
Normalise an angle to lie in the range from [-pi, pi].