]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FORWARD/analysis/AliFMDAnalysisTaskBFCorrelation.h
3ffc86cce5cd8db26e0dca7ca740d4ff553e1dba
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis / AliFMDAnalysisTaskBFCorrelation.h
1 #ifndef ALIFMDANALYSISTASKBFCORRELATION_H
2 #define ALIFMDANALYSISTASKBFCORRELATION_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 #include "TH2.h"
14 #include "AliMCEvent.h"
15 #include "AliFMDFloatMap.h"
16 #include "TCanvas.h"
17
18 /**
19  * @ingroup FMD_ana
20  */
21 class AliFMDAnalysisTaskBFCorrelation : public AliAnalysisTask
22 {
23  public:
24     AliFMDAnalysisTaskBFCorrelation();
25     AliFMDAnalysisTaskBFCorrelation(const char* name, Bool_t SE = kTRUE);
26     virtual ~AliFMDAnalysisTaskBFCorrelation() {;}
27   AliFMDAnalysisTaskBFCorrelation(const AliFMDAnalysisTaskBFCorrelation& o) : AliAnalysisTask(),
28                                                                               fDebug(o.fDebug),
29                                                                               fOutputList(0),
30                                                                               fInputList(0),
31                                                                               fInternalList(0),
32                                                                               fVertexString(o.fVertexString),
33                                                                               fStandalone(o.fStandalone),
34                                                                               fEvent(0),
35                                                                               fnBinsX(200),
36                                                                               fXmin(-6),
37                                                                               fXmax(6),
38                                                                               fnBinsY(20),
39                                                                               fYmin(2),
40                                                                               fYmax(2 * TMath::Pi()),
41                                                                               c(0),
42                                                                               debug0(0),
43                                                                               debug1(0)
44  {}
45   
46   AliFMDAnalysisTaskBFCorrelation& operator=(const AliFMDAnalysisTaskBFCorrelation&) { return *this; }
47   // Implementation of interface methods
48   virtual void ConnectInputData(Option_t *option = "");
49   virtual void CreateOutputObjects();
50   virtual void Init() {}
51   virtual void LocalInit() {Init();}
52   virtual void Exec(Option_t *option);
53   virtual void Terminate(Option_t *option);
54   virtual void SetDebugLevel(Int_t level) {fDebug = level;}
55   void SetInputList(TList* inputList) {fInputList = inputList;}
56   void SetInputVertex(TObjString* vtxString) {fVertexString = vtxString;}
57   void SetOutputList(TList* outputList) {fOutputList = outputList;}
58   void CountESDHits();
59   void CalculateValues(TString type);
60   void SetBounds();
61   void MergeEvent(TH2D *hMultTrVtxFull);
62   
63   void ProcessPrimary();
64   
65   TList* GetOutputList() {return fOutputList;}
66    
67  private:
68   
69   Int_t         fDebug;        //  Debug flag
70   TList*        fOutputList;
71   TList*        fInputList;
72   TList*        fInternalList;
73   TObjString*   fVertexString;
74   Bool_t        fStandalone;
75  
76   Int_t   fEvent;
77   Int_t   fnBinsX;
78   Float_t fXmin;
79   Float_t fXmax;
80   Int_t   fnBinsY;
81   Float_t fYmin;
82   Float_t fYmax;
83
84   TCanvas *c;
85
86   Double_t debug0;
87   Double_t debug1;
88
89   ClassDef(AliFMDAnalysisTaskBFCorrelation, 0); // Analysis task for FMD analysis
90 };
91  
92 #endif
93 // Local Variables:
94 //   mode: C++ 
95 // End: