8#include <tracking/trackFitting/measurementCreator/measurements/HMatrixQP.h>
10#include <TMatrixTSym.h>
15using namespace genfit;
25 static const double HMatrixContent[5] = {1, 0, 0, 0, 0};
27 static const TMatrixD HMatrix(1, 5, HMatrixContent);
35 assert(v.GetNrows() == 5);
37 TVectorD returnValue(1);
39 returnValue(0) = v(0);
47 assert(M.GetNcols() == 5);
49 TMatrixD returnVector(5, 1);
51 for (
unsigned int i = 0; i < 5; ++i) {
52 returnVector(i, 0) = M(0, i);
61 assert(M.GetNcols() == 5);
63 TMatrixD returnMatrix(M.GetNrows(), 1);
65 for (
int i = 0; i < M.GetNrows(); ++i) {
66 returnMatrix(i, 0) = M(0, i);
75 assert(M.GetNrows() == 5);
83 std::cout <<
"V" << std::endl;
TMatrixD MHt(const TMatrixDSym &M) const override
Calculate M * H^T = first column of M.
void HMHt(TMatrixDSym &M) const override
Calculate H * M * H^T = M_00.
virtual void Print(const Option_t *="") const override
Print a symbol for the matrix for debugging.
const TMatrixD & getMatrix() const override
Return the underlying matrix.
TVectorD Hv(const TVectorD &v) const override
Calculate H * v = v_0.
Abstract base class for different kinds of events.