BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmStsFitPerformanceTask.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmStsFitPerformanceTask header file -----
3// ----- Created 27/01/05 by E. Kryshen -----
4// -------------------------------------------------------------------------
5
6/** CbmStsFitPerformanceTask.h
7 **@author S.Gorbunov <sgorboun@mail.desy.de>
8 **@author I.Kisel <ikisel@kip.uni-heidelberg.de>
9 **@author E.Kryshen <e.kryshen@gsi.de>
10 **
11 ** Analysis of the KalmanTrackFitter perfomance
12 **/
13
14#ifndef CBMSTSFITPERFORMANCE_H
15#define CBMSTSFITPERFORMANCE_H
16
17#include "CbmMCTrack.h"
18#include "CbmMvdPoint.h"
19#include "CbmStsKFTrackFitter.h"
20#include "CbmStsPoint.h"
21#include "CbmStsTrack.h"
22#include "CbmVertex.h"
23#include "FairTask.h"
24#include "FairTrackParam.h"
25#include "TClonesArray.h"
26#include "TH1D.h"
27#include "TH2D.h"
28
30{
31
32 public:
33 /** Standard constructor */
34 CbmStsFitPerformanceTask(const char* name = "CbmStsFitPerformanceTask", Int_t iVerbose = 1);
35
36 /** Destructor */
38
39 /** Initialization of the task */
40 InitStatus Init();
41
42 /** ReInitialization of the task */
43 InitStatus ReInit();
44
45 /** Execute task */
46 void Exec(Option_t* option);
47
48 /** Finish task */
49 void Finish();
50
51 /** This function fill state vectors t[], mc[] and covariance
52 ** matrix c[] from the given FairTrackParam object and
53 ** related CbmStsPoint object.
54 ** @param point MC point
55 ** @param mc output MC state vector (x, y, tx, ty, q/p, z)
56 ** @param out kTRUE if the values of position and momentum at the exit are used (at the entrance otherwise)
57 */
58
59 void FillMCStateVectors(CbmStsPoint* point, Double_t mc[], Bool_t out = 0);
60 void FillMCStateVectors(CbmMvdPoint* point, Double_t mc[], Bool_t out = 0);
61
62 /** This function fills track pulls and residuals at certain z-position */
63 void FillTrackHisto(const Double_t mc[6], CbmStsTrack* track, TH1D* hist[10]);
64
65 /** This function fills vertex pulls and residuals */
66 void FillVertexHisto(TVector3& mc, CbmVertex* V, TH1D* hist[8]);
67
68 /** Returns 1 if track has >=8 measurements and stMaxID-stMinID>=4 */
70
71 void DoTrackAnalysis(const bool ok = 1) { fTrackAnalysis = ok; }
72 void DoVertexAnalysis(const bool ok = 1) { fVertexAnalysis = ok; }
73 void DoD0Analysis(const bool ok = 1) { fD0Analysis = ok; }
74
76
77 protected:
78 void CreateTrackHisto(TH1D* hist[10], const char* name, const char* title);
79 void CreateVertexHisto(TH1D* hist[9], const char* name, const char* title);
80 void CreateD0Histo(TH1D* hist[14], const char* name, const char* title);
81
84
88 TClonesArray* fRecStsTrackArray; ///< Reconstructed StsTracks
89 TClonesArray* fStsHitArray; ///< Sts hits
90 TClonesArray* fMvdHitArray; ///< Sts hits
91 CbmVertex* fPrimaryVertex; ///< Primary vertex
92 TClonesArray* fSTSTrackMatch; ///< Related MC tracks
93
94 TH1D* fhChi2; // x=chi2; y=entries for all
95 TH1D* fhProb; // x=Prob function; y=entries for all
100
101 TH1D *fhZMCf, *fhZMCl; // z first/last of MC track
102 TH1D *fhZRecof, *fhZRecol; // z first/last of Reco track
103
104 TH2D *fhRes_vs_Mom_f, *fhRes_vs_Mom_l; // resolution vs momentum
105 TH2D* fhExtraTracks2ndMVD; // extra tracks not detected in the second mvd chamber
106
114 TH1D* fhV[13][9];
116 TH1D* fhD0[4][14];
117
121
124
126
127 private:
130};
131
132#endif
bool Bool_t
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
CbmMCTrack.h.
Definition CbmMCTrack.h:26
CbmMvdPoint.h.
Definition CbmMvdPoint.h:27
void Exec(Option_t *option)
Execute task.
TClonesArray * fMCTrackArray
MCTracks.
void FillMCStateVectors(CbmStsPoint *point, Double_t mc[], Bool_t out=0)
This function fill state vectors t[], mc[] and covariance matrix c[] from the given FairTrackParam ob...
void operator=(const CbmStsFitPerformanceTask &)
Bool_t IsLong(CbmStsTrack *track)
Returns 1 if track has >=8 measurements and stMaxID-stMinID>=4.
TClonesArray * fMvdHitArray
Sts hits.
TClonesArray * fStsHitArray
Sts hits.
CbmVertex * fPrimaryVertex
Primary vertex.
CbmStsFitPerformanceTask(const char *name="CbmStsFitPerformanceTask", Int_t iVerbose=1)
Standard constructor.
void DoTrackAnalysis(const bool ok=1)
InitStatus Init()
Initialization of the task.
TClonesArray * fSTSTrackMatch
Related MC tracks.
TClonesArray * fMvdPointArray
StsPoints.
InitStatus ReInit()
ReInitialization of the task.
Double_t GetCharge(CbmMCTrack *mcTrack)
TClonesArray * fRecStsTrackArray
Reconstructed StsTracks.
void CreateTrackHisto(TH1D *hist[10], const char *name, const char *title)
void FillVertexHisto(TVector3 &mc, CbmVertex *V, TH1D *hist[8])
This function fills vertex pulls and residuals.
void FillTrackHisto(const Double_t mc[6], CbmStsTrack *track, TH1D *hist[10])
This function fills track pulls and residuals at certain z-position.
void CreateD0Histo(TH1D *hist[14], const char *name, const char *title)
void DoVertexAnalysis(const bool ok=1)
TClonesArray * fStsPointArray
StsPoints.
void DoD0Analysis(const bool ok=1)
void CreateVertexHisto(TH1D *hist[9], const char *name, const char *title)
CbmStsFitPerformanceTask(const CbmStsFitPerformanceTask &)
CbmVertex.h.
Definition CbmVertex.h:21