PandaRoot
MissingParticle.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 MISSINGPARTICLE_H
9 #define MISSINGPARTICLE_H 1
10 #include "Rtypes.h"
11 
12 #include "ParticleBase.h"
13 
14 namespace DecayTreeFitter {
15 
16 class MissingParticle : public ParticleBase {
17  public:
19  virtual ~MissingParticle();
20 
21  virtual ErrCode initPar1(FitParams *);
22  virtual ErrCode initPar2(FitParams *) { return ErrCode::success; }
23 
24  virtual std::string parname(int index) const;
25  virtual int dim() const { return hasMassConstraint() ? 3 : 4; }
26  virtual int momIndex() const { return index(); }
27  virtual bool hasEnergy() const { return hasMassConstraint() ? false : true; }
28  virtual int type() const { return kMissingParticle; }
29  virtual void addToConstraintList(constraintlist & /*alist*/, int /*depth*/) const {}
30  ClassDef(MissingParticle, 1)
31 };
32 
33 } // namespace DecayTreeFitter
34 #endif
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:102
virtual ErrCode initPar2(FitParams *)
const ParticleBase * mother() const
Definition: ParticleBase.h:52
virtual void addToConstraintList(constraintlist &, int) const
MissingParticle(RhoCandidate *bc, const ParticleBase *mother)
virtual std::string parname(int index) const
virtual bool hasEnergy() const
virtual ErrCode initPar1(FitParams *)
virtual int index() const
Definition: ParticleBase.h:51