classes missed in earlier commit
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 10:46:52 +0000 (10:46 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 10:46:52 +0000 (10:46 +0000)
FMD/analysis/AliFMDAnalysisTaskGenerateCorrection.h [new file with mode: 0644]

diff --git a/FMD/analysis/AliFMDAnalysisTaskGenerateCorrection.h b/FMD/analysis/AliFMDAnalysisTaskGenerateCorrection.h
new file mode 100644 (file)
index 0000000..c912aab
--- /dev/null
@@ -0,0 +1,61 @@
+#ifndef ALIFMDANALYSISTASKGENERATECORRECTION_H
+#define ALIFMDANALYSISTASKGENERATECORRECTION_H
+
+#include "AliAnalysisTaskSE.h"
+#include "TList.h"
+#include "AliFMDFloatMap.h"
+#include "TH1F.h"
+
+class AliFMDAnaCalibBackgroundCorrection;
+class AliFMDAnaCalibTriggerEfficiency;
+class AliFMDAnaCalibEventSelectionEfficiency;
+
+class AliFMDAnalysisTaskGenerateCorrection : public AliAnalysisTaskSE
+{
+ public:
+  AliFMDAnalysisTaskGenerateCorrection();
+    AliFMDAnalysisTaskGenerateCorrection(const char* name);
+    ~AliFMDAnalysisTaskGenerateCorrection() {;}
+ AliFMDAnalysisTaskGenerateCorrection(const AliFMDAnalysisTaskGenerateCorrection& o) : AliAnalysisTaskSE(), 
+      fListOfHits(), 
+      fListOfPrimaries(),
+      fListOfCorrection(),
+      fVertexBins(o.fVertexBins),
+      fLastTrackByStrip(o.fLastTrackByStrip),
+      fHitsByStrip(o.fHitsByStrip),
+      fZvtxCut(o.fZvtxCut),
+      fNvtxBins(o.fNvtxBins),
+      fNbinsEta(o.fNbinsEta),
+      fBackground(o.fBackground)
+      {}
+    AliFMDAnalysisTaskGenerateCorrection& operator=(const AliFMDAnalysisTaskGenerateCorrection&) { return *this; }
+    
+    virtual void Init();
+    virtual void UserCreateOutputObjects();
+    virtual void UserExec(Option_t* /*option*/);
+    void  Terminate(Option_t */*option*/);
+    void SetZvtxCut(Float_t vtxcut) {fZvtxCut = vtxcut;}
+    void SetNvtxBins(Int_t nvtxbins) {fNvtxBins = nvtxbins;}
+    void SetNbinsEta(Int_t netabins) {fNbinsEta = netabins;}
+    void ReadFromFile(const Char_t* filename = "background.root", Bool_t storeInOCDB = kFALSE, Int_t runNo=0);
+ private:
+    
+    void GenerateCorrection();
+    
+    TList fListOfHits;
+    TList fListOfPrimaries;
+    TList fListOfCorrection;
+    TH1F  fVertexBins;
+    AliFMDFloatMap fLastTrackByStrip;
+    AliFMDFloatMap fHitsByStrip;
+    Float_t fZvtxCut;
+    Int_t fNvtxBins;
+    Int_t fNbinsEta;
+    AliFMDAnaCalibBackgroundCorrection* fBackground;
+    AliFMDAnaCalibTriggerEfficiency*    fTriggerEff;
+    AliFMDAnaCalibEventSelectionEfficiency*     fEventSelectionEff;
+    
+    ClassDef(AliFMDAnalysisTaskGenerateCorrection, 1);
+
+};
+#endif