CbmRoot
CbmKFTrackFitQA.h
Go to the documentation of this file.
1 /*
2  *====================================================================
3  *
4  * CBM KF Track Quality
5  *
6  * Authors: M.Zyzak
7  *
8  * e-mail :
9  *
10  *====================================================================
11  *
12  * KF Fit performance
13  *
14  *====================================================================
15  */
16 
17 #ifndef _CbmKFTrackFitQA_h_
18 #define _CbmKFTrackFitQA_h_
19 
20 #include "FairTask.h"
21 
22 #include "CbmKFTrack.h"
23 #include "CbmMCTrack.h"
24 #include "CbmMvdHit.h"
25 #include "CbmMvdPoint.h"
26 #include "CbmStsCluster.h"
27 #include "CbmStsDigi.h"
28 #include "CbmStsHit.h"
29 #include "CbmStsPoint.h"
30 #include "CbmStsTrack.h"
31 #include "CbmTrackMatch.h"
32 
33 #include "CbmKFTrErrMCPoints.h"
34 
35 #include "TClonesArray.h"
36 #include "TH1.h"
37 #include "TProfile.h"
38 
39 #include <iostream>
40 #include <vector>
41 
42 class CbmKFTrackFitQA : public FairTask {
43 public:
46 
47  void StsHitMatch();
48  void FillHitHistos();
49  void FillHistoAtParticleVertex(CbmMCTrack* track_mc, CbmKFTrack* track_kf);
51  CbmMCTrack* track_mc,
52  CbmKFTrack* track_kf);
53  void KFWrite();
54  void FindBackTracks(CbmKFTrErrMCPoints* mc_points,
55  CbmMCTrack* track_mc,
56  CbmKFTrack* track_kf,
57  int iEvent);
58  void FindBackTracks();
59  void Save();
60 
61  void SetOutFile(TString outname) { outfileName = outname; }
62 
63  virtual InitStatus ReInit();
64  virtual InitStatus Init();
65  void Exec(Option_t* option);
66  void Finish();
67 
68 private:
69  // Arrays of points, tracks, etc
70 
71  TClonesArray* listStsPts;
72  TClonesArray* listMvdPts;
73  TClonesArray* listMCTracks;
74  TClonesArray* listStsTracksMatch;
75  TClonesArray* listStsTracks;
76  TClonesArray* listStsHits;
77  TClonesArray* listMvdHits;
78  TClonesArray* listMvdHitMatches;
79  TClonesArray* listStsClusters;
80  TClonesArray* listStsDigi;
81  TClonesArray* listStsDigiMatch;
82 
83 
84  // Names of files
85  TString outfileName;
86 
87  std::vector<int> vStsHitMatch;
88 
89  // histograms
90 
91  //hit parameters
92  TH1F* res_STShit_x;
93  TH1F* res_STShit_y;
96 
97  TH1F* res_MVDhit_x;
98  TH1F* res_MVDhit_y;
101 
102 
103  //track parameters at the particle vertex
104  TH1F* res_AtPV_x;
105  TH1F* res_AtPV_y;
106  TH1F* res_AtPV_tx;
107  TH1F* res_AtPV_ty;
108  TH1F* res_AtPV_qp;
109 
110  TH1F* pull_AtPV_x;
111  TH1F* pull_AtPV_y;
115 
116  //track parameters at the first MC point of the track
117  TH1F* res_AtFP_x;
118  TH1F* res_AtFP_y;
119  TH1F* res_AtFP_tx;
120  TH1F* res_AtFP_ty;
121  TH1F* res_AtFP_qp;
122 
123  TH1F* pull_AtFP_x;
124  TH1F* pull_AtFP_y;
128 
129  //Q detertmination quality
130  TProfile* q_QA;
131  TProfile* dp_p;
132 
133  TH1F* ggg;
134 
135  int Nback;
136  //FILE *fBack;
137 
139 
140 private:
143 };
144 
145 #endif // _CbmKFTrackFitQA_h_
CbmKFTrackFitQA::pull_MVDhit_y
TH1F * pull_MVDhit_y
Definition: CbmKFTrackFitQA.h:100
CbmKFTrackFitQA::listMvdPts
TClonesArray * listMvdPts
Definition: CbmKFTrackFitQA.h:72
CbmKFTrackFitQA::StsHitMatch
void StsHitMatch()
Definition: CbmKFTrackFitQA.cxx:609
CbmKFTrackFitQA::operator=
void operator=(const CbmKFTrackFitQA &)
CbmKFTrackFitQA::ReInit
virtual InitStatus ReInit()
Definition: CbmKFTrackFitQA.cxx:222
CbmKFTrackFitQA::ggg
TH1F * ggg
Definition: CbmKFTrackFitQA.h:133
CbmKFTrackFitQA::res_AtPV_x
TH1F * res_AtPV_x
Definition: CbmKFTrackFitQA.h:104
CbmKFTrackFitQA::CbmKFTrackFitQA
CbmKFTrackFitQA()
CbmKFTrackFitQA::res_STShit_y
TH1F * res_STShit_y
Definition: CbmKFTrackFitQA.h:93
CbmKFTrackFitQA::res_MVDhit_x
TH1F * res_MVDhit_x
Definition: CbmKFTrackFitQA.h:97
CbmKFTrackFitQA::res_AtPV_y
TH1F * res_AtPV_y
Definition: CbmKFTrackFitQA.h:105
CbmKFTrackFitQA::listMvdHits
TClonesArray * listMvdHits
Definition: CbmKFTrackFitQA.h:77
CbmKFTrackFitQA::pull_AtPV_tx
TH1F * pull_AtPV_tx
Definition: CbmKFTrackFitQA.h:112
CbmKFTrackFitQA::pull_AtPV_x
TH1F * pull_AtPV_x
Definition: CbmKFTrackFitQA.h:110
CbmKFTrackFitQA::Exec
void Exec(Option_t *option)
Definition: CbmKFTrackFitQA.cxx:253
CbmKFTrackFitQA::pull_AtPV_qp
TH1F * pull_AtPV_qp
Definition: CbmKFTrackFitQA.h:114
CbmKFTrackFitQA::Init
virtual InitStatus Init()
Definition: CbmKFTrackFitQA.cxx:224
CbmKFTrackFitQA::dp_p
TProfile * dp_p
Definition: CbmKFTrackFitQA.h:131
CbmKFTrackFitQA::res_AtPV_ty
TH1F * res_AtPV_ty
Definition: CbmKFTrackFitQA.h:107
CbmKFTrackFitQA::listStsClusters
TClonesArray * listStsClusters
Definition: CbmKFTrackFitQA.h:79
CbmKFTrackFitQA::FillHitHistos
void FillHitHistos()
Definition: CbmKFTrackFitQA.cxx:571
CbmTrackMatch.h
CbmKFTrErrMCPoints.h
CbmKFTrackFitQA::res_AtPV_tx
TH1F * res_AtPV_tx
Definition: CbmKFTrackFitQA.h:106
CbmKFTrackFitQA
Definition: CbmKFTrackFitQA.h:42
CbmKFTrackFitQA::pull_AtPV_y
TH1F * pull_AtPV_y
Definition: CbmKFTrackFitQA.h:111
CbmKFTrackFitQA::ClassDef
ClassDef(CbmKFTrackFitQA, 1)
CbmKFTrackFitQA::listStsDigiMatch
TClonesArray * listStsDigiMatch
Definition: CbmKFTrackFitQA.h:81
CbmKFTrackFitQA::listStsTracksMatch
TClonesArray * listStsTracksMatch
Definition: CbmKFTrackFitQA.h:74
CbmKFTrackFitQA::FillHistoAtFirstPoint
void FillHistoAtFirstPoint(CbmKFTrErrMCPoints *mc_points, CbmMCTrack *track_mc, CbmKFTrack *track_kf)
Definition: CbmKFTrackFitQA.cxx:364
CbmKFTrackFitQA::listStsTracks
TClonesArray * listStsTracks
Definition: CbmKFTrackFitQA.h:75
CbmKFTrackFitQA::pull_AtFP_qp
TH1F * pull_AtFP_qp
Definition: CbmKFTrackFitQA.h:127
CbmKFTrackFitQA::q_QA
TProfile * q_QA
Definition: CbmKFTrackFitQA.h:130
CbmMvdPoint.h
CbmKFTrackFitQA::res_STShit_x
TH1F * res_STShit_x
Definition: CbmKFTrackFitQA.h:92
CbmStsDigi.h
CbmStsTrack.h
Data class for STS tracks.
CbmKFTrackFitQA::pull_AtFP_y
TH1F * pull_AtFP_y
Definition: CbmKFTrackFitQA.h:124
CbmKFTrackFitQA::res_AtFP_qp
TH1F * res_AtFP_qp
Definition: CbmKFTrackFitQA.h:121
CbmKFTrackFitQA::SetOutFile
void SetOutFile(TString outname)
Definition: CbmKFTrackFitQA.h:61
CbmKFTrErrMCPoints
Definition: CbmKFTrErrMCPoints.h:32
CbmKFTrackFitQA::pull_STShit_y
TH1F * pull_STShit_y
Definition: CbmKFTrackFitQA.h:95
CbmKFTrackFitQA::res_AtPV_qp
TH1F * res_AtPV_qp
Definition: CbmKFTrackFitQA.h:108
CbmKFTrackFitQA::listStsPts
TClonesArray * listStsPts
Definition: CbmKFTrackFitQA.h:71
CbmKFTrackFitQA::res_MVDhit_y
TH1F * res_MVDhit_y
Definition: CbmKFTrackFitQA.h:98
CbmKFTrackFitQA::FillHistoAtParticleVertex
void FillHistoAtParticleVertex(CbmMCTrack *track_mc, CbmKFTrack *track_kf)
Definition: CbmKFTrackFitQA.cxx:288
CbmKFTrack.h
CbmKFTrackFitQA::~CbmKFTrackFitQA
~CbmKFTrackFitQA()
Definition: CbmKFTrackFitQA.cxx:186
CbmKFTrackFitQA::pull_AtFP_x
TH1F * pull_AtFP_x
Definition: CbmKFTrackFitQA.h:123
CbmKFTrackFitQA::vStsHitMatch
std::vector< int > vStsHitMatch
Definition: CbmKFTrackFitQA.h:87
CbmKFTrackFitQA::Save
void Save()
Definition: CbmKFTrackFitQA.cxx:529
CbmKFTrackFitQA::KFWrite
void KFWrite()
Definition: CbmKFTrackFitQA.cxx:477
CbmKFTrackFitQA::pull_AtFP_tx
TH1F * pull_AtFP_tx
Definition: CbmKFTrackFitQA.h:125
CbmStsPoint.h
CbmMCTrack.h
CbmKFTrackFitQA::listMvdHitMatches
TClonesArray * listMvdHitMatches
Definition: CbmKFTrackFitQA.h:78
CbmKFTrackFitQA::listMCTracks
TClonesArray * listMCTracks
Definition: CbmKFTrackFitQA.h:73
CbmMCTrack
Definition: CbmMCTrack.h:34
CbmMvdHit.h
CbmKFTrackFitQA::Nback
int Nback
Definition: CbmKFTrackFitQA.h:135
CbmKFTrackFitQA::Finish
void Finish()
Definition: CbmKFTrackFitQA.cxx:286
CbmKFTrackFitQA::res_AtFP_tx
TH1F * res_AtFP_tx
Definition: CbmKFTrackFitQA.h:119
CbmKFTrackFitQA::listStsDigi
TClonesArray * listStsDigi
Definition: CbmKFTrackFitQA.h:80
CbmKFTrackFitQA::res_AtFP_y
TH1F * res_AtFP_y
Definition: CbmKFTrackFitQA.h:118
CbmKFTrackFitQA::outfileName
TString outfileName
Definition: CbmKFTrackFitQA.h:85
CbmStsCluster.h
Data class for STS clusters.
CbmKFTrackFitQA::pull_AtFP_ty
TH1F * pull_AtFP_ty
Definition: CbmKFTrackFitQA.h:126
CbmKFTrackFitQA::FindBackTracks
void FindBackTracks()
Definition: CbmKFTrackFitQA.cxx:684
CbmKFTrack
Definition: CbmKFTrack.h:21
CbmKFTrackFitQA::pull_STShit_x
TH1F * pull_STShit_x
Definition: CbmKFTrackFitQA.h:94
CbmKFTrackFitQA::res_AtFP_x
TH1F * res_AtFP_x
Definition: CbmKFTrackFitQA.h:117
CbmKFTrackFitQA::pull_AtPV_ty
TH1F * pull_AtPV_ty
Definition: CbmKFTrackFitQA.h:113
CbmKFTrackFitQA::res_AtFP_ty
TH1F * res_AtFP_ty
Definition: CbmKFTrackFitQA.h:120
CbmKFTrackFitQA::pull_MVDhit_x
TH1F * pull_MVDhit_x
Definition: CbmKFTrackFitQA.h:99
CbmStsHit.h
Data class for a reconstructed hit in the STS.
CbmKFTrackFitQA::listStsHits
TClonesArray * listStsHits
Definition: CbmKFTrackFitQA.h:76
CbmKFTrackFitQA::CbmKFTrackFitQA
CbmKFTrackFitQA(const CbmKFTrackFitQA &)