FairRoot/PandaRoot
RecoParticle.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 <stdio.h>
9 
10 //#include "Event/Particle.h"
11 #include "RecoParticle.h"
12 #include "FitParams.h"
13 
14 using namespace DecayTreeFitter;
16 
17 extern int vtxverbose ;
18 
20 : ParticleBase(bc,aMother)
21 {
22 }
23 
25 {
26 }
27 
28 std::string DecayTreeFitter::RecoParticle::parname(int ind) const
29 {
30  return ParticleBase::parname(ind+4) ;
31 }
32 
33 ErrCode
35  const FitParams* fitparams,
36  Projection& p) const
37 {
38  ErrCode aStatus ;
39  switch(aType) {
40  case Constraint::track:
41  case Constraint::photon:
42  aStatus |= projectRecoConstraint(fitparams,p) ;
43  break ;
44  default:
45  aStatus |= ParticleBase::projectConstraint(aType,fitparams,p) ;
46  }
47  return aStatus ;
48 }
49 
51 {
52  std::cout<<" Marke 3" <<std::endl;
53  // project
54  Projection p(fitparams->dim(),dimM()) ;
55  projectRecoConstraint(fitparams,p) ;
56  return p.chiSquare() ;
57 }
Double_t p
Definition: anasim.C:58
RecoParticle(RhoCandidate *bc, const ParticleBase *mother)
int vtxverbose
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
virtual std::string parname(int index) const
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
ClassImp(PndAnaContFact)
virtual std::string parname(int index) const
virtual double chiSquare(const FitParams *fitparams) const