Belle II Software  release-05-01-25
MergedConstraint.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributor: Wouter Hulsbergen, Francesco Tenchini *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 //Merge multiple constraints that we want to project simultaneously.
12 //Kept for development, currently incompatible with referencing.
13 
14 #include <analysis/VertexFitting/TreeFitter/FitParams.h>
15 #include <analysis/VertexFitting/TreeFitter/MergedConstraint.h>
16 #include <analysis/VertexFitting/TreeFitter/Projection.h>
17 
18 namespace TreeFitter {
19 
20  ErrCode MergedConstraint::project(const FitParams& fitpar, Projection& p) const
21  {
22  ErrCode status ;
23  for (auto element : m_list) {
24  status |= element->project(fitpar, p) ;
25  p.incrementOffset(element->dim()) ;
26  }
27  return status ;
28  }
29 }
30 
TreeFitter::MergedConstraint::project
virtual ErrCode project(const FitParams &fitpar, Projection &p) const override
project the constraints
Definition: MergedConstraint.cc:28
TreeFitter::MergedConstraint::m_list
constraintlist m_list
list of the constraints to merge
Definition: MergedConstraint.h:70