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 class RecoResonance : public RecoComposite {
17  public:
19  virtual ~RecoResonance();
20 
21  virtual int dim() const { return hasEnergy() ? 4 : 3; } // (px,py,pz,(E))
22 
24  virtual ErrCode initPar1(FitParams *);
25  virtual ErrCode initPar2(FitParams *);
26  virtual int type() const { return kRecoResonance; }
27 
28  virtual int posIndex() const { return mother()->posIndex(); }
29  virtual int momIndex() const { return index(); }
30  virtual int lenIndex() const { return -1; }
31 
32  virtual std::string parname(int index) const;
33 
34  virtual void addToConstraintList(constraintlist &alist, int depth) const { alist.push_back(Constraint(this, Constraint::resonance, depth, dimM())); }
35 
36  private:
37  ClassDef(RecoResonance, 1)
38 };
39 
40 } // namespace DecayTreeFitter
41 
42 #endif
virtual std::string parname(int index) const
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:102
virtual ErrCode initPar2(FitParams *)
const ParticleBase * mother() const
Definition: ParticleBase.h:52
virtual ErrCode initPar1(FitParams *)
virtual int posIndex() const
Definition: ParticleBase.h:61
virtual int lenIndex() const
Definition: RecoResonance.h:30
virtual void addToConstraintList(constraintlist &alist, int depth) const
Definition: RecoResonance.h:34
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
virtual int momIndex() const
Definition: RecoResonance.h:29
virtual int type() const
Definition: RecoResonance.h:26
virtual int posIndex() const
Definition: RecoResonance.h:28
RecoResonance(RhoCandidate *bc, const ParticleBase *mother)
virtual int index() const
Definition: ParticleBase.h:51
virtual bool hasEnergy() const
Definition: RecoComposite.h:39