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