Example train to produce HF candidates
[u/mrichter/AliRoot.git] / ESDCheck / AliTRDQATask.h
CommitLineData
8d14dc14 1#ifndef ALITRDQATASK_H
4000c217 2#define ALITRDQATASK_H
8d14dc14 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//______________________________________________________________________________
6// An analysis task to check the TRD data in simulated data
4000c217 7// Starting from ESD
8// Producing Histograms and plots
9// Part of an analysis Train
8d14dc14 10//*-- Sylwester Radomski
11//////////////////////////////////////////////////////////////////////////////
12
8d14dc14 13#include "AliAnalysisTask.h"
14
4000c217 15class TTree;
8d14dc14 16class AliESD;
17class TH1D;
18class TH2D;
19
20class AliTRDQATask : public AliAnalysisTask {
21
22public:
23 AliTRDQATask(const char *name);
24 virtual ~AliTRDQATask() {}
25
26 virtual void Exec(Option_t * opt = "");
c52c2132 27 virtual void ConnectInputData(Option_t *);
28 virtual void CreateOutputObjects();
8d14dc14 29 virtual void Terminate(Option_t * opt = "");
30
31private:
32
a6e0ebfe 33 int GetSector(const double alpha) const;
34 int CheckSector(const int sector) const;
8d14dc14 35 void CalculateEff();
4000c217 36 void DrawESD() const ;
37 void DrawGeoESD() const ;
38 void DrawConvESD() const ;
39 void DrawPidESD() const ;
8d14dc14 40
41 TTree * fChain; //!pointer to the analyzed TTree or TChain
42 AliESD * fESD; //! Declaration of leave types
43
44 TObjArray * fOutputContainer; //! output data container
45
46 // options
4000c217 47 int fConfSM; //!Super Module Configuration
8d14dc14 48
49 // Histograms
4000c217 50 TH1D *fNTracks; // Number of tracks
51 TH1D *fEventSize; // Event size
52 TH1D *fTrackStatus; // Status of tracks
8d14dc14 53
4000c217 54 TH1D *fParIn; // Par In
55 TH1D *fParOut; // Par out
56 TH1D *fKinkIndex; // Kink Index
8d14dc14 57
58 // TPC clusters histograms
59 //TH1D *fTpcNCls;
60 //TH1D *fTpcFCls;
61 //TH1D *fTpcRCls;
62
63 // last measurement X plane
4000c217 64 TH1D *fXIn; // input Xplane
65 TH1D *fXOut; // output Xplane
8d14dc14 66
67 // sector
4000c217 68 TH1D *fAlpha[4]; // alpha sectors
69 TH1D *fSectorTRD; // TRD sectors
8d14dc14 70
71 //static const int knbits = 5;
72
73 // track parameters
4000c217 74 TH1D *fPt[6]; // Transverse momentum
75 TH1D *fTheta[6]; // Theta distribution
76 TH1D *fSigmaY[6]; // Sigma Y
77 TH1D *fChi2[6]; // Chi 2
78 TH2D *fPlaneYZ[6]; // YZ Plane
8d14dc14 79
4000c217 80 TH1D *fEffPt[4]; // Eff transverse momentum
8d14dc14 81
82 // track features
4000c217 83 TH1D *fClustersTRD[3]; // Clusters
8d14dc14 84
85 // for good refitted tracks only
4000c217 86 TH1D *fTime; // time
87 TH1D *fBudget; // Budget
88 TH1D *fQuality; // Quality
89 TH1D *fSignal; // Signal
8d14dc14 90
91 // PID for TPC and TRD
4000c217 92 TH2D *fTrdSigMom; // Sig TRD
93 TH2D *fTpcSigMom; // Sig TPC
8d14dc14 94
4000c217 95 TH1D *fTrdPID[6]; // Pid TRD
96 TH2D *fTrdSigMomPID[6];// Pid TRD
8d14dc14 97
4000c217 98 TH1D *fTpcPID[6]; // Pid TPC
99 TH2D *fTpcSigMomPID[6];// Pid TPC
8d14dc14 100
5effd3c6 101 AliTRDQATask(const AliTRDQATask&); // Not implemented
102 AliTRDQATask& operator=(const AliTRDQATask&); // Not implemented
8d14dc14 103
104 ClassDef(AliTRDQATask, 0); // a TRD analysis task
105};
106#endif // ALITRDQATASK_H