AliPhysics  5364b50 (5364b50)
AliAnalysisTaskFlowEvent.h
Go to the documentation of this file.
1 // AliAnalysisTaskFlowEvent:
3 // analysis task to fill the flow event
4 // and make it available to the flow analysis methods.
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 #include "AliFlowTrackSimple.h"
15 
16 class AliCFManager;
17 class AliFlowEventCuts;
18 class AliFlowTrackCuts;
20 class AliFlowEvent;
21 class TList;
22 class TF1;
23 class TRandom3;
24 class AliAnalysisTaskSE;
25 class TString;
26 class AliESDpid;
27 
29  public:
31  AliAnalysisTaskFlowEvent(const char *name, TString RPtype = "", Bool_t QAon = kFALSE, UInt_t seed=666, Bool_t bCandidates=kFALSE);
32  virtual ~AliAnalysisTaskFlowEvent();
33 
34  virtual void UserCreateOutputObjects();
35  virtual void UserExec(Option_t *option);
36  virtual void Terminate(Option_t *);
37  virtual void NotifyRun();
38 
39  void SetAnalysisType(TString type) { this->fAnalysisType = type; }
40  TString GetAnalysisType() const { return this->fAnalysisType; }
41 
42  void SetRPType(TString rptype) { this->fRPType = rptype; }
43  TString GetRPType() const { return this->fRPType; }
44 
45  void SetMinMult(Int_t multmin) {this->fMinMult = multmin; }
46  Int_t GetMinMult() const {return this->fMinMult; }
47  void SetMaxMult(Int_t multmax) {this->fMaxMult = multmax; }
48  Int_t GetMaxMult() const {return this->fMaxMult; }
49 
50  void SetSubeventEtaRange(Double_t minA, Double_t maxA, Double_t minB, Double_t maxB)
51  {this->fMinA = minA; this->fMaxA = maxA; this->fMinB = minB; this->fMaxB = maxB; }
52  Double_t GetMinA() const {return this->fMinA;}
53  Double_t GetMaxA() const {return this->fMaxA;}
54  Double_t GetMinB() const {return this->fMinB;}
55  Double_t GetMaxB() const {return this->fMaxB;}
56 
57  void DefineDeadZone( Double_t etaMin, Double_t etaMax, Double_t phiMin, Double_t phiMax )
58  {this->fExcludedEtaMin = etaMin; this->fExcludedEtaMax = etaMax;
59  this->fExcludedPhiMin = phiMin; this->fExcludedPhiMax = phiMax; }
60 
61  void SetCutsEvent(AliFlowEventCuts* cutsEvent) {fCutsEvent=cutsEvent;}
63  void SetCutsRP(AliFlowTrackCuts* cutsRP) {fCutContainer->AddAt(cutsRP,0); fCutsRP=cutsRP; cutsRP->SetPOItype(0); }
64  AliFlowTrackCuts* GetCutsRP() const {return fCutsRP;} //to be reimplemented
65  void SetCutsPOI(AliFlowTrackCuts* cutsPOI) {fCutContainer->AddAt(cutsPOI,1); fCutsPOI=cutsPOI; cutsPOI->SetPOItype(1); }
66  AliFlowTrackCuts* GetCutsPOI() const {return fCutsPOI;} //to be reimplemented
67 
68  void SetCFManager1(AliCFManager* cfmgr) {this->fCFManager1 = cfmgr; }
69  AliCFManager* GetCFManager1() const {return this->fCFManager1; }
70  void SetCFManager2(AliCFManager* cfmgr) {this->fCFManager2 = cfmgr; }
71  AliCFManager* GetCFManager2() const {return this->fCFManager2; }
72  TList* GetQAList() const {return fQAList; }
73  void SetQAOn(Bool_t kt) {fQAon = kt; }
74  Bool_t GetQAOn() const {return fQAon; }
75 
77 
79 
80 
81  // setters for common constants
82  void SetNbinsMult( Int_t i ) { fNbinsMult = i; }
83  void SetNbinsPt( Int_t i ) { fNbinsPt = i; }
84  void SetNbinsPhi( Int_t i ) { fNbinsPhi = i; }
85  void SetNbinsEta( Int_t i ) { fNbinsEta = i; }
86  void SetNbinsQ( Int_t i ) { fNbinsQ = i; }
87  void SetNbinsMass( Int_t i ) { fNbinsMass = i; }
88 
89  void SetMultMin( Double_t i ) { fMultMin = i; }
90  void SetMultMax( Double_t i ) { fMultMax = i; }
91  void SetPtMin( Double_t i ) { fPtMin = i; }
92  void SetPtMax( Double_t i ) { fPtMax = i; }
93  void SetPhiMin( Double_t i ) { fPhiMin = i; }
94  void SetPhiMax( Double_t i ) { fPhiMax = i; }
95  void SetEtaMin( Double_t i ) { fEtaMin = i; }
96  void SetEtaMax( Double_t i ) { fEtaMax = i; }
97  void SetQMin( Double_t i ) { fQMin = i; }
98  void SetQMax( Double_t i ) { fQMax = i; }
99  void SetMassMin( Double_t i ) { fMassMin = i; }
100  void SetMassMax( Double_t i ) { fMassMax = i; }
103  // end setters common constants
104 
105  // setters for adding by hand flow values (afterburner)
108  void SetPtDifferentialV2( TF1 *gPtV2) {
109  fDifferentialV2 = gPtV2;}
110  void SetFlow( Double_t v1, Double_t v2, Double_t v3=0.0, Double_t v4=0.0, Double_t v5=0.0)
111  {fV1=v1;fV2=v2;fV3=v3;fV4=v4;fV5=v5;}
112  // end setters afterburner
113 
114  private:
115 
118 
119  // TFile* fOutputFile; // temporary output file for testing
120  // AliESDEvent* fESD; // ESD object
121  // AliAODEvent* fAOD; // AOD object
122  TString fAnalysisType; // can be MC, ESD or AOD
123  TString fRPType; // can be Global or Tracklet or FMD
124  AliCFManager* fCFManager1; // correction framework manager
125  AliCFManager* fCFManager2; // correction framework manager
127  AliFlowTrackCuts* fCutsRP; //cuts for RPs
128  AliFlowTrackCuts* fCutsPOI; //cuts for POIs
129  TList* fCutContainer; //contains the cut objects
130  TList* fQAList; // QA histogram list
131  Int_t fMinMult; // Minimum multiplicity from tracks selected using CORRFW
132  Int_t fMaxMult; // Maximum multiplicity from tracks selected using CORRFW
133  Double_t fMinA; // Minimum of eta range for subevent A
134  Double_t fMaxA; // Maximum of eta range for subevent A
135  Double_t fMinB; // Minimum of eta range for subevent B
136  Double_t fMaxB; // Maximum of eta range for subevent B
137 
138  Bool_t fQAon; // flag to set the filling of the QA hostograms
139  Bool_t fLoadCandidates; // true if reciving candidates collection
141 
142  // setters for common constants
143  //histogram sizes
144  Int_t fNbinsMult; // histogram size
145  Int_t fNbinsPt; // histogram size
146  Int_t fNbinsPhi; // histogram size
147  Int_t fNbinsEta; // histogram size
148  Int_t fNbinsQ; // histogram size
149  Int_t fNbinsMass; // histogram size
150 
151  // Histograms limits
152  Double_t fMultMin; // histogram limit
153  Double_t fMultMax; // histogram limit
154  Double_t fPtMin; // histogram limit
155  Double_t fPtMax; // histogram limit
156  Double_t fPhiMin; // histogram limit
157  Double_t fPhiMax; // histogram limit
158  Double_t fEtaMin; // histogram limit
159  Double_t fEtaMax; // histogram limit
160  Double_t fQMin; // histogram limit
161  Double_t fQMax; // histogram limit
162  Double_t fMassMin; // histogram limit
163  Double_t fMassMax; // histogram limit
164  Double_t fHistWeightvsPhiMin; //histogram limit
165  Double_t fHistWeightvsPhiMax; //histogram limit
166  // end common constants
167 
168  // Excluding a range
169  Double_t fExcludedEtaMin; // excluded region limit
170  Double_t fExcludedEtaMax; // excluded region limit
171  Double_t fExcludedPhiMin; // excluded region limit
172  Double_t fExcludedPhiMax; // excluded region limit
173  // End of excluding a range
174 
175  // values afterburner
176  Bool_t fAfterburnerOn; // do we afterburn?
177  Int_t fNonFlowNumberOfTrackClones; // number of times to clone the particles (nonflow)
178  Double_t fV1; // Add Flow. Must be in range [0,0.5].
179  Double_t fV2; // Add Flow. Must be in range [0,0.5].
180  Double_t fV3; // Add Flow. Must be in range [0,0.5].
181  Double_t fV4; // Add Flow. Must be in range [0,0.5].
182  Double_t fV5; // Add Flow. Must be in range [0,0.5].
183  TF1 *fDifferentialV2; // pt-differential v2
184 
185  AliFlowEvent* fFlowEvent; //flowevent
186  Bool_t fShuffleTracks; //serve the tracks shuffled
187 
188  TRandom3* fMyTRandom3; // TRandom3 generator
189  // end afterburner
190 
191  ClassDef(AliAnalysisTaskFlowEvent, 1); // example of analysis
192 };
193 
194 #endif
195 
virtual void UserExec(Option_t *option)
double Double_t
Definition: External.C:58
void SetFlow(Double_t v1, Double_t v2, Double_t v3=0.0, Double_t v4=0.0, Double_t v5=0.0)
AliFlowTrackCuts * GetCutsRP() const
void SetPassMCeventToCutsObject(Bool_t passMC)
AliAnalysisTaskFlowEvent & operator=(const AliAnalysisTaskFlowEvent &aAnalysisTask)
void SetCutsPOI(AliFlowTrackCuts *cutsPOI)
virtual void Terminate(Option_t *)
AliCFManager * GetCFManager2() const
void SetCutsRP(AliFlowTrackCuts *cutsRP)
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
AliFlowTrackCuts * GetCutsPOI() const
void SetAfterburnerOn(Bool_t b=kTRUE)
void SetCutsEvent(AliFlowEventCuts *cutsEvent)
AliFlowEventCuts * GetCutsEvent() const
void SetSubeventEtaRange(Double_t minA, Double_t maxA, Double_t minB, Double_t maxB)
AliCFManager * GetCFManager1() const
void SetCFManager1(AliCFManager *cfmgr)
const char Option_t
Definition: External.C:48
void SetCFManager2(AliCFManager *cfmgr)
bool Bool_t
Definition: External.C:53
void DefineDeadZone(Double_t etaMin, Double_t etaMax, Double_t phiMin, Double_t phiMax)