]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/analysis/AliFMDAnalysisTaskBackgroundCorrection.h
8c1e4e43f3ca73adeca81d9c85020a28e60ac5eb
[u/mrichter/AliRoot.git] / FMD / analysis / AliFMDAnalysisTaskBackgroundCorrection.h
1 #ifndef ALIFMDANALYSISTASKBACKGROUNDCORRECTION_H
2 #define ALIFMDANALYSISTASKBACKGROUNDCORRECTION_H
3  
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6  
7 #include "AliAnalysisTask.h"
8
9 #include "TObjArray.h"
10 #include "TObjString.h"
11 #include "TArrayI.h"
12 #include "TH1I.h"
13
14 class AliFMDAnalysisTaskBackgroundCorrection : public AliAnalysisTask
15 {
16  public:
17     AliFMDAnalysisTaskBackgroundCorrection();
18     AliFMDAnalysisTaskBackgroundCorrection(const char* name, Bool_t SE = kTRUE);
19     virtual ~AliFMDAnalysisTaskBackgroundCorrection() {;}
20  AliFMDAnalysisTaskBackgroundCorrection(const AliFMDAnalysisTaskBackgroundCorrection& o) : AliAnalysisTask(),
21       fDebug(o.fDebug),
22       fOutputList(0),
23       fInputList(0),
24       fArray(o.fArray),
25       fInputArray(o.fInputArray),
26       fVertexString(o.fVertexString),
27       fNevents(o.fNevents),
28       fStandalone(o.fStandalone), 
29       fOutputVertexString(o.fOutputVertexString) {}
30     AliFMDAnalysisTaskBackgroundCorrection& operator=(const AliFMDAnalysisTaskBackgroundCorrection&) { return *this; }
31     // Implementation of interface methods
32     virtual void ConnectInputData(Option_t *option = "");
33     virtual void CreateOutputObjects();
34     virtual void Init() {}
35     virtual void LocalInit() {Init();}
36     virtual void Exec(Option_t *option);
37     virtual void Terminate(Option_t *option);
38     virtual void SetDebugLevel(Int_t level) {fDebug = level;}
39     void SetInputList(TList* inputList) {fInputList = inputList;}
40     void SetOutputVertex(TObjString* vtxString) {fOutputVertexString = vtxString;}
41     //void SetInputVtx(TObjString* vtxString) {fVertexString = vtxString;}
42     void SetOutputList(TList* outputList) {fOutputList = outputList;}
43         
44  private:
45     Int_t         fDebug;        //  Debug flag
46     TList*        fOutputList;
47     TList*        fInputList;
48     TObjArray     fArray;
49     TObjArray*    fInputArray;
50     TObjString*   fVertexString;
51     TH1I          fNevents;
52     Bool_t        fStandalone;
53     TObjString*   fOutputVertexString;
54     ClassDef(AliFMDAnalysisTaskBackgroundCorrection, 0); // Analysis task for FMD analysis
55 };
56  
57 #endif