Belle II Software  release-08-01-10
Projection.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * External Contributor: Wouter Hulsbergen *
5  * *
6  * See git log for contributors and copyright holders. *
7  * This file is licensed under LGPL-3.0, see LICENSE.md. *
8  **************************************************************************/
9 
10 
11 #include <analysis/VertexFitting/TreeFitter/Projection.h>
12 
13 namespace TreeFitter {
14 
15  Projection::Projection(int dimP, int dimC) :
16  m_H(dimC, dimP),
17  m_V(dimC, dimC),
18  m_residual(dimC),
19  m_dimCov(dimC),
20  m_dimProj(dimP),
21  m_offset(0) {}
22 
24  {
25  m_residual = Eigen::Matrix < double, -1, 1, 0, 7, 1 >::Zero(m_dimCov);
26  m_H = Eigen::Matrix < double, -1, -1, 0, 7, MAX_MATRIX_SIZE >::Zero(m_dimCov, m_dimProj);
27  m_V = Eigen::Matrix < double, -1, -1, 0, 7, 7 >::Zero(m_dimCov, m_dimCov);
28  m_offset = 0;
29  }
30 
31 }
int m_dimProj
dimension of H
Definition: Projection.h:81
Projection(int dimP, int dimC)
constructor
Definition: Projection.cc:15
Eigen::Matrix< double, -1, 1, 0, 7, 1 > m_residual
residuals of constraint
Definition: Projection.h:75
unsigned int m_offset
offset for constraint index.
Definition: Projection.h:84
int m_dimCov
dimension of the covariance
Definition: Projection.h:78
Eigen::Matrix< double, -1, -1, 0, 7, 7 > m_V
covariance matrix of this constraint (r')
Definition: Projection.h:72
void resetProjection()
reset projection
Definition: Projection.cc:23
Eigen::Matrix< double, -1, -1, 0, 7, MAX_MATRIX_SIZE > m_H
jacobian of the constraint, converts x,p,E<->system of residuals
Definition: Projection.h:69