FairRoot/PandaRoot
MergedConstraint.cxx
Go to the documentation of this file.
1 // ******************************************************
2 // DecayTreeFitter Package
3 // We thank the original author Wouter Hulsbergen
4 // (BaBar, LHCb) for providing the sources.
5 // http://arxiv.org/abs/physics/0503191v1 (2005)
6 // Adaptation & Development for PANDA: Ralf Kliemt (2015)
7 // ******************************************************
8 #include "FitParams.h"
9 #include "ParticleBase.h"
10 #include "MergedConstraint.h"
11 
12 using namespace DecayTreeFitter;
14 
15 ErrCode
17  Projection& p) const
18 {
19  ErrCode status ;
20  for(constraintlist::const_iterator it = m_list.begin() ;
21  it != m_list.end() ; ++it) {
22  status |= (*it)->project(fitpar,p) ;
23  p.incrementOffset((*it)->dim()) ;
24  }
25 
26  return status ;
27 }
28 
30 {
31  os << "Merged constraint: " << std::endl ;
32  for(constraintlist::const_iterator it = m_list.begin() ;
33  it != m_list.end() ; ++it) {
34  os << " " ;
35  (*it)->print(os) ;
36  }
37 }
Double_t p
Definition: anasim.C:58
void incrementOffset(unsigned int i)
Definition: Projection.h:80
virtual void print(std::ostream &os=std::cout) const
ClassImp(PndAnaContFact)
virtual ErrCode project(const FitParams *fitpar, Projection &p) const
int status[10]
Definition: f_Init.h:28