propagate cluster error parametrization
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackingAnalysis.h
CommitLineData
50f3bbf4 1#ifndef AliTRDtrackingAnalysis_H
2#define AliTRDtrackingAnalysis_H
3
180da4e4 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9////////////////////////////////////////////////////////////////////
10// //
11// Fills a set of QA histograms to check the correctness of //
12// the TRD reconstruction //
13// //
14////////////////////////////////////////////////////////////////////
15
50f3bbf4 16#include "TObject.h"
17
18class TH1D;
19class TH2D;
20class TTree;
21class TObjArray;
22class TGraphErrors;
23
24class AliRunLoader;
25class AliTRDgeometry;
af885e0f 26class AliESDEvent;
50f3bbf4 27class AliTRDcluster;
28class AliTRDtracker;
29
30class AliTRDtrackingAnalysis : public TObject {
180da4e4 31
32 public:
50f3bbf4 33
180da4e4 34 AliTRDtrackingAnalysis();
35 AliTRDtrackingAnalysis(const AliTRDtrackingAnalysis &t);
36 virtual ~AliTRDtrackingAnalysis() {}
eda565f4 37 AliTRDtrackingAnalysis &operator=(const AliTRDtrackingAnalysis &/*t*/) { return *this; }
180da4e4 38
39 void SetPath(const char *path) {fPath = path;}
50f3bbf4 40
180da4e4 41 void DrawResolutionPt(int startEvent, int stopEvent);
42 void DrawRecPointResolution(int startEvent, int stopEvent);
43 //void DrawTrackletResolution(int startEvent, int stopEvent);
50f3bbf4 44
180da4e4 45 protected:
50f3bbf4 46
180da4e4 47 void CheckFiles();
48 void LoadRecPointsFile();
49 void LoadRefs();
50 Int_t GetReference(Int_t label);
51 Int_t GetMCPosition(Int_t label, Double_t x, Double_t &Y, Double_t &Z, Double_t &tgphi);
50f3bbf4 52
180da4e4 53 Int_t GetPhiBin(Double_t phi) const;
54 Double_t GetPhi(Int_t bin) const;
50f3bbf4 55
180da4e4 56 const char *fPath; // Path to data directory
57
58 TObjArray *fRefTPC; // TPC track references
59 TObjArray *fRefTRD; // TRD track references
60 Int_t fLabels[100000]; // Track lables
50f3bbf4 61
180da4e4 62 AliRunLoader *fLoader; // AliRunLoader instance
63 TTree *fEsdTree; // ESD tree
af885e0f 64 AliESDEvent *fESD; // ESD
50f3bbf4 65
180da4e4 66 AliTRDtracker *fTracker; // TRD tracker instance
50f3bbf4 67
180da4e4 68 // histograms
69 TH1D *fDeltaPt; // Histogram for the pt resolution
70 TH1D *fDeltaZ; // Histogram for the cluster z deviation
71 TH1D *fDeltaX; // Histogram for the cluster x deviation
72 TH1D *fDeltaYPos; // Histogram for the cluster y deviation (positives)
73 TH1D *fDeltaYNeg; // Histogram for the cluster y deviation (negatives)
74
75 TH1D *fNPoints; // Histogram for the number of points
76 TH1D *fNGood; // Histogram for the number of good points
77
78 TH2D *fRefSpace; // Histogram for reference space
50f3bbf4 79
180da4e4 80 AliTRDgeometry *fGeo; // TRD geometry
50f3bbf4 81
180da4e4 82 TH1D *fClY2; // Histogram for cluster studies Y
83 TH1D *fClY3; // Histogram for cluster studies Y
50f3bbf4 84
180da4e4 85 TH1D *fTgPhi; // Histogram for tangens(phi)
86 TH1D *fClYTgPhi[12]; // Histogram cluster Y tangen phi
50f3bbf4 87
180da4e4 88 TGraphErrors *fGrResTgPhi; // Graph resolution tangens phi
89 TGraphErrors *fGrMeanTgPhi; // Graph mean tangens phi
50f3bbf4 90
180da4e4 91 //TH1D *fPullY2;
92 //TH1D *fPullY3;
50f3bbf4 93
180da4e4 94 TH1D *fTrklY; // QA histogram
95 TH1D *fTrklZ; // QA histogram
50f3bbf4 96
180da4e4 97 TH1D *fClZ; // QA histogram
98 TH2D *fClZZ; // QA histogram
99 TH2D *fClYY; // QA histogram
100 TH2D *fClYX; // QA histogram
101 TH1D *fNLabels; // QA histogram
102 TH1D *fTestBits; // QA histogram
103 TH1D *fRefDx; // QA histogram
50f3bbf4 104
180da4e4 105 TH2D *fClZXref; // QA histogram
106 TH2D *fClZXcl; // QA histogram
50f3bbf4 107
180da4e4 108 TH2D *fClPos; // QA histogram
50f3bbf4 109
110 ClassDef(AliTRDtrackingAnalysis,1) // qa for Digits
111};
112
113#endif
114
115