FairRoot/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 
18  {
19  public:
21  virtual ~MissingParticle() ;
22 
23  virtual ErrCode initPar1(FitParams*) ;
24  virtual ErrCode initPar2(FitParams*) { return ErrCode::success ; }
25 
26  virtual std::string parname(int index) const ;
27  virtual int dim() const { return hasMassConstraint() ? 3 : 4 ; }
28  virtual int momIndex() const { return index() ; }
29  virtual bool hasEnergy() const { return hasMassConstraint() ? false : true ; }
30  virtual int type() const { return kMissingParticle ; }
31  virtual void addToConstraintList(constraintlist& /*alist*/, int /*depth*/) const {}
32  ClassDef ( MissingParticle,1 )
33  } ;
34 
35 }
36 #endif
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:110
virtual std::string parname(int index) const
virtual ErrCode initPar2(FitParams *)
virtual bool hasEnergy() const
virtual ErrCode initPar1(FitParams *)
MissingParticle(RhoCandidate *bc, const ParticleBase *mother)
virtual int index() const
Definition: ParticleBase.h:59
virtual void addToConstraintList(constraintlist &, int) const
const ParticleBase * mother() const
Definition: ParticleBase.h:60