]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis/AliFMDAnalysisTaskBackgroundCorrection.h
Transition PWG2/FORWARD -> PWGLF
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / 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 /**
15  * @ingroup FMD_ana
16  * @brief Applu the background correction
17  * particles. 
18  * 
19  */
20 class AliFMDAnalysisTaskBackgroundCorrection : public AliAnalysisTask
21 {
22  public:
23     AliFMDAnalysisTaskBackgroundCorrection();
24     AliFMDAnalysisTaskBackgroundCorrection(const char* name, Bool_t SE = kTRUE);
25     virtual ~AliFMDAnalysisTaskBackgroundCorrection() {;}
26  AliFMDAnalysisTaskBackgroundCorrection(const AliFMDAnalysisTaskBackgroundCorrection& o) : AliAnalysisTask(),
27       fDebug(o.fDebug),
28       fOutputList(0),
29       fInputList(0),
30       fHitList(0),
31       fVertexString(o.fVertexString),
32       fNevents(o.fNevents),
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);
50  private:
51     Int_t         fDebug;        //  Debug flag
52     TList*        fOutputList;
53     TList*        fInputList;
54     TList*        fHitList;
55     TObjString*   fVertexString;
56     TH1I          fNevents;
57     Bool_t        fStandalone;
58     TObjString*   fOutputVertexString;
59     ClassDef(AliFMDAnalysisTaskBackgroundCorrection, 0); // Analysis task for FMD analysis
60 };
61  
62 #endif
63 // Local Variables:
64 //   mode: C++
65 // End: