AliPhysics  d565ceb (d565ceb)
AliAnalysisTaskCMEV0PID.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 /* $Id: $ */
4 
6 // AliAnalysisTaskCMEV0PID:
7 // analysis task for ZDC gain Equalization
8 // and CME analysis for identified particles
9 // using VZERO (and ZDC) Detector
10 // Author: Rihan Haque (mhaque@cern.ch)
11 // and R Sultana
13 
14 #ifndef AliAnalysisTaskCMEV0PID_H
15 #define AliAnalysisTaskCMEV0PID_H
16 
17 #include "AliAnalysisTaskSE.h"
18 #include "TH1F.h"
19 #include "TH2F.h"
20 #include "TH3F.h"
21 #include "TH1D.h"
22 #include "TH2D.h"
23 #include "TList.h"
24 #include "TFile.h"
25 #include "TString.h"
26 #include "TProfile.h"
27 #include "TProfile2D.h"
28 
29 class AliVEvent;
30 class AliVVertex;
31 class AliESDEvent;
32 class AliAODEvent;
33 class AliPIDResponse;
34 class AliMultSelection;
35 class AliAnalysisUtils;
36 
37 
38 
39 
41 
42  public:
43 
45  AliAnalysisTaskCMEV0PID(const char *name);
46  virtual ~AliAnalysisTaskCMEV0PID();
47  virtual void UserCreateOutputObjects();
48  virtual void UserExec(Option_t * /*option*/);
49 
50  //User Defined Functions:
51  void SetFilterBit(Int_t b) {this->fFilterBit = b;}
52  void SetNSigmaCutTPC(Float_t b) {this->fNSigmaCut = b;}
53  void SetPtRangeMin(Float_t b) {this->fMinPtCut = b;}
54  void SetPtRangeMax(Float_t b) {this->fMaxPtCut = b;}
55  void SetEtaRangeMin(Float_t b) {this->fMinEtaCut = b;}
56  void SetEtaRangeMax(Float_t b) {this->fMaxEtaCut = b;}
57  void SetCollisionSystem(TString s) {this->sNucleiTP = s;}
58 
61  void SetFBEfficiencyList(TList *flist) {this->fListFBHijing = flist;}
63  void SetFBEfficiencyFilePath(TString path) {this->sPathOfMCFile = path;}
65  void SetListForNUACorr(TList *fl) {this->fListNUACorr = fl;}
66 
67 
68  protected:
69 
70 
71  private:
72 
73  AliVEvent *fVevent;
76  AliPIDResponse *fPIDResponse;
77  AliMultSelection *fMultSelection;
78  AliAnalysisUtils *fAnalysisUtil;
80  TFile *mfileFBHijing;
83 
84  //histograms:
91 
97 
99 
102 
109 
112 
127 
128 
129 
130 
132 
133  //-------- Arrays ----------
141 
144 
145 
146 
147  //CME Using Event plane method:
148  TProfile *fHist_Corr3p_EP_Norm_PN[2][3];
149  TProfile *fHist_Corr3p_EP_Norm_PP[2][3];
150  TProfile *fHist_Corr3p_EP_Norm_NN[2][3];
151  TProfile *fHist_Reso2n_EP_Norm_Det[2][3];
152 
153  //CME(EP) vs Refmult:
154  //TProfile *fHist_Corr3p_EP_Refm_PN[2][3]; //!
155  //TProfile *fHist_Corr3p_EP_Refm_PP[2][3]; //!
156  //TProfile *fHist_Corr3p_EP_Refm_NN[2][3]; //!
157  //TProfile *fHist_Reso2n_EP_Refm_Det[2][3]; //!
158 
159 
160 
161  // NUA histograms:
164 
165 
166 
168 
169  //--------- PileUp Functions -----------
171  Bool_t PileUpMultiVertex(const AliAODEvent* faod);
172  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
173 
174  //for NUA and gain corrections:
175  void GetNUACorrectionHist(Int_t run);
176 
177 
178 
179  //----------- other functions ----------
182  void SetupMCcorrectionMap(TString sMCfilePath);
184 
185 
186 
187 
188 
191  ClassDef(AliAnalysisTaskCMEV0PID,1)
192 
193 };
194 
195 #endif
AliAnalysisTaskCMEV0PID & operator=(const AliAnalysisTaskCMEV0PID &other)
TProfile * fHist_Corr3p_EP_Norm_NN[2][3]
Definition: External.C:260
Definition: External.C:236
AliAnalysisUtils * fAnalysisUtil
AliMultSelection * fMultSelection
PID response Handler.
void SetCentralityPercentileMax(Float_t b)
TH1F * fHistPtwithTPCNsigma[3]
last in the list
TCanvas * c
Definition: TestFitELoss.C:172
TH2F * fHistEtaPtAfter
Eta-Pt acceptance.
Bool_t CheckEventIsPileUp(AliAODEvent *faod)
AliPIDResponse * fPIDResponse
aod
Int_t GetCentralityScaled0to10(Float_t fCent)
int Int_t
Definition: External.C:63
TProfile * fHist_Corr3p_EP_Norm_PN[2][3]
5 centrality bin, read NUA from file
float Float_t
Definition: External.C:68
void SetPileUpCutParam(Float_t m, Float_t c)
TProfile * fHist_Reso2n_EP_Norm_Det[2][3]
Definition: External.C:252
Definition: External.C:212
TH3F * fHist3DEtaPhiVz_Neg_Run[3][5]
3 particle 5 centrality bin
TH2F * fHistTPCvsGlobalMultBefore
Eta-Pt acceptance.
void SetCentralityPercentileMin(Float_t b)
TList * fListHist
Event selection.
void SetFBEfficiencyList(TList *flist)
virtual void UserExec(Option_t *)
TH1F * fHistPileUpCount
Task input parameters FB / cut values etc.
Bool_t PileUpMultiVertex(const AliAODEvent *faod)
TH3D * fHCorrectNUAneg[5]
5 centrality bin, read NUA from file
double GetWDist(const AliVVertex *v0, const AliVVertex *v1)
TH1D * fFB_Efficiency_Cent[10]
3 particle 5 centrality bin
void SetFBEfficiencyFilePath(TString path)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
void SetupMCcorrectionMap(TString sMCfilePath)
TProfile * fHist_Corr3p_EP_Norm_PP[2][3]