1 #ifndef ALIFMDANALYSISTASKGENERATEBACKGROUND_H
2 #define ALIFMDANALYSISTASKGENERATEBACKGROUND_H
4 #include "AliAnalysisTaskSE.h"
6 #include "AliFMDFloatMap.h"
9 class AliFMDAnaCalibBackgroundCorrection;
11 class AliFMDAnalysisTaskGenerateBackground : public AliAnalysisTaskSE
14 AliFMDAnalysisTaskGenerateBackground();
15 AliFMDAnalysisTaskGenerateBackground(const char* name);
16 ~AliFMDAnalysisTaskGenerateBackground() {;}
17 AliFMDAnalysisTaskGenerateBackground(const AliFMDAnalysisTaskGenerateBackground& o) : AliAnalysisTaskSE(),
21 fVertexBins(o.fVertexBins),
22 fLastTrackByStrip(o.fLastTrackByStrip),
24 fNvtxBins(o.fNvtxBins),
25 fNbinsEta(o.fNbinsEta),
26 fBackground(o.fBackground)
28 AliFMDAnalysisTaskGenerateBackground& operator=(const AliFMDAnalysisTaskGenerateBackground&) { return *this; }
31 virtual void UserCreateOutputObjects();
32 virtual void UserExec(Option_t* /*option*/);
33 void Terminate(Option_t */*option*/);
34 void SetZvtxCut(Float_t vtxcut) {fZvtxCut = vtxcut;}
35 void SetNvtxBins(Int_t nvtxbins) {fNvtxBins = nvtxbins;}
36 void SetNbinsEta(Int_t netabins) {fNbinsEta = netabins;}
37 void ReadFromFile(const Char_t* filename = "background.root", Bool_t storeInOCDB = kFALSE, Int_t runNo=0);
40 void GenerateCorrection();
43 TList fListOfPrimaries;
44 TList fListOfCorrection;
46 AliFMDFloatMap fLastTrackByStrip;
50 AliFMDAnaCalibBackgroundCorrection* fBackground;
51 ClassDef(AliFMDAnalysisTaskGenerateBackground, 1);