AliPhysics  58f3d52 (58f3d52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskCMEV0.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 
5 #ifndef AliAnalysisTaskCMEV0_H
6 #define AliAnalysisTaskCMEV0_H
7 
9 // AliAnalysisTaskCMEV0:
10 // analysis task for ZDC gain Equalization
11 // and CME analysis using VZERO Detector
12 // Author: Rihan Haque (mhaque@cern.ch)
14 
15 #include "TH1.h"
16 #include "TH2.h"
17 #include "TH3.h"
18 #include "TProfile2D.h"
19 #include "TProfile.h"
20 #include "TString.h"
21 //#include "TRandom3.h"
22 #include "AliAnalysisTaskSE.h"
23 
24 
25 class AliAODEvent;
26 class AliAODVZERO;
27 class AliVVertex;
28 class AliFlowEventSimple;
29 class AliMultSelection;
30 class AliAnalysisUtils;
31 class TList;
32 
34 
35 public:
36 
38 //AliAnalysisTaskCMEV0(const char *name);
39  AliAnalysisTaskCMEV0(const TString name);
40  virtual ~AliAnalysisTaskCMEV0();
41 
42  virtual void UserCreateOutputObjects();
43  virtual void UserExec(Option_t *option);
44  virtual void Terminate(Option_t *);
45 
46 
47  void SetInputListNUA(TList *finputNUA) {this->fListNUACorr = finputNUA;}
48  void SetGainCorrZDNP(TList *finputZDN) {this->fListZDNCorr = finputZDN;}
49  void SetFBEfficiencyList(TList *fFBlist) {this->fListFBHijing = fFBlist;}
50  void SetRejectPileUp(Bool_t pileup) {this->fRejectPileUp = pileup;}
51  void SetRejectPileUpTight(Bool_t pileupt8) {this->fRejectPileUpTight = pileupt8;}
52  void SetStoreTPCQnAvg(Bool_t bstoreTPCQn) {this->bFillAvgTPCQn = bstoreTPCQn;}
53  void SetFillNUAHist(Bool_t bfillNUAhist) {this->bFillEtaPhiNUA = bfillNUAhist;}
54  void SetApplyNUACorr(Bool_t fUseNUACorr) {this->bApplyNUACorr = fUseNUACorr;}
55  void SetApplyZDCCorr(Bool_t fUseZDCCorr) {this->bApplyZDCCorr = fUseZDCCorr;}
56  void SetDataSet(TString fdataset) {this->sDataSet = fdataset;}
57  void SetAnalysisSet(TString fanalysisSet) {this->sAnalysisSet = fanalysisSet;}
58  void SetCentEstimator(TString centEstim) {this->sCentEstimator = centEstim;}
59  void SetHarmonicN(Int_t harmonic1) {this->fHarmonicN = harmonic1;}
60  void SetHarmonicM(Int_t harmonic2) {this->fHarmonicM = harmonic2;}
61  void SetPsiHarmonic(Int_t nforpsi) {this->fHarmonicPsi = nforpsi;}
62  void SetApplyNUAinEP(Bool_t bApplyNUAEP) {this->bApplyNUAforEP = bApplyNUAEP;}
63  void SetSourceFileNUA(TString sfilenua) {this->sFileNUA = sfilenua;}
64  void SetFillZDNCalHist(Bool_t bfillZDC) {this->bFillZDCinfo = bfillZDC;}
65  void SetSkipNestedLoop(Bool_t bskipNest) {this->bSkipNestedTrk = bskipNest;}
66  void SetMCEffiDimension(TString mcDimen) {this->sMCdimension = mcDimen;}
67  void SetRemoveNegTrkRndm(Bool_t remRndm) {this->bRemNegTrkRndm = remRndm;}
68  void SetApplyV0MCorr(Bool_t bV0Mcorr) {this->bApplyV0MCorr = bV0Mcorr;}
69  void SetInputFileforV0M(TString finputV0M) {this->fFileV0MCorr = finputV0M;}
70 
71 
72 private:
73 
74  AliAnalysisTaskCMEV0(const AliAnalysisTaskCMEV0& aAnalysisTask);
76 
79  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
80 
81  void OpenInfoCalbration(Int_t run, Float_t fHarmonic);
82  void GetV0QvectAndMult(const AliAODVZERO *aodV0,Float_t fHarmonic,Double_t& Qxan,Double_t& Qyan,Double_t& sumMa,Double_t& Qxcn,Double_t& Qycn,Double_t& sumMc);
83  void DefineHistograms();
84  void GetNUACorrectionHist(Int_t run, TString sfileNUA);
85  void GetZDCCorrectionHist(Int_t run);
86  void GetV0MCorrectionHist(Int_t run);
87 
88  void InitializeRunArray(TString sPeriod);
90 
91 
93  AliMultSelection* fMultSelection;
94  AliAnalysisUtils* fAnalysisUtil;
95 
98  TList* fListFBHijing; // Hijing Efficiency list
99  TList* fListNUACorr; // NUA Correction List
100  TList* fListZDNCorr; // ZDC gain Correction Wgts
101 
113 
114  TString sDataSet; // Dataset: 2010, 2011, or 2015.
115  TString sAnalysisSet; // Values: recenter1,recenter2,analysis1
116  TString sCentEstimator; // Centrality Estimator
117  TString sFileNUA; // NUA source file.
118  TString sMCdimension; // Dimention for MC effi Correction
120 
121 
127  Int_t fHarmonicN; // Harmonic n
128  Int_t fHarmonicM; // Harmonic m
129  Int_t fHarmonicPsi; // Harmonic psi
130 
133  TH1F *fPileUpCount;
135 
136  //runtime v0 calibration info histograms:
146  //---------------------------------
147 
148  //--- profiles for TPC Q-vector recenter. (They are filled, not read)
157 
166 
170 
171 
176 
177  TProfile2D *fHEnergyZNCvsCentRun;
178  TProfile2D *fHEnergyZNAvsCentRun;
179  TProfile2D *fHEnergyZPCvsCentRun;
180  TProfile2D *fHEnergyZPAvsCentRun;
181 
184 
187 
189 
191 
192  TProfile2D *fV0AQnxVsCentRun;
193  TProfile2D *fV0AQnyVsCentRun;
194  TProfile2D *fV0CQnxVsCentRun;
195  TProfile2D *fV0CQnyVsCentRun;
196  TProfile2D *fTPCQnxVsCentRun;
197  TProfile2D *fTPCQnyVsCentRun;
198 
201  TFile *fileNUApos;
202  TFile *fileNUAneg;
203 
204  TProfile2D *fAvgMultCentRun;
205  TProfile2D *fAvgWgtMultCentRun;
206  TProfile2D *fAvgPOIposCentRun;
207  TProfile2D *fAvgPOInegCentRun;
208  TProfile2D *fAvgPOIPPCentRun;
209  TProfile2D *fAvgPOINNCentRun;
210  TProfile2D *fAvgPOIOSCentRun;
211 
212  TProfile2D *fV0MultChVsRun;
213 
217 
221 
222  TProfile2D *fRejectRatioVsCR;
223 
226 
227 
228 
229 
230  //TRandom3 fRand; //!
231 
232 
233 
234 
235 
236 
237 
238 
239 
240 
241 
242 
243  // [ Arrays of Histrograms here: ]
246 
247 
250 
252 
255 
256 
257  //CME using scalar product method:
258  TProfile *fHist_Corr3p_SP_Norm_PN[2][3];
259  TProfile *fHist_Corr3p_SP_Norm_PP[2][3];
260  TProfile *fHist_Corr3p_SP_Norm_NN[2][3];
261  TProfile *fHist_Reso2n_SP_Norm_Det[2][3];
262 
263  //CME Using Event plane method:
264  TProfile *fHist_Corr3p_EP_Norm_PN[2][3];
265  TProfile *fHist_Corr3p_EP_Norm_PP[2][3];
266  TProfile *fHist_Corr3p_EP_Norm_NN[2][3];
267  TProfile *fHist_Reso2n_EP_Norm_Det[2][3];
268 
269  TProfile2D *fHist_Corr3p_vsRun_EP_PN[2]; // 0=V0A,1=V0C
270  TProfile2D *fHist_Corr3p_vsRun_EP_PP[2]; //
271  TProfile2D *fHist_Corr3p_vsRun_EP_NN[2]; //
272 
273  //CME ZDN correlator: Spectator neutron
274  TProfile2D *fHist_Corr3p_ZDN_SP_PN[3];
275  TProfile2D *fHist_Corr3p_ZDN_SP_PP[3];
276  TProfile2D *fHist_Corr3p_ZDN_SP_NN[3];
277  TProfile2D *fHist_Reso2n_ZDN_SP_Det[3];
278 
279  //CME pT differential Histograms:
280 
281  //(pT_A + pT_B)/2.0
288 
289  // |(pT_A - pT_B)|
296 
297  // |(Eta_A - Eta_B)|
304 
305 
306  //QA: pos/neg ratio:
309 
310  //QA eta dependence:
314 
318 
319  //--- profiles for TPC <Q> (They are filled)
320  TProfile2D *fHCos1nPosChEtaVz[4];
321  TProfile2D *fHCos2nPosChEtaVz[4];
322  TProfile2D *fHCos3nPosChEtaVz[4];
323  TProfile2D *fHCos4nPosChEtaVz[4];
324  TProfile2D *fHSin1nPosChEtaVz[4];
325  TProfile2D *fHSin2nPosChEtaVz[4];
326  TProfile2D *fHSin3nPosChEtaVz[4];
327  TProfile2D *fHSin4nPosChEtaVz[4];
328 
329  TProfile2D *fHCos1nNegChEtaVz[4];
330  TProfile2D *fHCos2nNegChEtaVz[4];
331  TProfile2D *fHCos3nNegChEtaVz[4];
332  TProfile2D *fHCos4nNegChEtaVz[4];
333  TProfile2D *fHSin1nNegChEtaVz[4];
334  TProfile2D *fHSin2nNegChEtaVz[4];
335  TProfile2D *fHSin3nNegChEtaVz[4];
336  TProfile2D *fHSin4nNegChEtaVz[4];
337 
338  TProfile2D *fHCos2nDWPosChEtaVz[4];
339  TProfile2D *fHSin2nDWPosChEtaVz[4];
340  TProfile2D *fHCos2nDWNegChEtaVz[4];
341  TProfile2D *fHSin2nDWNegChEtaVz[4];
342 
343  //Store Non-isotropic terms:
344  TProfile2D *fHist_NonIso_SP_PP_Mag0[2];
345  TProfile2D *fHist_NonIso_SP_NN_Mag0[2];
346  TProfile2D *fHist_NonIso_SP_PP_Mag1[2];
347  TProfile2D *fHist_NonIso_SP_NN_Mag1[2];
348 
349 
350  //2particle correlation:
351  TProfile2D *fHist_Corr2p_EP_Norm_PN[2];
352  TProfile2D *fHist_Corr2p_EP_Norm_PP[2];
353  TProfile2D *fHist_Corr2p_EP_Norm_NN[2];
354 
355 
356 
357  ClassDef(AliAnalysisTaskCMEV0, 1); //
358 };
359 
360 #endif
361 
virtual void Terminate(Option_t *)
void SetFillZDNCalHist(Bool_t bfillZDC)
Bool_t CheckEventIsPileUp(AliAODEvent *faod)
TProfile2D * fHist_Corr3p_ZDN_SP_NN[3]
void SetPsiHarmonic(Int_t nforpsi)
TProfile * fHist_Corr3p_EtaDiff_EP_V0C_NN[2][6]
void SetCentEstimator(TString centEstim)
void SetApplyNUAinEP(Bool_t bApplyNUAEP)
TProfile * fHist_Reso2n_EP_Norm_Det[2][3]
TProfile2D * fHCos1nNegChEtaNegVzPos
TProfile * fHist_Corr3p_EtaDiff_EP_V0A_NN[2][6]
double Double_t
Definition: External.C:58
Definition: External.C:260
TProfile2D * fHist_Corr3p_ZDN_SP_PP[3]
Norm = 10 centrality bins along X.
void SetDataSet(TString fdataset)
TProfile2D * fHSin3nPosChEtaVz[4]
TH1D * fQynsV0C
sigma Qx2 V0C
Int_t fOldRunNum
number of total run
Definition: External.C:236
Bool_t PileUpMultiVertex(const AliAODEvent *faod)
TProfile * fHist_Corr3p_pTSum_EP_V0A_PP[2][6]
void SetApplyV0MCorr(Bool_t bV0Mcorr)
TProfile2D * fHCos4nPosChEtaVz[4]
TH1D * fQxnmV0A
profile from V0 multiplicity
TList * fListHistos
Event selection.
TProfile2D * fHist_Corr2p_EP_Norm_NN[2]
TProfile2D * fHSin1nNegChEtaPosVzPos
TProfile2D * fHCos1nNegChEtaPosVzNeg
AliAnalysisUtils * fAnalysisUtil
MultSelection (RUN2 centrality estimator)
void SetApplyZDCCorr(Bool_t fUseZDCCorr)
TProfile * fHist_Corr3p_QAEta_SP_V0C_PP[2]
Pos and Neg Mag field.
TProfile2D * fHCos2nNegChEtaVz[4]
TProfile * fHist_Corr3p_pTDiff_EP_V0C_PN[2][6]
TProfile2D * fHSin1nNegChEtaVz[4]
TProfile2D * fHSin1nPosChEtaNegVzPos
TList * fListFBHijing
collection of Calib Histos
TProfile * fHist_Corr3p_QAEta_SP_V0A_PP[2]
Pos and Neg Mag field.
Int_t GetCurrentRunIndex(Int_t run)
TProfile * fHist_Corr3p_EP_Norm_PP[2][3]
TProfile2D * fHSin3nNegChEtaVz[4]
TProfile2D * fHSin2nPosChEtaVz[4]
TList * fListCalibs
collection of output
TProfile * fHist_Corr3p_EP_Norm_PN[2][3]
TProfile2D * fHSin1nNegChEtaPosVzNeg
TH3F * fFB_Efficiency_Neg[10]
3d correction Map
TProfile * fHist_Corr3p_pTDiff_EP_V0A_NN[2][6]
TProfile2D * fHist_Corr3p_ZDN_SP_PN[3]
TProfile2D * fHCos1nPosChEtaVz[4]
TH3F * fHist3DEtaPhiVz_Neg_Run[4][90]
4 centrality bin 90 Bins for Run. NUA
TH1F * hUnderOverBinNUAneg
//temporary Debug, remove for stable code
TProfile * fHist_Corr3p_EP_Norm_NN[2][3]
TProfile2D * fHist_Corr3p_vsRun_EP_PN[2]
void SetAnalysisSet(TString fanalysisSet)
TProfile2D * fHSin1nNegChEtaNegVzNeg
TProfile2D * fHSin1nPosChEtaPosVzPos
TProfile2D * fHCos1nNegChEtaPosVzPos
AliMultSelection * fMultSelection
input event
TH1F * fPileUpMultSelCount
event count with different cuts
TProfile2D * fHCos1nPosChEtaNegVzPos
TProfile * fHist_Corr3p_pTSum_EP_V0A_PN[2][6]
void SetFillNUAHist(Bool_t bfillNUAhist)
TProfile2D * fHist_NonIso_SP_PP_Mag0[2]
TProfile * fHist_Corr3p_EtaDiff_EP_V0A_PN[2][6]
TProfile2D * fHCos4nNegChEtaVz[4]
TProfile * fHist_Corr3p_QAEta_SP_V0A_PN[2]
TProfile2D * fHCos3nPosChEtaVz[4]
void OpenInfoCalbration(Int_t run, Float_t fHarmonic)
TProfile2D * fHist_Reso2n_ZDN_SP_Det[3]
int Int_t
Definition: External.C:63
void SetSkipNestedLoop(Bool_t bskipNest)
TH1D * fQynsV0A
sigma Qx2 V0A
TProfile2D * fHCos2nDWPosChEtaVz[4]
TH1D * fMultV0
Cut parameters which were used.
void SetGainCorrZDNP(TList *finputZDN)
TProfile2D * fHSin2nNegChEtaVz[4]
float Float_t
Definition: External.C:68
TProfile * fHist_Corr3p_SP_Norm_PP[2][3]
Norm = 10 centrality bins along X.
void GetNUACorrectionHist(Int_t run, TString sfileNUA)
AliAnalysisTaskCMEV0 & operator=(const AliAnalysisTaskCMEV0 &aAnalysisTask)
TH3D * fHCorrectNUApos[4]
for V0-Mult Gain Correction per channel.
Definition: External.C:252
TProfile * fHist_Corr3p_pTSum_EP_V0A_NN[2][6]
Definition: External.C:228
Definition: External.C:212
TProfile * fHist_Corr3p_pTDiff_EP_V0A_PN[2][6]
TProfile * fHist_Corr3p_pTSum_EP_V0C_PN[2][6]
TProfile2D * fHSin2nDWPosChEtaVz[4]
TProfile2D * fHCos2nDWNegChEtaVz[4]
TProfile2D * fHCos3nNegChEtaVz[4]
void SetApplyNUACorr(Bool_t fUseNUACorr)
void SetHarmonicM(Int_t harmonic2)
TH3F * fHistChNegvsEtaPtRun[10]
10 Centrality Bin
TProfile2D * fHist_NonIso_SP_NN_Mag1[2]
Mag1 = B > 0.
TProfile2D * fHCos2nPosChEtaVz[4]
Int_t fRunFlag
array of runnumbers
TProfile * fHist_Corr3p_QAEta_SP_V0C_NN[2]
void SetHarmonicN(Int_t harmonic1)
AliFlowEventSimple * fEvent
void SetInputFileforV0M(TString finputV0M)
TProfile * fHist_Reso2n_SP_Norm_Det[2][3]
TProfile2D * fHist_Corr2p_EP_Norm_PN[2]
virtual void UserCreateOutputObjects()
TProfile * fHist_Corr3p_pTDiff_EP_V0C_PP[2][6]
TProfile2D * fV0MultChVsRun
opposite sign pairs
void InitializeRunArray(TString sPeriod)
TProfile * fHist_Corr3p_QAEta_SP_V0A_NN[2]
TProfile2D * fHSin1nNegChEtaNegVzPos
void SetSourceFileNUA(TString sfilenua)
TProfile2D * fHCos1nPosChEtaPosVzNeg
TH3F * fHist3DEtaPhiVz_Pos_Run[4][90]
4 centrality bin
void GetV0MCorrectionHist(Int_t run)
TH1F * fHCentBinTrkRecenter
//temporary Debug, remove for stable code
TProfile2D * fHSin4nNegChEtaVz[4]
TProfile * fHist_Corr3p_pTSum_EP_V0C_NN[2][6]
TProfile2D * fHist_NonIso_SP_PP_Mag1[2]
void SetMCEffiDimension(TString mcDimen)
TProfile2D * fHSin1nPosChEtaPosVzNeg
TProfile * fHist_Corr3p_SP_Norm_PN[2][3]
void SetStoreTPCQnAvg(Bool_t bstoreTPCQn)
TProfile2D * fHSin4nPosChEtaVz[4]
TProfile * fHist_Corr3p_EtaDiff_EP_V0C_PP[2][6]
void GetV0QvectAndMult(const AliAODVZERO *aodV0, Float_t fHarmonic, Double_t &Qxan, Double_t &Qyan, Double_t &sumMa, Double_t &Qxcn, Double_t &Qycn, Double_t &sumMc)
TH3D * fHCorrectNUAneg[4]
4 centrality bin
TProfile * fHist_Corr3p_EtaDiff_EP_V0A_PP[2][6]
TProfile2D * fHCos1nPosChEtaPosVzPos
sigma Qy2 V0C
Float_t EvtCent
counter of event for cout
TProfile * fHist_Corr3p_QAEta_SP_V0C_PN[2]
TProfile2D * fHist_Corr3p_vsRun_EP_NN[2]
Int_t fHarmonicN
Event centrality.
TProfile2D * fHist_NonIso_SP_NN_Mag0[2]
Mag0 = B < 0.
TProfile * fHist_Corr3p_EtaDiff_EP_V0C_PN[2][6]
const char Option_t
Definition: External.C:48
void GetZDCCorrectionHist(Int_t run)
TProfile2D * fAvgPOIOSCentRun
same sign Neg-Neg pairs
TH1D * fQxnmV0C
sigma Qy2 V0A
void SetRemoveNegTrkRndm(Bool_t remRndm)
TProfile2D * fHSin1nPosChEtaNegVzNeg
TProfile2D * fHist_Corr3p_vsRun_EP_PP[2]
TProfile * fHist_Corr3p_SP_Norm_NN[2][3]
bool Bool_t
Definition: External.C:53
TProfile2D * fHSin1nPosChEtaVz[4]
void SetInputListNUA(TList *finputNUA)
void SetFBEfficiencyList(TList *fFBlist)
virtual void UserExec(Option_t *option)
void SetRejectPileUpTight(Bool_t pileupt8)
TProfile * fHist_Corr3p_pTDiff_EP_V0C_NN[2][6]
TProfile2D * fHCos1nPosChEtaNegVzNeg
TH1D * fFB_Efficiency_Cent[10]
4 centrality bin 90 Bins for Run. NUA
TProfile2D * fHCos1nNegChEtaNegVzNeg
double GetWDist(const AliVVertex *v0, const AliVVertex *v1)
TProfile2D * fHSin2nDWNegChEtaVz[4]
TProfile2D * fAvgPOINNCentRun
same sign Pos-Pos pairs
void SetRejectPileUp(Bool_t pileup)
TProfile * fHist_Corr3p_pTSum_EP_V0C_PP[2][6]
TProfile2D * fHCos1nNegChEtaVz[4]
TProfile * fHist_Corr3p_pTDiff_EP_V0A_PP[2][6]
TProfile2D * fHist_Corr2p_EP_Norm_PP[2]
Two magnetic fields.