Belle II Software  release-05-01-25
Projection.cc
1 /**************************************************************************
2  *
3  * BASF2 (Belle Analysis Framework 2) *
4  * Copyright(C) 2018 - Belle II Collaboration *
5  * *
6  * Author: The Belle II Collaboration *
7  * Contributor: Wouter Hulsbergen, Francesco Tenchini, Jo-Frederik Krohn *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 
13 #include <analysis/VertexFitting/TreeFitter/Projection.h>
14 
15 namespace TreeFitter {
16 
17  Projection::Projection(int dimP, int dimC) :
18  m_H(dimC, dimP),
19  m_V(dimC, dimC),
20  m_residual(dimC),
21  m_dimCov(dimC),
22  m_dimProj(dimP),
23  m_offset(0) {}
24 
26  {
27  m_residual = Eigen::Matrix < double, -1, 1, 0, 5, 1 >::Zero(m_dimCov);
28  m_H = Eigen::Matrix < double, -1, -1, 0, 5, MAX_MATRIX_SIZE >::Zero(m_dimCov, m_dimProj);
29  m_V = Eigen::Matrix < double, -1, -1, 0, 5, 5 >::Zero(m_dimCov, m_dimCov);
30  m_offset = 0;
31  }
32 
33 }
TreeFitter::Projection::m_residual
Eigen::Matrix< double, -1, 1, 0, 5, 1 > m_residual
residuals of constraint
Definition: Projection.h:92
TreeFitter::Projection::m_dimCov
int m_dimCov
dimension of the covariance
Definition: Projection.h:95
TreeFitter::Projection::m_offset
unsigned int m_offset
offset for constraint index.
Definition: Projection.h:101
TreeFitter::Projection::m_H
Eigen::Matrix< double, -1, -1, 0, 5, MAX_MATRIX_SIZE > m_H
jacobian of the constraint, converts x,p,E<->system of residuals
Definition: Projection.h:86
TreeFitter::Projection::m_dimProj
int m_dimProj
dimension of H
Definition: Projection.h:98
TreeFitter::Projection::m_V
Eigen::Matrix< double, -1, -1, 0, 5, 5 > m_V
covariance matrix of this constraint (r')
Definition: Projection.h:89
TreeFitter::Projection::Projection
Projection(int dimP, int dimC)
constructor
Definition: Projection.cc:26
TreeFitter::Projection::resetProjection
void resetProjection()
reset projection
Definition: Projection.cc:34