1 #ifndef ALIFMDANALYSISTASKBACKGROUNDCORRECTION_H
2 #define ALIFMDANALYSISTASKBACKGROUNDCORRECTION_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 #include "AliAnalysisTask.h"
10 #include "TObjString.h"
16 * @brief Applu the background correction
20 class AliFMDAnalysisTaskBackgroundCorrection : public AliAnalysisTask
23 AliFMDAnalysisTaskBackgroundCorrection();
24 AliFMDAnalysisTaskBackgroundCorrection(const char* name, Bool_t SE = kTRUE);
25 virtual ~AliFMDAnalysisTaskBackgroundCorrection() {;}
26 AliFMDAnalysisTaskBackgroundCorrection(const AliFMDAnalysisTaskBackgroundCorrection& o) : AliAnalysisTask(),
31 fVertexString(o.fVertexString),
33 fStandalone(o.fStandalone),
34 fOutputVertexString(o.fOutputVertexString) {}
35 AliFMDAnalysisTaskBackgroundCorrection& operator=(const AliFMDAnalysisTaskBackgroundCorrection&) { return *this; }
36 // Implementation of interface methods
37 virtual void ConnectInputData(Option_t *option = "");
38 virtual void CreateOutputObjects();
39 virtual void Init() {}
40 virtual void LocalInit() {Init();}
41 virtual void Exec(Option_t *option);
42 virtual void Terminate(Option_t *option);
43 virtual void SetDebugLevel(Int_t level) {fDebug = level;}
44 void SetInputList(TList* inputList) {fInputList = inputList;}
45 void SetOutputVertex(TObjString* vtxString) {fOutputVertexString = vtxString;}
46 //void SetInputVtx(TObjString* vtxString) {fVertexString = vtxString;}
47 void SetOutputList(TList* outputList) {fOutputList = outputList;}
48 void SetHitList(TList* hitList) {fHitList = hitList;}
49 void CreatePerEventHistogram(Int_t vtxbin);
51 Int_t fDebug; // Debug flag
55 TObjString* fVertexString;
58 TObjString* fOutputVertexString;
59 ClassDef(AliFMDAnalysisTaskBackgroundCorrection, 0); // Analysis task for FMD analysis