PandaRoot
RhoKalmanVtxFitter.h
Go to the documentation of this file.
1 #ifndef RHOKALMANVTXFITTER_H
2 #define RHOKALMANVTXFITTER_H
3 // //
5 // RhoKalmanVtxFitter //
6 // //
7 // Author: R. Kliemt 2010 //
8 // Vertex finder & fitter using track separation and the perigee helix //
9 // approximation //
10 // //
12 
13 #include "RhoFitterBase.h"
14 
15 #include "RhoCandList.h"
16 #include "TVector3.h"
17 
18 class RhoCandidate;
19 
21  public:
23  virtual ~RhoKalmanVtxFitter();
24  void SetExpansionPoint(TVector3 P) { fExpansionPoint = P; }
25  void SetNIterations(int i) { fNIterations = i; };
26 
27  double FitVertexFast(TVector3 &vtx, TMatrixD &cov, bool skipcov = false, int niter = 2);
28  // double FitVertexFull(TVector3& vtx, TMatrixD& cov);
29 
30  void SetDebug(bool db = true)
31  {
32  if (db) {
33  fVerbose = true;
34  }
35  fDebug = db;
36  };
37  void SetSilent()
38  {
39  fVerbose = false;
40  fDebug = false;
41  };
42 
43  private:
44  Bool_t FitNode(RhoCandidate *b);
45  RhoCandidate *fCurrentHead;
46 
47  Bool_t Calculate();
48  Bool_t CalcPrgParams(RhoCandidate *cand, TVector3 expansionpoint); // calculate helix and its covariance
49  Bool_t CalcPrgParams(RhoCandidate *cand) { return CalcPrgParams(cand, fExpansionPoint); }; // calculate helix and its covariance
50  // double CalculateVertexFast(Bool_t skpcov=false);
51  bool fDebug;
52  int fNIterations;
53  TVector3 fExpansionPoint; // Expansion point
54  Float_t fPrgParams[5]; // Helix Paramterization around expansion point of each track
55  TMatrixD fPrgCov; // Covariance matrix 5x5 of each track
56  TMatrixD fJacobian; // Jacobian 5x7
57  // TClonesArray* fTrackArray;
58  ClassDef(RhoKalmanVtxFitter, 1)
59 };
60 
61 #endif
double FitVertexFast(TVector3 &vtx, TMatrixD &cov, bool skipcov=false, int niter=2)
void SetDebug(bool db=true)
void SetNIterations(int i)
unsigned int i
Definition: P4_F32vec4.h:21
RhoKalmanVtxFitter(RhoCandidate *b)
void SetExpansionPoint(TVector3 P)
virtual ~RhoKalmanVtxFitter()
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:52