template to access pmd pbpb data: sjena
[u/mrichter/AliRoot.git] / PMD / anal / AliPMDAnalysisTaskPbPb.h
1 #ifndef AliPMDAnalysisTaskPbPb_cxx
2 #define AliPMDAnalysisTaskPbPb_cxx
3
4  /**************************************************************************
5
6                    A template class to read tracks (PMD Cluster)
7                          Runs in Local and Grid Modes
8                         Can be used for PbPb PMD analysis
9                       Origin: Satyajit Jena <sjena@cern.ch>
10
11  **************************************************************************/
12
13
14 class TH1F;
15 class AliESDEvent;
16 class AliESDtrackCuts;
17
18 #include "AliAnalysisTaskSE.h"
19
20 class AliPMDAnalysisTaskPbPb : public AliAnalysisTaskSE {
21  public:
22  AliPMDAnalysisTaskPbPb(): AliAnalysisTaskSE(), fOutputList(0), fTrackCuts(0),fESD(0), fHistPt(0), fHistEta(0) {}
23   AliPMDAnalysisTaskPbPb(const char *name);
24   virtual ~AliPMDAnalysisTaskPbPb() {}
25   
26   virtual void   CreateOutputObjects();
27   virtual void   Exec(Option_t *option);
28   virtual void   Terminate(Option_t *);
29
30   void SetIsMC(Bool_t isMC) { fIsMC = isMC; }  
31  
32  private:
33   TList *fOutputList;
34   
35   AliESDtrackCuts *fTrackCuts;
36  
37   AliESDEvent *fESD;     // ESD object
38  
39   TH1F    *fHistPt;  // Pt spectrum
40   TH1F   *fHistEta; // Pt spectrum
41   TH2F   *fhEsdXYP; //
42   TH2F   *fhEsdXYC; //
43
44   Bool_t fIsMC; // MC truth 
45
46   AliPMDAnalysisTaskPbPb(const AliPMDAnalysisTaskPbPb&); // not implemented
47   AliPMDAnalysisTaskPbPb& operator=(const AliPMDAnalysisTaskPbPb&); // not implemented
48   
49   ClassDef(AliPMDAnalysisTaskPbPb, 1); // example of analysis
50 };
51
52 #endif