10#include <tracking/trackFindingCDC/numerics/CovarianceMatrix.h>
12#include <TMatrixDSymfwd.h>
21 namespace TrackFindingCDC {
40#include <TMatrixDSym.h>
47 namespace TrackFindingCDC {
52 assert(tCov.GetNrows() == N);
53 assert(tCov.GetNcols() == N);
54 assert(tCov.GetRowLwb() == 0);
55 assert(tCov.GetColLwb() == 0);
58 for (
int i = 0; i < N; ++i) {
59 for (
int j = 0; j < N; ++j) {
60 result(i, j) = tCov(i, j);
69 TMatrixDSym result(N);
70 for (
int i = 0; i < N; ++i) {
71 for (
int j = 0; j < N; ++j) {
72 result(i, j) = cov(i, j);
A matrix implementation to be used as an interface typ through out the track finder.
Abstract base class for different kinds of events.
Convert between TMatrix and CovarianceMatrix representations.
static CovarianceMatrix< N > fromTMatrix(const TMatrixDSym &tCov)
Create a covariance matrix from a TMatrix representation.
static TMatrixDSym toTMatrix(const CovarianceMatrix< N > &cov)
Translate the covariance matrix to the TMatrix representation.