PandaRoot
Resonance.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 INTERNALRESONANCE_H
9 #define INTERNALRESONANCE_H 1
10 
11 #include "InternalParticle.h"
12 #include "Rtypes.h"
13 
14 namespace DecayTreeFitter {
15 class FitParams;
16 
17 class Resonance : public InternalParticle {
18  public:
19  Resonance(RhoCandidate *bc, const ParticleBase *mother, const Configuration &config);
20  virtual ~Resonance();
21 
22  virtual int dim() const { return 4; }
23  virtual int type() const { return kResonance; }
24  inline virtual std::string parname(int index) const;
25 
26  inline virtual ErrCode initPar1(FitParams *);
27  inline virtual ErrCode initPar2(FitParams *);
28 
29  virtual int posIndex() const { return mother()->posIndex(); }
30  virtual int momIndex() const { return index(); }
31  virtual int lenIndex() const { return -1; }
32  virtual bool hasPosition() const { return false; }
33 
34  private:
35  ClassDef(Resonance, 1)
36 };
37 
38 } // namespace DecayTreeFitter
39 
40 #endif
virtual bool hasPosition() const
Definition: Resonance.h:32
const ParticleBase * mother() const
Definition: ParticleBase.h:52
virtual int posIndex() const
Definition: ParticleBase.h:61
virtual int type() const
Definition: Resonance.h:23
virtual int momIndex() const
Definition: Resonance.h:30
virtual int dim() const
Definition: Resonance.h:22
Resonance(RhoCandidate *bc, const ParticleBase *mother, const Configuration &config)
virtual int lenIndex() const
Definition: Resonance.h:31
virtual ErrCode initPar1(FitParams *)
virtual int posIndex() const
Definition: Resonance.h:29
virtual ErrCode initPar2(FitParams *)
virtual int index() const
Definition: ParticleBase.h:51
virtual std::string parname(int index) const