8 #include <tracking/trackFitting/measurementCreator/measurements/HMatrixQP.h>
10 #include <TMatrixTSym.h>
23 const TMatrixD& HMatrixQP::getMatrix()
const
25 static const double HMatrixContent[5] = {1, 0, 0, 0, 0};
27 static const TMatrixD HMatrix(1, 5, HMatrixContent);
33 TVectorD HMatrixQP::Hv(
const TVectorD& v)
const
35 assert(v.GetNrows() == 5);
37 TVectorD returnValue(1);
39 returnValue(0) = v(0);
45 TMatrixD HMatrixQP::MHt(
const TMatrixDSym& M)
const
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);
59 TMatrixD HMatrixQP::MHt(
const TMatrixD& M)
const
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);
73 void HMatrixQP::HMHt(TMatrixDSym& M)
const
75 assert(M.GetNrows() == 5);
81 void HMatrixQP::Print(
const Option_t*)
const
83 std::cout <<
"V" << std::endl;
Abstract base class for different kinds of events.
Defines for I/O streams used for error and debug printing.