01f9b06801dba9eac45374afdfcc53f644dd9ab6
[u/mrichter/AliRoot.git] / PWG1 / cosmic / AliAnalysisTaskCosmic.h
1 // gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include");\r
2 #ifndef AliAnalysisTaskCosmic_h\r
3 #define AliAnalysisTaskCosmic_h\r
4 \r
5 //------------------------------------------------------------\r
6 // Prototype of QA analysis mini-train\r
7 // Origin: Andreas.Morsch@cern.ch\r
8 //------------------------------------------------------------\r
9 \r
10 \r
11 class TH1F;\r
12 class TH2F;\r
13 \r
14 class TProfile;\r
15 \r
16 class TList;\r
17 class TClonesArray;\r
18 \r
19 \r
20 #include "AliAnalysisTaskSE.h"\r
21 \r
22 enum SelType {\r
23    kPosC   = 0,\r
24    kNegC   = 1,\r
25    kPosZ   = 2,\r
26    kNegZ   = 3,\r
27    kGood   = 4,\r
28    kBad    = 5\r
29 };   \r
30 \r
31 class AliAnalysisTaskCosmic : public AliAnalysisTaskSE {\r
32  public:\r
33   AliAnalysisTaskCosmic(const char *name = "AliAnalysisTaskCosmic");\r
34   virtual ~AliAnalysisTaskCosmic() {}\r
35   \r
36   virtual void   UserCreateOutputObjects();\r
37   virtual void   UserExec(Option_t *option);\r
38   virtual void   Terminate(Option_t *);\r
39  private:\r
40   AliAnalysisTaskCosmic(const AliAnalysisTaskCosmic&); // not implemented\r
41   AliAnalysisTaskCosmic& operator=(const AliAnalysisTaskCosmic&); // not implemented\r
42   \r
43   TList*          fHists;        // List of histograms\r
44   TH1F*           fhPt[6];       // Pt distribution\r
45   TH1F*           fhTheta[6];    // Eta distribution\r
46   TH1F*           fhPhi[6];      // Phi distribution\r
47   TH1F*           fhDPhi[6];     // DeltaPhi\r
48   TH1F*           fhDTheta[6];   // DeltaTheta\r
49   TH1F*           fhDZ[6];       // DeltaZ\r
50   TH1F*           fhDX[6];       // DeltaX\r
51   TH1F*           fhDY[6];       // DeltaY\r
52   TH1F*           fhDPt[6];      // DeltaPt\r
53   TH1F*           fhD1ovPt[6];   // Delta 1/Pt\r
54   \r
55 \r
56   TH1F*           fhDPtovPt[6];  // DeltaPt/pt\r
57   \r
58       \r
59   TH2F*           fhDZvsZ;       // dz vs z\r
60   TH2F*           fhDZvsPhi;     // dz vs phi\r
61     \r
62   TH2F*           fhCh1Ch2;      // ch1 vs ch2\r
63   TH2F*           fhPh1Ph2;      // phi1 vs phi2\r
64   TH2F*           fhCl1Cl2G;     // #Clusters\r
65   TH2F*           fhCl1Cl2B;     // #Clusters\r
66     \r
67   TProfile*       fpDPt[6];      // delta pt / <pt>\r
68   TProfile*       fpDPtS[6];     // delta_pt / <error_pt>\r
69   \r
70   ClassDef(AliAnalysisTaskCosmic, 1); // example of analysis\r
71 };\r
72 \r
73 #endif\r