1 #ifndef ALIANAFWDDETSQA_H
2 #define ALIANAFWDDETSQA_H
4 //------------------------------
5 // Analysis task for quality-assurance
6 // of forward detectors ESD
8 // 12/06/2009 cvetan.cheshkov@cern.ch
9 //------------------------------
16 #include "AliAnalysisTaskSE.h"
18 class AliAnaFwdDetsQA : public AliAnalysisTaskSE
22 AliAnaFwdDetsQA(const char *name);
23 virtual ~AliAnaFwdDetsQA() {}
25 virtual void UserCreateOutputObjects();
26 virtual void UserExec(Option_t *option);
27 virtual void Terminate(Option_t *);
29 TH1F* CreateHisto(const char* name, const char* title, Int_t nBins, Double_t xMin,
30 Double_t xMax, const char* xLabel = NULL, const char* yLabel = NULL);
31 TH1F* CreateEffHisto(const TH1F* hGen, const TH1F* hRec);
32 Bool_t FitHisto(TH1* histo, Double_t& res, Double_t& resError);
56 AliAnaFwdDetsQA(const AliAnaFwdDetsQA&); // not implemented
57 AliAnaFwdDetsQA& operator=(const AliAnaFwdDetsQA&); // not implemented
59 ClassDef(AliAnaFwdDetsQA, 1) // example of analysis