FairRoot/PandaRoot
RecoResonance.h
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 #ifndef RECORESONANCE_H
9 #define RECORESONANCE_H 1
10 
11 #include "RecoComposite.h"
12 #include "Rtypes.h"
13 
14 namespace DecayTreeFitter
15 {
16 
18  {
19  public:
21  virtual ~RecoResonance() ;
22 
23  virtual int dim() const { return hasEnergy() ? 4 : 3 ; } // (px,py,pz,(E))
24 
26  virtual ErrCode initPar1(FitParams*) ;
27  virtual ErrCode initPar2(FitParams*) ;
28  virtual int type() const { return kRecoResonance ; }
29 
30  virtual int posIndex() const { return mother()->posIndex() ; }
31  virtual int momIndex() const { return index() ; }
32  virtual int lenIndex() const { return -1 ; }
33 
34  virtual std::string parname(int index) const ;
35 
36  virtual void addToConstraintList(constraintlist& alist, int depth) const {
37  alist.push_back( Constraint(this,Constraint::resonance,depth,dimM()) ) ; }
38 
39  private:
40  ClassDef ( RecoResonance,1 )
41  } ;
42 
43 }
44 
45 #endif
virtual void addToConstraintList(constraintlist &alist, int depth) const
Definition: RecoResonance.h:36
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
virtual ErrCode initPar2(FitParams *)
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:110
virtual bool hasEnergy() const
Definition: RecoComposite.h:41
virtual int dim() const
Definition: RecoResonance.h:23
virtual std::string parname(int index) const
virtual int lenIndex() const
Definition: RecoResonance.h:32
virtual int momIndex() const
Definition: RecoResonance.h:31
virtual int index() const
Definition: ParticleBase.h:59
virtual int posIndex() const
Definition: ParticleBase.h:69
virtual ErrCode initPar1(FitParams *)
RecoResonance(RhoCandidate *bc, const ParticleBase *mother)
virtual int posIndex() const
Definition: RecoResonance.h:30
virtual int type() const
Definition: RecoResonance.h:28
const ParticleBase * mother() const
Definition: ParticleBase.h:60