CbmRoot
Loading...
Searching...
No Matches
CbmKFTrackFitQa.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2019 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Maksym Zyzak [committer] */
4
5/*
6 *====================================================================
7 *
8 * KF Fit performance
9 *
10 *====================================================================
11 */
12
13#ifndef _CbmKFTrackFitQa_h_
14#define _CbmKFTrackFitQa_h_
15
16#include "CbmKFTrErrMCPoints.h"
17#include "CbmKFTrack.h"
18#include "CbmMCTrack.h"
19#include "CbmMvdHit.h"
20#include "CbmMvdPoint.h"
21#include "CbmStsCluster.h"
22#include "CbmStsDigi.h"
23#include "CbmStsHit.h"
24#include "CbmStsPoint.h"
25#include "CbmStsTrack.h"
26#include "CbmTrackMatch.h"
27#include "FairTask.h"
28#include "TClonesArray.h"
29#include "TH1.h"
30#include "TProfile.h"
31
32#include <iostream>
33#include <vector>
34
35class CbmKFTrackFitQa : public FairTask {
36 public:
39
40 void StsHitMatch();
41 void FillHitHistos();
42 void FillHistoAtParticleVertex(CbmMCTrack* track_mc, CbmKFTrack* track_kf);
43 void FillHistoAtFirstPoint(CbmKFTrErrMCPoints* mc_points, CbmMCTrack* track_mc, CbmKFTrack* track_kf);
44 void KFWrite();
45 void FindBackTracks(CbmKFTrErrMCPoints* mc_points, CbmMCTrack* track_mc, CbmKFTrack* track_kf, int iEvent);
46 void FindBackTracks();
47 void Save();
48
49 void SetOutFile(TString outname) { outfileName = outname; }
50
51 virtual InitStatus ReInit();
52 virtual InitStatus Init();
53 void Exec(Option_t* option);
54 void Finish();
55
56 private:
57 // Arrays of points, tracks, etc
58
59 TClonesArray* listStsPts;
60 TClonesArray* listMvdPts;
61 TClonesArray* listMCTracks;
62 TClonesArray* listStsTracksMatch;
63 TClonesArray* listStsTracks;
64 TClonesArray* listStsHits;
65 TClonesArray* listMvdHits;
66 TClonesArray* listMvdHitMatches;
67 TClonesArray* listStsClusters;
68 TClonesArray* listStsDigi;
69 TClonesArray* listStsDigiMatch;
70
71
72 // Names of files
73 TString outfileName;
74
75 std::vector<int> vStsHitMatch;
76
77 // histograms
78
79 //hit parameters
84
89
90
91 //track parameters at the particle vertex
97
103
104 //track parameters at the first MC point of the track
110
116
117 //Q detertmination quality
118 TProfile* q_QA;
119 TProfile* dp_p;
120
121 TH1F* ggg;
122
123 int Nback;
124 //FILE *fBack;
125
127
128 private:
131};
132
133#endif // _CbmKFTrackFitQa_h_
Data class for STS clusters.
Data class for a reconstructed hit in the STS.
Data class for STS tracks.
void SetOutFile(TString outname)
TClonesArray * listMvdPts
TClonesArray * listStsTracks
std::vector< int > vStsHitMatch
void operator=(const CbmKFTrackFitQa &)
void FillHistoAtParticleVertex(CbmMCTrack *track_mc, CbmKFTrack *track_kf)
virtual InitStatus Init()
CbmKFTrackFitQa(const CbmKFTrackFitQa &)
TClonesArray * listStsDigi
TClonesArray * listStsHits
void FillHistoAtFirstPoint(CbmKFTrErrMCPoints *mc_points, CbmMCTrack *track_mc, CbmKFTrack *track_kf)
TClonesArray * listStsPts
TClonesArray * listMvdHitMatches
TClonesArray * listStsTracksMatch
TClonesArray * listStsClusters
TClonesArray * listMCTracks
ClassDef(CbmKFTrackFitQa, 1)
TClonesArray * listMvdHits
void Exec(Option_t *option)
TClonesArray * listStsDigiMatch
virtual InitStatus ReInit()