PandaRoot
RecoParticle.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 RECOPARTICLE_H
21 #define RECOPARTICLE_H 1
22 
23 #include "ParticleBase.h"
24 #include "Rtypes.h"
25 
26 namespace DecayTreeFitter {
27 
28 class RecoParticle : public ParticleBase {
29  public:
31  virtual ~RecoParticle();
32 
33  virtual int dimM() const = 0; // dimension of the measurement
34  virtual ErrCode initPar1(FitParams *) { return ErrCode::success; }
35  // virtual ErrCode initCov(FitParams*) const ;
36  virtual std::string parname(int index) const;
37  virtual int dim() const { return 3; } //(px,py,pz)
38 
39  virtual int momIndex() const { return index(); }
40  virtual bool hasEnergy() const { return false; }
41 
42  virtual ErrCode projectRecoConstraint(const FitParams *fitparams, Projection &p) const = 0;
44  virtual double chiSquare(const FitParams *fitparams) const;
45 
46  ClassDef(RecoParticle, 1)
47 };
48 
49 } // namespace DecayTreeFitter
50 #endif
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
const ParticleBase * mother() const
Definition: ParticleBase.h:64
virtual ErrCode projectRecoConstraint(const FitParams *fitparams, Projection &p) const =0
virtual bool hasEnergy() const
Definition: RecoParticle.h:40
RecoParticle(RhoCandidate *bc, const ParticleBase *mother)
virtual std::string parname(int index) const
virtual double chiSquare(const FitParams *fitparams) const
virtual ErrCode initPar1(FitParams *)
Definition: RecoParticle.h:34
virtual int dimM() const =0
virtual int dim() const
Definition: RecoParticle.h:37
virtual int index() const
Definition: ParticleBase.h:63
virtual int momIndex() const
Definition: RecoParticle.h:39