PandaRoot
RecoPhoton.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 // Adjustment for fully neutral reactions: Jean Noel (2023)
20 // **********************************************************************************
21 #ifndef RECOPHOTON_H
22 #define RECOPHOTON_H 1
23 
24 #include "RecoParticle.h"
25 #include "TVector3.h"
26 #include "Rtypes.h"
27 
28 namespace DecayTreeFitter {
29 
30 class RecoPhoton : public RecoParticle {
31  public:
33  virtual ~RecoPhoton();
34 
35  virtual int dimM() const { return 3; }
36  virtual ErrCode initPar1(FitParams *);
37  virtual ErrCode initPar2(FitParams *);
38 
39  virtual ErrCode initCov(FitParams *) const;
40  virtual int type() const { return kRecoPhoton; }
41  virtual ErrCode projectRecoConstraint(const FitParams *, Projection &) const;
42  ErrCode updCache();
43 
44  virtual void addToConstraintList(constraintlist &alist, int depth) const { alist.push_back(Constraint(this, Constraint::photon, depth, dimM())); }
45 
46  private:
47  virtual ErrCode initParPhoton(FitParams *, const TVector3 &motherpos) const;
48  double m_z;
49  TVector3 m_m;
50  TMatrixDSym m_V;
51  TMatrixDSym m_par_V;
52  ClassDef(RecoPhoton, 1)
53 };
54 
55 } // namespace DecayTreeFitter
56 #endif
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:114
virtual ErrCode projectRecoConstraint(const FitParams *, Projection &) const
virtual int type() const
Definition: RecoPhoton.h:40
const ParticleBase * mother() const
Definition: ParticleBase.h:64
virtual void addToConstraintList(constraintlist &alist, int depth) const
Definition: RecoPhoton.h:44
virtual ErrCode initPar1(FitParams *)
virtual ErrCode initCov(FitParams *) const
virtual ErrCode initPar2(FitParams *)
virtual int dimM() const
Definition: RecoPhoton.h:35
RecoPhoton(RhoCandidate *bc, const ParticleBase *mother)