10#include <tracking/trackFindingCDC/geometry/UncertainParameters.h>
12#include <tracking/trackFindingCDC/numerics/CovarianceMatrixUtil.h>
13#include <tracking/trackFindingCDC/numerics/JacobianMatrixUtil.h>
14#include <tracking/trackFindingCDC/numerics/ParameterVectorUtil.h>
21 namespace TrackFindingCDC {
23 template <
class T,
class AEParameters>
30 template <
class T,
class AEParameters>
37 template <
class T,
class AEParameters>
42 template <
class T,
class AEParameters>
48 template <
class T,
class AEParameters>
51 return transported(reversalJacobian(), cov);
54 template <
class T,
class AEParameters>
56 return CovarianceMatrixUtil::identity<c_N>();
59 template <
class T,
class AEParameters>
60 template <
class AParameterVector,
int I>
64 return ParameterVectorUtil::getSub<AParameterVector, I>(par);
67 template <
class T,
class AEParameters>
68 template <
class ACovarianceMatrix,
int I>
72 return CovarianceMatrixUtil::getSub<ACovarianceMatrix, I>(cov);
75 template <
class T,
class AEParameters>
82 template <
class T,
class AEParameters>
89 template <
class T,
class AEParameters>
96 template <
class T,
class AEParameters>
A matrix implementation to be used as an interface typ through out the track finder.
Abstract base class for different kinds of events.
static CovarianceMatrix< N > fromPrecision(const PrecisionMatrix< N > &prec)
Convert precision matrix to covariance matrix - allows for reduced rank.
static CovarianceMatrix< M > transported(const JacobianMatrix< M, N > &jacobian, const CovarianceMatrix< N > &cov)
Return a copy of the covariance matrix transported with the given jacobian matrix.
static void transport(const JacobianMatrix< N, N > &jacobian, CovarianceMatrix< N > &cov)
Transport the covariance matrix inplace with the given jacobian matrix.
static PrecisionMatrix< N > fullToPrecision(const CovarianceMatrix< N > &cov)
Convert precision matrix to covariance matrix - assumes full rank.
static CovarianceMatrix< N > fromFullPrecision(const PrecisionMatrix< N > &prec)
Convert covariance matrix to precision matrix - assumes full rank.
static PrecisionMatrix< N > toPrecision(const CovarianceMatrix< N > &cov)
Convert covariance matrix to precision matrix - allows for reduced rank.
static JacobianMatrix< N > scale(const ParameterVector< N > &scales)
Calculates the jacobian matrix for a scaling in each parameter.
static PrecisionMatrix precisionFromCovariance(const CovarianceMatrix &cov)
Convert the covariance matrix to the corresponding precision matrix.
static PrecisionMatrix precisionFromFullCovariance(const CovarianceMatrix &cov)
Convert the covariance matrix to the corresponding precision matrix.
static CovarianceMatrix transported(const JacobianMatrix &jacobian, const CovarianceMatrix &cov)
Return a copy of the covariance matrix transported with the given jacobian matrix.
static CovarianceMatrix covarianceFromPrecision(const PrecisionMatrix &prec)
Convert the precision matrix to the corresponding covariance matrix.
static void transport(const JacobianMatrix &jacobian, CovarianceMatrix &cov)
Transport the covariance matrix inplace with the given jacobian matrix.
static CovarianceMatrix identity()
Returns an identity matrix.
static AParameterVector getSubParameterVector(const ParameterVector &par)
Getter for a sub part of the covariance matrix.
static ACovarianceMatrix getSubCovarianceMatrix(const CovarianceMatrix &cov)
Getter for a sub part of the covariance matrix.
static JacobianMatrix reversalJacobian()
Jacobian matrix needed in the reversal operation of the parameter vector.
static void reverse(CovarianceMatrix &cov)
Reverse the covariance matrix inplace.
static CovarianceMatrix covarianceFromFullPrecision(const PrecisionMatrix &prec)
Convert the precision matrix to the corresponding covariance matrix.
static CovarianceMatrix reversed(const CovarianceMatrix &cov)
Return a copy of the reversed covariance matrix.