FairRoot/PandaRoot
InteractionPoint.h
Go to the documentation of this file.
1 // ******************************************************
2 // DecayTreeFitter Package
3 // We thank the original author Wouter Hulsbergen
4 // (BaBar, LHCb) for providing the sources.
5 // http://arxiv.org/abs/physics/0503191v1 (2005)
6 // Adaptation & Development for PANDA: Ralf Kliemt (2015)
7 // ******************************************************
8 #ifndef DECAYTREEFITTER_INTERACTIONPOINT_H
9 #define DECAYTREEFITTER_INTERACTIONPOINT_H 1
10 
11 #include "InternalParticle.h"
12 //#include "RecoParticle.h"
13 //#include "GaudiKernel/GenericVectorTypes.h"
14 //#include "GaudiKernel/SymmetricMatrixTypes.h"
15 #include "TMatrixD.h"
16 #include "RhoVector3Err.h"
17 #include "Rtypes.h"
18 
19 namespace LHCb
20 {
21  class VertexBase ;
22 }
23 
24 namespace DecayTreeFitter
25 {
26 
28  {
29  public:
30  InteractionPoint(RhoCandidate* daughter, const Configuration& config) ;
31  InteractionPoint(const RhoVector3Err& ipvertex, RhoCandidate* daughter, const Configuration& config) ;
32  InteractionPoint(const RhoLorentzVectorErr& ipmom, RhoCandidate* daughter, const Configuration& config) ;
33  InteractionPoint(const RhoLorentzVectorErr& ipmom, const RhoVector3Err& ipvertex, RhoCandidate* daughter, const Configuration& config) ;
34 
35  virtual int dim() const { return 7; } // (fix to the "first" internal particle )
36  virtual ErrCode initPar1(FitParams*) ;
37  virtual ErrCode initCov(FitParams*) const ;
38  //ErrCode initMom( FitParams* fitparams ) const ;
39 
40  virtual int type() const { return kInteractionPoint ; }
41 
42  virtual double chiSquare(const FitParams* par) const ;
43 
44  ErrCode projectIPConstraint(const FitParams* fitpar, Projection&) const ;
45  ErrCode projectBeamConstraint(const FitParams* fitpar, Projection&) const ;
47 
48  virtual void addToConstraintList(constraintlist& alist, int depth) const ;
49 
50 
51  private:
52  TVector3 m_ipPos ; // interaction point position
53  TMatrixDSym m_ipPosCov ; // cov matrix
54  TMatrixDSym m_ipPosCovInv ; // inverse of cov matrix
55  TLorentzVector m_ipMom ; // Beam Momentum
56  TMatrixDSym m_ipMomCov ; // cov matrix
57  TMatrixDSym m_ipMomCovInv ; // inverse of cov matrix
62  ClassDef ( InteractionPoint,1 )
63  } ;
64 
65 }
66 
67 
68 #endif
std::vector< DecayTreeFitter::Constraint > constraintlist
Definition: ParticleBase.h:110
Double_t par[3]
virtual ErrCode initPar1(FitParams *)
ErrCode projectIPConstraint(const FitParams *fitpar, Projection &) const
virtual double chiSquare(const FitParams *par) const
virtual ErrCode initCov(FitParams *) const
InteractionPoint(RhoCandidate *daughter, const Configuration &config)
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
virtual void addToConstraintList(constraintlist &alist, int depth) const
ErrCode projectBeamConstraint(const FitParams *fitpar, Projection &) const