PandaRoot
PndHypDKalmanTask.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // GFKalman Filter Task
7 //
8 // Environment:
9 // Software developed for the PANDA Detector at FAIR.
10 //
11 // Author List:
12 // Sebastian Neubert TUM (original author)
13 //
14 //
15 //-----------------------------------------------------------
16 
17 #ifndef PNDHYPDKALMANTASK_HH
18 #define PNDHYPDKALMANTASK_HH
19 
20 // Base Class Headers ----------------
21 #include "FairTask.h"
22 
23 // Collaborating Class Headers -------
24 #include <map>
25 #include "TString.h"
26 
27 // Collaborating Class Declarations --
28 class TClonesArray;
29 class GFRecoHitFactory;
30 class TH1D;
31 class TH2D;
32 class TGeoManager;
33 class FairField;
34 
35 class PndHypDKalmanTask : public FairTask {
36  public:
37  // Constructors/Destructors ---------
40 
41  // Operators
42 
43  // Accessors -----------------------
44 
45  // Modifiers -----------------------
46  void SetTrackBranchName(const TString &name) { fTrackBranchName = name; }
47  void AddHitBranch(unsigned int detId, const TString &m) { fHitBranchMap[detId] = m; };
48  void SetPersistence(Bool_t opt = kTRUE) { fPersistence = opt; }
49  void SetSmooth(Bool_t opt = kTRUE) { fSmooth = opt; }
50  void UseMVD(bool mvd) { fUseMVD = mvd; }
51 
52  // Operations ----------------------
53 
54  virtual InitStatus Init();
55 
56  virtual void Exec(Option_t *opt);
57 
58  void WriteHistograms(const TString &filename);
59 
60  private:
61  // Private Data Members ------------
62  TString fTrackBranchName;
63  std::map<unsigned int, TString> fHitBranchMap;
64  TClonesArray *fTrackArray;
65 
66  Bool_t fPersistence;
67 
68  GFRecoHitFactory *fTheRecoHitFactory;
69  FairField *fField;
70 
71  TH1D *fPH; // momentum histo;
72  TH1D *fChi2H; // chi2 histo;
73  TH1D *fXresH;
74  TH1D *fYresH;
75  TH1D *fXresFitH;
76  TH1D *fYresFitH;
77  TH1D *fPEnd;
78  TH1D *fPull;
79 
80  int fTrackcount;
81  Bool_t fSmooth;
82  int fEvt; // event counter
83  bool fUseMVD;
84 
85  // Private Methods -----------------
86 
87  public:
88  ClassDef(PndHypDKalmanTask, 4)
89 };
90 
91 #endif
92 
93 //--------------------------------------------------------------
94 // $Log$
95 //--------------------------------------------------------------
virtual InitStatus Init()
__m128 m
Definition: P4_F32vec4.h:26
void SetPersistence(Bool_t opt=kTRUE)
void SetTrackBranchName(const TString &name)
Factory object to create RecoHits from digitized and clustered data.
void UseMVD(bool mvd)
void WriteHistograms(const TString &filename)
void SetSmooth(Bool_t opt=kTRUE)
virtual void Exec(Option_t *opt)
void AddHitBranch(unsigned int detId, const TString &m)