Belle II Software light-2406-ragdoll
MergedConstraint.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//Merge multiple constraints that we want to project simultaneously.
11//Kept for development, currently incompatible with referencing.
12
13#include <analysis/VertexFitting/TreeFitter/FitParams.h>
14#include <analysis/VertexFitting/TreeFitter/MergedConstraint.h>
15#include <analysis/VertexFitting/TreeFitter/Projection.h>
16
17namespace TreeFitter {
18
20 {
21 ErrCode status ;
22 for (auto element : m_list) {
23 status |= element->project(fitpar, p) ;
24 p.incrementOffset(element->dim()) ;
25 }
26 return status ;
27 }
28}
29
abstract errorocode be aware that the default is success
Definition: ErrCode.h:14
Class to store and manage fitparams (statevector)
Definition: FitParams.h:20
constraintlist m_list
list of the constraints to merge
virtual ErrCode project(const FitParams &fitpar, Projection &p) const override
project the constraints
class to store the projected residuals and the corresponding jacobian as well as the covariance matri...
Definition: Projection.h:18