Updated version of the forward dets QA task
[u/mrichter/AliRoot.git] / PWG1 / AliAnaFwdDetsQA.h
1 #ifndef ALIANAFWDDETSQA_H
2 #define ALIANAFWDDETSQA_H
3
4 //------------------------------
5 // Analysis task for quality-assurance
6 // of forward detectors ESD
7 //
8 // 12/06/2009 cvetan.cheshkov@cern.ch
9 //------------------------------
10
11 #include "AliAnalysisTaskSE.h"
12
13 class AliAnaFwdDetsQA : public AliAnalysisTaskSE
14 {
15  public:         
16   AliAnaFwdDetsQA();
17   AliAnaFwdDetsQA(const char *name);
18   virtual ~AliAnaFwdDetsQA() {}
19
20   virtual void   UserCreateOutputObjects();
21   virtual void   UserExec(Option_t *option);
22   virtual void   Terminate(Option_t *);
23
24   TH1F* CreateHisto(const char* name, const char* title, Int_t nBins, Double_t xMin, 
25                         Double_t xMax, const char* xLabel = NULL, const char* yLabel = NULL);
26   TH1F* CreateEffHisto(const TH1F* hGen, const TH1F* hRec);
27   Bool_t FitHisto(TH1* histo, Double_t& res, Double_t& resError);
28   
29  private:
30
31   TList* fListOfHistos;
32
33   TH1F* fT0vtxRec;
34   TH2F* fT0vtxRecGen;
35   TH1F* fT0time;
36   TH1F* fT0time2;
37   TH1F* fT0mult;
38   TH1F* fT0vtxRes;
39   TH1F* fT0ampl;
40
41   TH1F* fV0a;
42   TH1F* fV0c;
43   TH1F* fV0multA;
44   TH1F* fV0multC;
45   TH2F* fV0multAcorr;
46   TH2F* fV0multCcorr;
47   TH2F* fV0Acorr;
48   TH2F* fV0Ccorr;
49   TH1F* fV0ampl;
50
51   AliAnaFwdDetsQA(const AliAnaFwdDetsQA&); // not implemented
52   AliAnaFwdDetsQA& operator=(const AliAnaFwdDetsQA&); // not implemented
53
54   ClassDef(AliAnaFwdDetsQA, 1) // example of analysis
55 };
56
57 #endif