1 #ifndef ALIFMDANALYSISTASKGENERATEBACKGROUND_H
2 #define ALIFMDANALYSISTASKGENERATEBACKGROUND_H
4 #include "AliAnalysisTaskSE.h"
6 #include "AliFMDFloatMap.h"
10 * Make a background distribution from simulated data
16 class AliFMDAnaCalibBackgroundCorrection;
18 class AliFMDAnalysisTaskGenerateBackground : public AliAnalysisTaskSE
21 AliFMDAnalysisTaskGenerateBackground();
22 AliFMDAnalysisTaskGenerateBackground(const char* name);
23 ~AliFMDAnalysisTaskGenerateBackground() {;}
24 AliFMDAnalysisTaskGenerateBackground(const AliFMDAnalysisTaskGenerateBackground& o) : AliAnalysisTaskSE(),
28 fVertexBins(o.fVertexBins),
29 fLastTrackByStrip(o.fLastTrackByStrip),
30 fHitsByStrip(o.fHitsByStrip),
32 fNvtxBins(o.fNvtxBins),
33 fNbinsEta(o.fNbinsEta),
34 fBackground(o.fBackground)
36 AliFMDAnalysisTaskGenerateBackground& operator=(const AliFMDAnalysisTaskGenerateBackground&) { return *this; }
39 virtual void UserCreateOutputObjects();
40 virtual void UserExec(Option_t* /*option*/);
41 void Terminate(Option_t */*option*/);
42 void SetZvtxCut(Float_t vtxcut) {fZvtxCut = vtxcut;}
43 void SetNvtxBins(Int_t nvtxbins) {fNvtxBins = nvtxbins;}
44 void SetNbinsEta(Int_t netabins) {fNbinsEta = netabins;}
45 void ReadFromFile(const Char_t* filename = "background.root", Bool_t storeInOCDB = kFALSE, Int_t runNo=0);
48 void GenerateCorrection();
51 TList fListOfPrimaries;
52 TList fListOfCorrection;
54 AliFMDFloatMap fLastTrackByStrip;
55 AliFMDFloatMap fHitsByStrip;
59 AliFMDAnaCalibBackgroundCorrection* fBackground;
60 ClassDef(AliFMDAnalysisTaskGenerateBackground, 1);