PandaRoot
RecoResonance.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 RECORESONANCE_H
21 #define RECORESONANCE_H 1
22 
23 #include "RecoComposite.h"
24 #include "Rtypes.h"
25 
26 namespace DecayTreeFitter {
27 
28 class RecoResonance : public RecoComposite {
29  public:
31  virtual ~RecoResonance();
32 
33  virtual int dim() const { return hasEnergy() ? 4 : 3; } // (px,py,pz,(E))
34 
36  virtual ErrCode initPar1(FitParams *);
37  virtual ErrCode initPar2(FitParams *);
38  virtual int type() const { return kRecoResonance; }
39 
40  virtual int posIndex() const { return mother()->posIndex(); }
41  virtual int momIndex() const { return index(); }
42  virtual int lenIndex() const { return -1; }
43 
44  virtual std::string parname(int index) const;
45 
46  virtual void addToConstraintList(constraintlist &alist, int depth) const { alist.push_back(Constraint(this, Constraint::resonance, depth, dimM())); }
47 
48  private:
49  ClassDef(RecoResonance, 1)
50 };
51 
52 } // namespace DecayTreeFitter
53 
54 #endif
virtual std::string parname(int index) const
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:114
virtual ErrCode initPar2(FitParams *)
const ParticleBase * mother() const
Definition: ParticleBase.h:64
virtual ErrCode initPar1(FitParams *)
virtual int posIndex() const
Definition: ParticleBase.h:73
virtual int lenIndex() const
Definition: RecoResonance.h:42
virtual void addToConstraintList(constraintlist &alist, int depth) const
Definition: RecoResonance.h:46
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
virtual int momIndex() const
Definition: RecoResonance.h:41
virtual int type() const
Definition: RecoResonance.h:38
virtual int posIndex() const
Definition: RecoResonance.h:40
RecoResonance(RhoCandidate *bc, const ParticleBase *mother)
virtual int index() const
Definition: ParticleBase.h:63
virtual bool hasEnergy() const
Definition: RecoComposite.h:51