]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/cosmic/AliAnalysisTaskCosmic.h
Fix by Julian
[u/mrichter/AliRoot.git] / PWGPP / cosmic / AliAnalysisTaskCosmic.h
1 #ifndef ALIANALYSISTASKCOSMIC_H
2 #define ALIANALYSISTASKCOSMIC_H 
3
4 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 // Analysis Task for the Quality Assurance of Cosmic Data
10 // Two track segments in the are matched in angle and charged. T
11 // The quality of the matching in is checked by comparing 
12 // the tarnsverse momenta and starting points of the track segments
13 //
14 // Author
15 // Andreas Morsch
16 // andreas.morsch@cern.ch
17
18
19
20 class TH1F;
21 class TH2F;
22
23 class TProfile;
24
25 class TList;
26 class TClonesArray;
27
28
29 #include "AliAnalysisTaskSE.h"
30
31 enum SelType {
32    kPosC   = 0,
33    kNegC   = 1,
34    kPosZ   = 2,
35    kNegZ   = 3,
36    kGood   = 4,
37    kBad    = 5
38 };   
39
40 class AliAnalysisTaskCosmic : public AliAnalysisTaskSE {
41  public:
42   AliAnalysisTaskCosmic(const char *name = "AliAnalysisTaskCosmic");
43   virtual ~AliAnalysisTaskCosmic() {}
44   AliAnalysisTaskCosmic(const AliAnalysisTaskCosmic& task); 
45   AliAnalysisTaskCosmic& operator=(const AliAnalysisTaskCosmic& task);
46   
47   virtual void   UserCreateOutputObjects();
48   virtual void   UserExec(Option_t *option);
49   virtual void   Terminate(Option_t *);
50  private:
51   TList*          fHists;        // List of histograms
52   TH1F*           fhPt[6];       // Pt distribution
53   TH1F*           fhTheta[6];    // Eta distribution
54   TH1F*           fhPhi[6];      // Phi distribution
55   TH1F*           fhDPhi[6];     // DeltaPhi
56   TH1F*           fhDTheta[6];   // DeltaTheta
57   TH1F*           fhDZ[6];       // DeltaZ
58   TH1F*           fhDX[6];       // DeltaX
59   TH1F*           fhDY[6];       // DeltaY
60   TH1F*           fhDPt[6];      // DeltaPt
61   TH1F*           fhD1ovPt[6];   // Delta 1/Pt
62   
63
64   TH1F*           fhDPtovPt[6];  // DeltaPt/pt
65   
66       
67   TH2F*           fhDZvsZ;       // dz vs z
68   TH2F*           fhDZvsPhi;     // dz vs phi
69     
70   TH2F*           fhCh1Ch2;      // ch1 vs ch2
71   TH2F*           fhPh1Ph2;      // phi1 vs phi2
72   TH2F*           fhCl1Cl2G;     // #Clusters
73   TH2F*           fhCl1Cl2B;     // #Clusters
74     
75   TProfile*       fpDPt[6];      // delta pt / <pt>
76   TProfile*       fpDPtS[6];     // delta_pt / <error_pt>
77   
78   ClassDef(AliAnalysisTaskCosmic, 1); // example of analysis
79 };
80
81 #endif