AliPhysics  f9b5d69 (f9b5d69)
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 SetInputListforV0M(TList *finputV0M) {this->fListV0MCorr = finputV0M;}
51  void SetRejectPileUp(Bool_t pileup) {this->fRejectPileUp = pileup;}
52  void SetRejectPileUpTight(Bool_t pileupt8) {this->fRejectPileUpTight = pileupt8;}
53  void SetStoreTPCQnAvg(Bool_t bstoreTPCQn) {this->bFillAvgTPCQn = bstoreTPCQn;}
54  void SetFillNUAHist(Bool_t bfillNUAhist) {this->bFillEtaPhiNUA = bfillNUAhist;}
55  void SetApplyNUACorr(Bool_t fUseNUACorr) {this->bApplyNUACorr = fUseNUACorr;}
56  void SetApplyZDCCorr(Bool_t fUseZDCCorr) {this->bApplyZDCCorr = fUseZDCCorr;}
57  void SetDataSet(TString fdataset) {this->sDataSet = fdataset;}
58  void SetAnalysisSet(TString fanalysisSet) {this->sAnalysisSet = fanalysisSet;}
59  void SetCentEstimator(TString centEstim) {this->sCentEstimator = centEstim;}
60  void SetHarmonicN(Int_t harmonic1) {this->fHarmonicN = harmonic1;}
61  void SetHarmonicM(Int_t harmonic2) {this->fHarmonicM = harmonic2;}
62  void SetPsiHarmonic(Int_t nforpsi) {this->fHarmonicPsi = nforpsi;}
63  void SetApplyNUAinEP(Bool_t bApplyNUAEP) {this->bApplyNUAforEP = bApplyNUAEP;}
64  void SetSourceFileNUA(TString sfilenua) {this->sFileNUA = sfilenua;}
65  void SetFillZDNCalHist(Bool_t bfillZDC) {this->bFillZDCinfo = bfillZDC;}
66  void SetSkipNestedLoop(Bool_t bskipNest) {this->bSkipNestedTrk = bskipNest;}
67  void SetMCEffiDimension(TString mcDimen) {this->sMCdimension = mcDimen;}
68  void SetRemoveNegTrkRndm(Bool_t remRndm) {this->bRemNegTrkRndm = remRndm;}
69  void SetApplyV0MCorr(Bool_t bV0Mcorr) {this->bApplyV0MCorr = bV0Mcorr;}
71 
72 
73 private:
74 
75  AliAnalysisTaskCMEV0(const AliAnalysisTaskCMEV0& aAnalysisTask);
77 
80  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
81 
82  void OpenInfoCalbration(Int_t run, Float_t fHarmonic);
83  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);
84  void DefineHistograms();
85  void GetNUACorrectionHist(Int_t run, TString sfileNUA);
86  void GetZDCCorrectionHist(Int_t run);
87  void GetV0MCorrectionHist(Int_t run);
88 
89  void InitializeRunArray(TString sPeriod);
91 
92 
94  AliMultSelection* fMultSelection;
95  AliAnalysisUtils* fAnalysisUtil;
96 
100 
101  TList* fListFBHijing; // Hijing Efficiency list
102  TList* fListNUACorr; // NUA Correction List
103  TList* fListZDNCorr; // ZDC gain Correction Wgts
105 
117 
118  TString sDataSet; // Dataset: 2010, 2011, or 2015.
119  TString sAnalysisSet; // Values: recenter1,recenter2,analysis1
120  TString sCentEstimator; // Centrality Estimator
121  TString sFileNUA; // NUA source file.
122  TString sMCdimension; // Dimention for MC effi Correction
123 
124 
125 
131  Int_t fHarmonicN; // Harmonic n
132  Int_t fHarmonicM; // Harmonic m
133  Int_t fHarmonicPsi; // Harmonic psi
136 
137 
140  TH1F *fPileUpCount;
142 
143  //runtime v0 calibration info histograms:
153  //---------------------------------
154 
155  //--- profiles for TPC Q-vector recenter. (They are filled, not read)
164 
173 
177 
178 
183 
184  TProfile2D *fHEnergyZNCvsCentRun;
185  TProfile2D *fHEnergyZNAvsCentRun;
186  TProfile2D *fHEnergyZPCvsCentRun;
187  TProfile2D *fHEnergyZPAvsCentRun;
188 
191 
194 
196 
198 
199  TProfile2D *fV0AQ2xVsCentRun;
200  TProfile2D *fV0AQ2yVsCentRun;
201  TProfile2D *fV0CQ2xVsCentRun;
202  TProfile2D *fV0CQ2yVsCentRun;
203 
204  TProfile2D *fV0AQ3xVsCentRun;
205  TProfile2D *fV0AQ3yVsCentRun;
206  TProfile2D *fV0CQ3xVsCentRun;
207  TProfile2D *fV0CQ3yVsCentRun;
208 
209  TProfile2D *fTPCQ2xVsCentRun;
210  TProfile2D *fTPCQ2yVsCentRun;
211 
214  TFile *fileNUApos;
215  TFile *fileNUAneg;
216 
217  TProfile2D *fAvgMultCentRun;
218  TProfile2D *fAvgWgtMultCentRun;
219  TProfile2D *fAvgPOIposCentRun;
220  TProfile2D *fAvgPOInegCentRun;
221  TProfile2D *fAvgPOIPPCentRun;
222  TProfile2D *fAvgPOINNCentRun;
223  TProfile2D *fAvgPOIOSCentRun;
224 
225  TProfile2D *fV0MultChVsRun;
226 
230 
234 
235  TProfile2D *fRejectRatioVsCR;
236 
239 
240  TProfile2D *fCentV0MvsVzRun;
241  TProfile2D *fCent3pvsVzRun;
250  //TRandom3 fRand; //!
251 
252 
253 
254 
255 
256 
257 
258 
259 
260 
261 
262 
263 
264  // [ Arrays of Histrograms here: ]
265 
266 
269 
270 
273 
275 
278 
279 
280  //CME using scalar product method:
281  TProfile *fHist_Corr3p_SP_Norm_PN[2][3];
282  TProfile *fHist_Corr3p_SP_Norm_PP[2][3];
283  TProfile *fHist_Corr3p_SP_Norm_NN[2][3];
284  TProfile *fHist_Reso2n_SP_Norm_Det[2][3];
285 
286  //CME Using Event plane method:
287  TProfile *fHist_Corr3p_EP_Norm_PN[2][3];
288  TProfile *fHist_Corr3p_EP_Norm_PP[2][3];
289  TProfile *fHist_Corr3p_EP_Norm_NN[2][3];
290  TProfile *fHist_Reso2n_EP_Norm_Det[2][3];
291 
292  TProfile2D *fHist_Corr3p_vsRun_EP_PN[2]; // 0=V0A,1=V0C
293  TProfile2D *fHist_Corr3p_vsRun_EP_PP[2]; //
294  TProfile2D *fHist_Corr3p_vsRun_EP_NN[2]; //
295 
296  //CME ZDN correlator: Spectator neutron
297  TProfile2D *fHist_Corr3p_ZDN_SP_PN[3];
298  TProfile2D *fHist_Corr3p_ZDN_SP_PP[3];
299  TProfile2D *fHist_Corr3p_ZDN_SP_NN[3];
300  TProfile2D *fHist_Reso2n_ZDN_SP_Det[3];
301 
302  //CME pT differential Histograms:
303 
304  //(pT_A + pT_B)/2.0
311 
312  // |(pT_A - pT_B)|
319 
320  // |(Eta_A - Eta_B)|
327 
328 
329  //QA: pos/neg ratio:
332 
333  //QA eta dependence:
337 
341 
342  //--- profiles for TPC <Q> (They are filled)
343  TProfile2D *fHCos1nPosChEtaVz[4];
344  TProfile2D *fHCos2nPosChEtaVz[4];
345  TProfile2D *fHCos3nPosChEtaVz[4];
346  TProfile2D *fHCos4nPosChEtaVz[4];
347  TProfile2D *fHSin1nPosChEtaVz[4];
348  TProfile2D *fHSin2nPosChEtaVz[4];
349  TProfile2D *fHSin3nPosChEtaVz[4];
350  TProfile2D *fHSin4nPosChEtaVz[4];
351 
352  TProfile2D *fHCos1nNegChEtaVz[4];
353  TProfile2D *fHCos2nNegChEtaVz[4];
354  TProfile2D *fHCos3nNegChEtaVz[4];
355  TProfile2D *fHCos4nNegChEtaVz[4];
356  TProfile2D *fHSin1nNegChEtaVz[4];
357  TProfile2D *fHSin2nNegChEtaVz[4];
358  TProfile2D *fHSin3nNegChEtaVz[4];
359  TProfile2D *fHSin4nNegChEtaVz[4];
360 
361  TProfile2D *fHCos2nDWPosChEtaVz[4];
362  TProfile2D *fHSin2nDWPosChEtaVz[4];
363  TProfile2D *fHCos2nDWNegChEtaVz[4];
364  TProfile2D *fHSin2nDWNegChEtaVz[4];
365 
366  //Store Non-isotropic terms:
367  TProfile2D *fHist_NonIso_SP_PP_Mag0[2];
368  TProfile2D *fHist_NonIso_SP_NN_Mag0[2];
369  TProfile2D *fHist_NonIso_SP_PP_Mag1[2];
370  TProfile2D *fHist_NonIso_SP_NN_Mag1[2];
371 
372 
373  //2particle correlation:
374  TProfile2D *fHist_Corr2p_EP_Norm_PN[2];
375  TProfile2D *fHist_Corr2p_EP_Norm_PP[2];
376  TProfile2D *fHist_Corr2p_EP_Norm_NN[2];
377 
378 
379 
380  ClassDef(AliAnalysisTaskCMEV0, 1); //
381 };
382 
383 #endif
384 
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 NUA Histograms
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
TCanvas * c
Definition: TestFitELoss.C:172
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]
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
TProfile2D * fCentV0MvsVzRun
for V0-Mult Gain Correction per channel.
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]
TH3F * fHist3DEtaPhiVz_Neg_Run[5][90]
5 centrality bin 90 Bins for Run. NUA
TProfile * fHist_Corr3p_QAEta_SP_V0A_PN[2]
TProfile2D * fHCos3nPosChEtaVz[4]
void OpenInfoCalbration(Int_t run, Float_t fHarmonic)
void SetInputListforV0M(TList *finputV0M)
TProfile2D * fHist_Reso2n_ZDN_SP_Det[3]
int Int_t
Definition: External.C:63
void SetPileUpCutParam(Float_t m, Float_t c)
void SetSkipNestedLoop(Bool_t bskipNest)
TH1D * fQynsV0A
sigma Qx2 V0A
TProfile2D * fHCos2nDWPosChEtaVz[4]
TList * fListNUAHist
collection of Calib Histos
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)
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
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
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)
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]
TH3D * fHCorrectNUAneg[5]
5 centrality bin
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]
5 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)
TH3F * fHist3DEtaPhiVz_Pos_Run[5][90]
5 centrality bin
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.