]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.h
settable rang phi histogram + few other fixes
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / AliAnalysisTaskFlowEvent.h
1 /////////////////////////////////////////////////////
2 // AliAnalysisTaskFlowEvent:
3 // analysis task to fill the flow event 
4 // and make it available to the flow analysis methods.
5 //////////////////////////////////////////////////////
6
7 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
9 /* $Id: $ */
10
11 #ifndef AliAnalysisTaskFlowEvent_H
12 #define AliAnalysisTaskFlowEvent_H
13
14 class AliCFManager;
15 class AliFlowEventCuts;
16 class AliFlowTrackCuts;
17 class AliFlowEventSimpleMaker;
18 class AliFlowEvent;
19 class TList;
20 class TRandom3;
21 class AliAnalysisTaskSE;
22 class TString;
23 class AliESDpid;
24
25 class AliAnalysisTaskFlowEvent : public AliAnalysisTaskSE {
26  public:
27   AliAnalysisTaskFlowEvent();
28   AliAnalysisTaskFlowEvent(const char *name, TString RPtype, Bool_t QAon, UInt_t seed=666, Bool_t bCandidates=kFALSE);
29   virtual ~AliAnalysisTaskFlowEvent();
30   
31   virtual void   UserCreateOutputObjects();
32   virtual void   UserExec(Option_t *option);
33   virtual void   Terminate(Option_t *);
34   virtual void   NotifyRun();
35
36   void    SetAnalysisType(TString type) { this->fAnalysisType = type; }
37   TString GetAnalysisType() const       { return this->fAnalysisType; }
38
39   void    SetRPType(TString rptype) { this->fRPType = rptype; }
40   TString GetRPType() const         { return this->fRPType; }
41
42   void    SetMinMult(Int_t multmin)    {this->fMinMult = multmin; }
43   Int_t   GetMinMult() const           {return this->fMinMult; }
44   void    SetMaxMult(Int_t multmax)    {this->fMaxMult = multmax; }
45   Int_t   GetMaxMult() const           {return this->fMaxMult; }
46
47   void SetSubeventEtaRange(Double_t minA, Double_t maxA, Double_t minB, Double_t maxB)
48     {this->fMinA = minA; this->fMaxA = maxA; this->fMinB = minB; this->fMaxB = maxB; }
49   Double_t GetMinA() const {return this->fMinA;}
50   Double_t GetMaxA() const {return this->fMaxA;}
51   Double_t GetMinB() const {return this->fMinB;}
52   Double_t GetMaxB() const {return this->fMaxB;}
53   
54   void DefineDeadZone( Double_t etaMin, Double_t etaMax, Double_t phiMin, Double_t phiMax )
55   {this->fExcludedEtaMin = etaMin; this->fExcludedEtaMax = etaMax; 
56     this->fExcludedPhiMin = phiMin; this->fExcludedPhiMax = phiMax; }
57
58   void          SetCutsEvent(AliFlowEventCuts* cutsEvent) {fCutsEvent=cutsEvent;}
59   AliFlowEventCuts* GetCutsEvent() const {return fCutsEvent;}
60   void          SetCutsRP(AliFlowTrackCuts* cutsRP) {fCutsRP=cutsRP;}
61   AliFlowTrackCuts* GetCutsRP() const {return fCutsRP;}
62   void          SetCutsPOI(AliFlowTrackCuts* cutsPOI) {fCutsPOI=cutsPOI;}
63   AliFlowTrackCuts* GetCutsPOI() const {return fCutsPOI;}
64
65   void          SetCFManager1(AliCFManager* cfmgr) {this->fCFManager1 = cfmgr; } 
66   AliCFManager* GetCFManager1()           {return this->fCFManager1; }
67   void          SetCFManager2(AliCFManager* cfmgr) {this->fCFManager2 = cfmgr; } 
68   AliCFManager* GetCFManager2()           {return this->fCFManager2; }
69   TList*        GetQAList()              {return fQAList; }
70   void          SetQAOn(Bool_t kt)        {fQAon = kt; }
71   Bool_t        GetQAOn()                 {return fQAon; }
72
73   // setters for common constants
74   void SetNbinsMult( Int_t i ) { fNbinsMult = i; }
75   void SetNbinsPt( Int_t i )   { fNbinsPt = i; }
76   void SetNbinsPhi( Int_t i )  { fNbinsPhi = i; }
77   void SetNbinsEta( Int_t i )  { fNbinsEta = i; }
78   void SetNbinsQ( Int_t i )    { fNbinsQ = i; }
79    
80   void SetMultMin( Double_t i ) { fMultMin = i; }
81   void SetMultMax( Double_t i ) { fMultMax = i; }
82   void SetPtMin( Double_t i )   { fPtMin = i; }
83   void SetPtMax( Double_t i )   { fPtMax = i; }
84   void SetPhiMin( Double_t i )  { fPhiMin = i; }
85   void SetPhiMax( Double_t i )  { fPhiMax = i; }
86   void SetEtaMin( Double_t i )  { fEtaMin = i; }
87   void SetEtaMax( Double_t i )  { fEtaMax = i; }
88   void SetQMin( Double_t i )    { fQMin = i; }
89   void SetQMax( Double_t i )    { fQMax = i; }
90   void SetHistWeightvsPhiMin( Double_t i ) {fHistWeightvsPhiMin=i;}
91   void SetHistWeightvsPhiMax( Double_t i ) {fHistWeightvsPhiMax=i;}
92   // end setters common constants
93
94   // setters for adding by hand flow values (afterburner)
95   void SetAfterburnerOn(Bool_t b=kTRUE) {fAfterburnerOn=b;}
96   void SetNonFlowNumberOfTrackClones(Int_t n) {fNonFlowNumberOfTrackClones=n;}
97   void SetFlow( Double_t v1, Double_t v2, Double_t v3=0.0, Double_t v4=0.0, Double_t v5=0.0)
98                {fV1=v1;fV2=v2;fV3=v3;fV4=v4;fV5=v5;}
99   // end setters afterburner
100
101  private:
102
103   AliAnalysisTaskFlowEvent(const AliAnalysisTaskFlowEvent& aAnalysisTask);
104   AliAnalysisTaskFlowEvent& operator=(const AliAnalysisTaskFlowEvent& aAnalysisTask); 
105
106   //  TFile*        fOutputFile;    // temporary output file for testing
107   //  AliESDEvent*  fESD;           // ESD object
108   //  AliAODEvent*  fAOD;           // AOD object
109   TString       fAnalysisType;      // can be MC, ESD or AOD
110   TString       fRPType;            // can be Global or Tracklet or FMD
111   AliCFManager* fCFManager1;        // correction framework manager
112   AliCFManager* fCFManager2;        // correction framework manager
113   AliFlowEventCuts* fCutsEvent;     //event cuts
114   AliFlowTrackCuts* fCutsRP;        //cuts for RPs
115   AliFlowTrackCuts* fCutsPOI;       //cuts for POIs
116   TList*        fQAList;             // QA histogram list
117   Int_t         fMinMult;           // Minimum multiplicity from tracks selected using CORRFW
118   Int_t         fMaxMult;           // Maximum multiplicity from tracks selected using CORRFW 
119   Double_t      fMinA;              // Minimum of eta range for subevent A
120   Double_t      fMaxA;              // Maximum of eta range for subevent A
121   Double_t      fMinB;              // Minimum of eta range for subevent B
122   Double_t      fMaxB;              // Maximum of eta range for subevent B
123
124   Bool_t fQAon;                       // flag to set the filling of the QA hostograms
125   Bool_t fLoadCandidates;           // true if reciving candidates collection
126
127   // setters for common constants
128   //histogram sizes
129   Int_t  fNbinsMult; // histogram size
130   Int_t  fNbinsPt;   // histogram size
131   Int_t  fNbinsPhi;  // histogram size
132   Int_t  fNbinsEta;  // histogram size
133   Int_t  fNbinsQ;    // histogram size
134  
135   // Histograms limits
136   Double_t  fMultMin;  // histogram limit 
137   Double_t  fMultMax;  // histogram limit
138   Double_t  fPtMin;    // histogram limit
139   Double_t  fPtMax;    // histogram limit
140   Double_t  fPhiMin;   // histogram limit
141   Double_t  fPhiMax;   // histogram limit
142   Double_t  fEtaMin;   // histogram limit
143   Double_t  fEtaMax;   // histogram limit
144   Double_t  fQMin;     // histogram limit
145   Double_t  fQMax;     // histogram limit
146   Double_t fHistWeightvsPhiMin; //histogram limit
147   Double_t fHistWeightvsPhiMax; //histogram limit
148   // end common constants
149
150   // Excluding a range
151   Double_t  fExcludedEtaMin;  // excluded region limit 
152   Double_t  fExcludedEtaMax;  // excluded region limit 
153   Double_t  fExcludedPhiMin;  // excluded region limit 
154   Double_t  fExcludedPhiMax;  // excluded region limit 
155   // End of excluding a range
156
157   // values afterburner
158   Bool_t    fAfterburnerOn;              // do we afterburn?
159   Int_t     fNonFlowNumberOfTrackClones; // number of times to clone the particles (nonflow) 
160   Double_t  fV1;        // Add Flow. Must be in range [0,0.5].
161   Double_t  fV2;        // Add Flow. Must be in range [0,0.5].
162   Double_t  fV3;        // Add Flow. Must be in range [0,0.5].
163   Double_t  fV4;        // Add Flow. Must be in range [0,0.5].
164   Double_t  fV5;        // Add Flow. Must be in range [0,0.5].
165
166   AliFlowEvent* fFlowEvent; //flowevent
167     
168   TRandom3* fMyTRandom3;     // TRandom3 generator
169   // end afterburner
170   
171   ClassDef(AliAnalysisTaskFlowEvent, 1); // example of analysis
172 };
173
174 #endif
175