New TRD QA task
[u/mrichter/AliRoot.git] / ESDCheck / AliTRDQATask.h
CommitLineData
8d14dc14 1#ifndef ALITRDQATASK_H
2/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice */
4//______________________________________________________________________________
5// An analysis task to check the TRD data in simulated data
6//
7//*-- Sylwester Radomski
8//////////////////////////////////////////////////////////////////////////////
9
10#include <TTree.h>
11#include "AliAnalysisTask.h"
12
13class AliESD;
14class TH1D;
15class TH2D;
16
17class AliTRDQATask : public AliAnalysisTask {
18
19public:
20 AliTRDQATask(const char *name);
21 virtual ~AliTRDQATask() {}
22
23 virtual void Exec(Option_t * opt = "");
24 virtual void Init(Option_t * opt = "");
25 virtual void Terminate(Option_t * opt = "");
26
27private:
28
29 int GetSector(double alpha);
30 int CheckSector(int sector);
31 void CalculateEff();
32 void DrawESD() ;
33 void DrawGeoESD() ;
34 void DrawConvESD() ;
35 void DrawPidESD() ;
36
37 TTree * fChain; //!pointer to the analyzed TTree or TChain
38 AliESD * fESD; //! Declaration of leave types
39
40 TObjArray * fOutputContainer; //! output data container
41
42 // options
43 int fConfSM;
44
45 // Histograms
46 TH1D *fNTracks;
47 TH1D *fEventSize;
48 TH1D *fTrackStatus;
49
50 TH1D *fParIn;
51 TH1D *fParOut;
52 TH1D *fKinkIndex;
53
54 // TPC clusters histograms
55 //TH1D *fTpcNCls;
56 //TH1D *fTpcFCls;
57 //TH1D *fTpcRCls;
58
59 // last measurement X plane
60 TH1D *fXIn;
61 TH1D *fXOut;
62
63 // sector
64 TH1D *fAlpha[4];
65 TH1D *fSectorTRD;
66
67 //static const int knbits = 5;
68
69 // track parameters
70 TH1D *fPt[6];
71 TH1D *fTheta[6];
72 TH1D *fSigmaY[6];
73 TH1D *fChi2[6];
74 TH2D *fPlaneYZ[6];
75
76 TH1D *fEffPt[4];
77
78 // track features
79 TH1D *fClustersTRD[3];
80
81 // for good refitted tracks only
82 TH1D *fTime;
83 TH1D *fBudget;
84 TH1D *fQuality;
85 TH1D *fSignal;
86
87 // PID for TPC and TRD
88 TH2D *fTrdSigMom;
89 TH2D *fTpcSigMom;
90
91 TH1D *fTrdPID[6];
92 TH2D *fTrdSigMomPID[6];
93
94 TH1D *fTpcPID[6];
95 TH2D *fTpcSigMomPID[6];
96
97
98 ClassDef(AliTRDQATask, 0); // a TRD analysis task
99};
100#endif // ALITRDQATASK_H