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 //------------------------------
11 #include "AliAnalysisTaskSE.h"
13 class AliAnaFwdDetsQA : public AliAnalysisTaskSE
17 AliAnaFwdDetsQA(const char *name);
18 virtual ~AliAnaFwdDetsQA() {}
20 virtual void UserCreateOutputObjects();
21 virtual void UserExec(Option_t *option);
22 virtual void Terminate(Option_t *);
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);
51 AliAnaFwdDetsQA(const AliAnaFwdDetsQA&); // not implemented
52 AliAnaFwdDetsQA& operator=(const AliAnaFwdDetsQA&); // not implemented
54 ClassDef(AliAnaFwdDetsQA, 1) // example of analysis