]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowTasks/AliAnalysisTaskCumulants.h
move some more tasks to TaskSE and add some setters
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / AliAnalysisTaskCumulants.h
1 /* 
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. 
3  * See cxx source for full Copyright notice 
4  * $Id$ 
5  */
6
7 /**************************************
8  * analysis task for cumulant method  * 
9  *                                    * 
10  * authors: Naomi van der Kolk        *
11  *           (kolk@nikhef.nl)         *  
12  *          Raimond Snellings         *
13  *           (snelling@nikhef.nl)     * 
14  *          Ante Bilandzic            *
15  *           (anteb@nikhef.nl)        * 
16  * ***********************************/
17
18 #ifndef ALIANALYSISTASKCUMULANTS_H
19 #define ALIANALYSISTASKCUMULANTS_H
20
21 #include "TString.h"
22 #include "AliAnalysisTaskSE.h"
23
24 class TList;
25 class AliFlowEventSimple;
26 class AliFlowAnalysisWithCumulants;
27
28 //================================================================================================================
29
30 class AliAnalysisTaskCumulants : public AliAnalysisTaskSE{
31  public:
32   AliAnalysisTaskCumulants();
33   AliAnalysisTaskCumulants(const char *name, Bool_t useWeights=kFALSE);
34   virtual ~AliAnalysisTaskCumulants(){}; 
35   
36   virtual void UserCreateOutputObjects();
37   virtual void UserExec(Option_t *option);
38   virtual void Terminate(Option_t *);
39   
40   void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;};
41   Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;};
42   void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;};
43   Bool_t GetUsePtWeights() const {return this->fUsePtWeights;};
44   void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;};
45   Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;};
46  
47  private:
48   AliAnalysisTaskCumulants(const AliAnalysisTaskCumulants& aatc);
49   AliAnalysisTaskCumulants& operator=(const AliAnalysisTaskCumulants& aatc);
50
51   AliFlowEventSimple *fEvent;         // the input event
52   AliFlowAnalysisWithCumulants *fGFC; // Generating Function Cumulant object
53   TList *fListHistos;                 // collection of output 
54
55   Bool_t fUseWeights;                 // use any weights
56   Bool_t fUsePhiWeights;              // use phi weights
57   Bool_t fUsePtWeights;               // use pt weights
58   Bool_t fUseEtaWeights;              // use eta weights  
59   TList *fListWeights;                // list with weights
60            
61   ClassDef(AliAnalysisTaskCumulants, 1); 
62 };
63
64 //================================================================================================================
65
66 #endif
67
68
69
70
71
72
73
74
75
76
77