PandaRoot
PndRecoKalmanFit2.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Kalman Filter for single tracks
7 //
8 // Environment:
9 // Software developed for the PANDA Detector at FAIR.
10 //
11 // Author List:
12 // Stefano Spataro, UNI Torino //
13 // modified by Elisabetta Prencipe 19/05/2014
14 //-----------------------------------------------------------
15 
16 #ifndef PNDRECOKALMANFIT2_HH
17 #define PNDRECOKALMANFIT2_HH
18 
19 // Base Class Headers ----------------
20 #include "TNamed.h"
21 #include "TString.h"
22 
23 // Collaborating Class Headers ------
24 #include "FairGeanePro.h"
25 #include "PndTrack.h"
26 #include "KalmanFitter.h"
27 #include "AbsMeasurement.h"
28 #include "MeasurementFactory.h"
29 // Collaborating Class Declarations --
30 
31 class PndRecoKalmanFit2 : public TNamed {
32  public:
33  // Constructors/Destructors ---------
36 
37  // Modifiers -----------------------
38  void SetGeane(Bool_t opt = kTRUE) { fUseGeane = opt; }
39  void SetPropagateToIP(Bool_t opt = kTRUE) { fPropagateToIP = opt; }
40  void SetPropagateDistance(Float_t opt = -1.f) { fPropagateDistance = opt; }
41  void SetPerpPlane(Bool_t opt = kTRUE) { fPerpPlane = opt; }
42  void SetNumIterations(Int_t num) { fNumIt = num; }
43  void SetVerbose(Int_t verb) { fVerbose = verb; }
44  void SetMvdBranchName(const TString &name) { fMvdBranchName = name; }
45  void SetCentralTrackerBranchName(const TString &name) { fCentralTrackerBranchName = name; }
46  // Operations ----------------------
47  Bool_t Init();
48  PndTrack *Fit(PndTrack *tBefore, Int_t PDG);
49 
51 
52  private:
53  // Private Data Members ------------
54 
56  genfit::KalmanFitter fGenFitter;
57 
58  FairGeanePro *fPro;
59 
60  TString fMvdBranchName;
61  TString fCentralTrackerBranchName;
62 
63  Bool_t fUseGeane;
64  Bool_t fPropagateToIP;
65  Float_t fPropagateDistance;
66  Bool_t fPerpPlane;
67  Int_t fNumIt;
68  Int_t fVerbose;
69 
70  ClassDef(PndRecoKalmanFit2, 0);
71 };
72 
73 #endif
void SetGeane(Bool_t opt=kTRUE)
void SetNumIterations(Int_t num)
Simple Kalman filter implementation.
Definition: KalmanFitter.h:41
void SetPropagateToIP(Bool_t opt=kTRUE)
void SetMvdBranchName(const TString &name)
genfit::MeasurementFactory< genfit::AbsMeasurement > * GetRecoHitFactory()
void SetVerbose(Int_t verb)
void SetCentralTrackerBranchName(const TString &name)
PndTrack * Fit(PndTrack *tBefore, Int_t PDG)
float f
Definition: P4_F32vec4.h:20
void SetPropagateDistance(Float_t opt=-1.f)
void SetPerpPlane(Bool_t opt=kTRUE)