FairRoot/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 
38  // Constructors/Destructors ---------
41 
42  // Operators
43 
44 
45  // Accessors -----------------------
46 
47 
48  // Modifiers -----------------------
50  void AddHitBranch(unsigned int detId, const TString& m){fHitBranchMap[detId]=m;};
51  void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;}
52  void SetSmooth(Bool_t opt=kTRUE){fSmooth=opt;}
53  void UseMVD(bool mvd){fUseMVD=mvd;}
54 
55  // Operations ----------------------
56 
57  virtual InitStatus Init();
58 
59  virtual void Exec(Option_t* opt);
60 
61  void WriteHistograms(const TString& filename);
62 
63 private:
64 
65  // Private Data Members ------------
67  std::map<unsigned int,TString> fHitBranchMap;
68  TClonesArray* fTrackArray;
69 
71 
73  FairField* fField;
74 
75  TH1D* fPH; // momentum histo;
76  TH1D* fChi2H; // chi2 histo;
77  TH1D* fXresH;
78  TH1D* fYresH;
79  TH1D* fXresFitH;
80  TH1D* fYresFitH;
81  TH1D* fPEnd;
82  TH1D* fPull;
83 
86  int fEvt; // event counter
87  bool fUseMVD;
88 
89  // Private Methods -----------------
90 
91 public:
92  ClassDef(PndHypDKalmanTask,4)
93 
94 };
95 
96 #endif
97 
98 //--------------------------------------------------------------
99 // $Log$
100 //--------------------------------------------------------------
__m128 m
Definition: P4_F32vec4.h:28
GFRecoHitFactory * fTheRecoHitFactory
virtual void Exec(Option_t *opt)
void SetPersistence(Bool_t opt=kTRUE)
void SetTrackBranchName(const TString &name)
std::map< unsigned int, TString > fHitBranchMap
Factory object to create RecoHits from digitized and clustered data.
TString name
void UseMVD(bool mvd)
void WriteHistograms(const TString &filename)
virtual InitStatus Init()
TClonesArray * fTrackArray
void SetSmooth(Bool_t opt=kTRUE)
const string filename
void AddHitBranch(unsigned int detId, const TString &m)