PandaRoot
PndRecoKalmanFit.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 //-----------------------------------------------------------
14 
15 #ifndef PNDRECOKALMANFIT_HH
16 #define PNDRECOKALMANFIT_HH
17 
18 // Base Class Headers ----------------
19 #include "TNamed.h"
20 #include "TString.h"
21 
22 // Collaborating Class Headers ------
23 #include "FairGeanePro.h"
24 #include "PndTrack.h"
25 #include "GFKalman.h"
26 
27 // Collaborating Class Declarations --
28 class GFRecoHitFactory;
29 class GFKalman;
30 
31 class PndRecoKalmanFit : 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 SetTrackRep(Int_t num) { fTrackRep = num; }
44  void SetVerbose(Int_t verb) { fVerbose = verb; }
45  void SetMvdBranchName(const TString &name) { fMvdBranchName = name; }
46  void SetCentralTrackerBranchName(const TString &name) { fCentralTrackerBranchName = name; }
47  // Operations ----------------------
48  Bool_t Init();
49  PndTrack *Fit(PndTrack *tBefore, Int_t PDG);
50 
51  GFRecoHitFactory *GetRecoHitFactory() { return fTheRecoHitFactory; };
52 
53  private:
54  // Private Data Members ------------
55  GFRecoHitFactory *fTheRecoHitFactory;
56  GFKalman 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  Short_t fTrackRep;
69  Int_t fVerbose;
70 
71  ClassDef(PndRecoKalmanFit, 0);
72 };
73 
74 #endif
void SetPropagateToIP(Bool_t opt=kTRUE)
void SetTrackRep(Int_t num)
Generic Kalman Filter implementation.
Definition: GFKalman.h:49
void SetPropagateDistance(Float_t opt=-1.f)
void SetMvdBranchName(const TString &name)
PndTrack * Fit(PndTrack *tBefore, Int_t PDG)
Factory object to create RecoHits from digitized and clustered data.
void SetPerpPlane(Bool_t opt=kTRUE)
void SetGeane(Bool_t opt=kTRUE)
void SetVerbose(Int_t verb)
void SetCentralTrackerBranchName(const TString &name)
GFRecoHitFactory * GetRecoHitFactory()
float f
Definition: P4_F32vec4.h:20
void SetNumIterations(Int_t num)