PandaRoot
MissingParticle.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // ******************************************************
14 // DecayTreeFitter Package
15 // We thank the original author Wouter Hulsbergen
16 // (BaBar, LHCb) for providing the sources.
17 // http://arxiv.org/abs/physics/0503191v1 (2005)
18 // Adaptation & Development for PANDA: Ralf Kliemt (2015)
19 // ******************************************************
20 #ifndef MISSINGPARTICLE_H
21 #define MISSINGPARTICLE_H 1
22 #include "Rtypes.h"
23 
24 #include "ParticleBase.h"
25 
26 namespace DecayTreeFitter {
27 
28 class MissingParticle : public ParticleBase {
29  public:
31  virtual ~MissingParticle();
32 
33  virtual ErrCode initPar1(FitParams *);
34  virtual ErrCode initPar2(FitParams *) { return ErrCode::success; }
35 
36  virtual std::string parname(int index) const;
37  virtual int dim() const { return hasMassConstraint() ? 3 : 4; }
38  virtual int momIndex() const { return index(); }
39  virtual bool hasEnergy() const { return hasMassConstraint() ? false : true; }
40  virtual int type() const { return kMissingParticle; }
41  virtual void addToConstraintList(constraintlist & /*alist*/, int /*depth*/) const {}
42  ClassDef(MissingParticle, 1)
43 };
44 
45 } // namespace DecayTreeFitter
46 #endif
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:114
virtual ErrCode initPar2(FitParams *)
const ParticleBase * mother() const
Definition: ParticleBase.h:64
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:63