PandaRoot
Resonance.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 INTERNALRESONANCE_H
21 #define INTERNALRESONANCE_H 1
22 
23 #include "InternalParticle.h"
24 #include "Rtypes.h"
25 
26 namespace DecayTreeFitter {
27 class FitParams;
28 
29 class Resonance : public InternalParticle {
30  public:
31  Resonance(RhoCandidate *bc, const ParticleBase *mother, const Configuration &config);
32  virtual ~Resonance();
33 
34  virtual int dim() const { return 4; }
35  virtual int type() const { return kResonance; }
36  inline virtual std::string parname(int index) const;
37 
38  inline virtual ErrCode initPar1(FitParams *);
39  inline virtual ErrCode initPar2(FitParams *);
40 
41  virtual int posIndex() const { return mother()->posIndex(); }
42  virtual int momIndex() const { return index(); }
43  virtual int lenIndex() const { return -1; }
44  virtual bool hasPosition() const { return false; }
45 
46  private:
47  ClassDef(Resonance, 1)
48 };
49 
50 } // namespace DecayTreeFitter
51 
52 #endif
virtual bool hasPosition() const
Definition: Resonance.h:44
const ParticleBase * mother() const
Definition: ParticleBase.h:64
virtual int posIndex() const
Definition: ParticleBase.h:73
virtual int type() const
Definition: Resonance.h:35
virtual int momIndex() const
Definition: Resonance.h:42
virtual int dim() const
Definition: Resonance.h:34
Resonance(RhoCandidate *bc, const ParticleBase *mother, const Configuration &config)
virtual int lenIndex() const
Definition: Resonance.h:43
virtual ErrCode initPar1(FitParams *)
virtual int posIndex() const
Definition: Resonance.h:41
virtual ErrCode initPar2(FitParams *)
virtual int index() const
Definition: ParticleBase.h:63
virtual std::string parname(int index) const