FairRoot/PandaRoot
RecoResonance.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 "RecoResonance.h"
9 //#include "Event/Particle.h"
10 #include "FitParams.h"
11 
12 using namespace DecayTreeFitter;
13 
15 
16 extern int vtxverbose ;
17 
19 : RecoComposite(bc,aMother) {}
20 
21 
23 
24 ErrCode
26 {
27  if(vtxverbose>5){std::cout<<"RecoResonance::initPar1: - "<<std::endl;}
28  int posindex = posIndex() ;
29  int momindex = momIndex() ;
30 
31  //quick map for parameters
32  int indmap[7] ;
33  for(int i=0; i<3; ++i) indmap[i] = posindex+i ;
34  for(int i=0; i<4; ++i) indmap[i+3] = momindex+i ;
35 
36  // copy the 'measurement' -> this overwrites mother position !
37  for(int row=0; row<dimM(); row++)
38  fitparams->par()(indmap[row]) = m_m(row) ;
39  return ErrCode::success ;
40 }
41 
42 ErrCode
44 {
45  if(vtxverbose>5){std::cout<<"RecoResonance::initPar2: - "<<std::endl;}
46  // nothing to do!
47  return ErrCode::success ;
48 }
49 
50 ErrCode
52  const FitParams* fitparams,
53  Projection& p) const
54 {
55  ErrCode aStatus ;
56  switch(aType) {
58  aStatus |= projectRecoComposite(fitparams,p) ;
59  break ;
60  default:
61  aStatus |= ParticleBase::projectConstraint(aType,fitparams,p) ;
62  }
63  return aStatus ;
64 }
65 
66 std::string DecayTreeFitter::RecoResonance::parname(int ind) const
67 {
68  return ParticleBase::parname(ind+4) ;
69 }
int row
Definition: anaLmdDigi.C:67
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
ClassImp(RecoResonance)
virtual ErrCode initPar2(FitParams *)
Int_t i
Definition: run_full.C:25
virtual std::string parname(int index) const
Double_t p
Definition: anasim.C:58
int vtxverbose
virtual ErrCode initPar1(FitParams *)
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
RecoResonance(RhoCandidate *bc, const ParticleBase *mother)
virtual std::string parname(int index) const