AliPhysics  32e057f (32e057f)
AliAnalysisTaskZDCGainEq.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 AliAnalysisTaskZDCGainEq_H
6 #define AliAnalysisTaskZDCGainEq_H
7 
9 // AliAnalysisTaskZDCGainEq:
10 // analysis task for ZDC gain Equalization
11 // Author: Rihan Haque (mhaque@cern.ch)
13 
14 class AliAODEvent;
15 class AliVVertex;
16 class AliFlowEventSimple;
17 class AliMultSelection;
18 class AliAnalysisUtils;
19 class TList;
20 
21 
22 #include "TString.h"
23 #include "AliAnalysisTaskSE.h"
24 #include "TH1.h"
25 #include "TH2.h"
26 #include "TH3.h"
27 #include "TProfile2D.h"
28 #include "TProfile.h"
29 #include "TTree.h"
30 #include "TList.h"
31 
32 
33 //===============================================================
34 
36 
37 public:
39  AliAnalysisTaskZDCGainEq(const char *name);
40  virtual ~AliAnalysisTaskZDCGainEq();
41 
42  virtual void UserCreateOutputObjects();
43  virtual void UserExec(Option_t *option);
44  virtual void Terminate(Option_t *);
45 
46  //void SetRelDiffMsub(Double_t diff) { this->fRelDiffMsub = diff; }
47  //Double_t GetRelDiffMsub() const { return this->fRelDiffMsub; }
48  //void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;}
49  //Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;}
50 
51  //
52  void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;}
53  Int_t GetHarmonic() const {return this->fHarmonic;}
54 
55  //rihan:
56  void SetRunFlag(Int_t const runnum) {this->frunflag = runnum;}
57  void SetZDCESEList(TList* const kList1) {this->fListZDCQxy = kList1;}
58  void SetFBEffiList(TList* const kList2) {this->fListHijing = kList2;}
59  void SetZDCChWgtList(TList* const kList3) {this->fListZDCWgt = kList3;}
60 
61  void SetDataSet(TString fdataset) {this->fDataSet = fdataset;}
62  void SetAnalysisSet(TString fanalysisSet) {this->fAnalysisSet = fanalysisSet;}
63  void SetCentEstimator(TString centEstim) {this->sCentEstimator = centEstim;}
64 
65  void SetRejectPileUpTight(Bool_t const pileupt8) {this->fRejectPileUpTight = pileupt8;}
66  void SetRejectPileUp(Bool_t const pileup) {this->fRejectPileUp = pileup;}
67  void SetFillCosSin(Bool_t const fillcossin) {this->bFillCosSin = fillcossin;}
68  void SetFillZDCQA(Bool_t const fillzdcQAon) {this->bFillZDCQAon = fillzdcQAon;}
69  void SetFillQnRunAverage(Bool_t const runAvg) {this->bRunAveragedQn = runAvg;}
70  void SetApplyZDCRecenter(Bool_t const brecent) {this->bApplyRecent = brecent;}
71  void SetCentCutShift(Bool_t const bCutShift) {this->bCentCutShift = bCutShift;}
72  void SetShiftVsCent(Bool_t const bVsCent) {this->bShiftCorrOnCent = bVsCent;}
73  void SetTrigonMetricQ(Bool_t const bTrigQn) {this->bUseTrigonQn = bTrigQn;}
74  void SetApplyShiftCorr(Bool_t const bDoShift) {this->bApplyShiftCorr = bDoShift;}
75  void SetShiftCombine(Bool_t const bShiftCom) {this->bShiftCombinedEP = bShiftCom;}
76 
77 
78 
79  void SetVxVyVzBinForAvgQx(Int_t vxbin,Int_t vybin,Int_t vzbin){
80  this->vxBin = vxbin;
81  this->vyBin = vybin;
82  this->vzBin = vzbin;
83  }
84 
85 
86  Bool_t plpMV(const AliAODEvent* aod);
87  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
88 
89 
90 
91 private:
92 
95 
97  AliMultSelection* fMultSelection; // MultSelection (RUN2 centrality estimator)
98  AliAnalysisUtils* fAnalysisUtil; // < Event selection
99 
100 
106 
108 
109  Int_t fHarmonic; // harmonic
110 
111 
112  TString fDataSet; // Dataset: 2010, 2011, or 2015.
113  TString fAnalysisSet; // Values: recenter1,recenter2,analysis1
126  Int_t runNums[90]; //
127  Float_t VxCut[2]; //
128  Float_t VyCut[2]; //
129  Float_t VzCut[2]; //
130 
138 
139 
141  TH1F *fPileUpCount;
147 
150 
155 
157 
162 
165 
170 
173 
174 
178 
179  TH1F *fWeight_Cent;
181 
188 
192 
195 
199 
201 
203 
204  TProfile *fHist_Qx_Trig_woCorr[4];
205  TProfile *fHist_XX_Trig_woCorr[4];
206  TProfile *fHist_Qx_Trig_wiCorr[4];
207  TProfile *fHist_XX_Trig_wiCorr[4];
208 
209  TProfile *fHist_Qx_vs_Obs_woCorr[4][5];
210  TProfile *fHist_XX_vs_Obs_woCorr[4][5];
211  TProfile *fHist_Qx_vs_Obs_wiCorr[4][5];
212  TProfile *fHist_XX_vs_Obs_wiCorr[4][5];
213 
217 
222 
225 
229 
234 
239 
242 
245 
246  TProfile *fHist_v1xV1_ZDN_pTDiff[4][10];
247  TProfile *fHist_v1xV1_ZDN_EtaDiff[4][10];
248 
249  TProfile *fHist_Vx_vs_runnum;
250  TProfile *fHist_Vy_vs_runnum;
251  TProfile *fHist_Vz_vs_runnum;
252 
253  TProfile2D *fHist_znCx_V0_VxVy[90][10];
254  TProfile2D *fHist_znCy_V0_VxVy[90][10];
255  TProfile2D *fHist_znAx_V0_VxVy[90][10];
256  TProfile2D *fHist_znAy_V0_VxVy[90][10];
257 
258  TProfile2D *fHist_ZDCC_En_Run[90];
259  TProfile2D *fHist_ZDCA_En_Run[90];
260 
261  TProfile2D *fHist_ZDCC_En_CommonCh[20];
262  TProfile2D *fHist_ZDCA_En_CommonCh[20];
263 
264  TProfile2D *fHist_ZDCC_AvgCos_VsRun[4];
265  TProfile2D *fHist_ZDCC_AvgSin_VsRun[4];
266  TProfile2D *fHist_ZDCA_AvgCos_VsRun[4];
267  TProfile2D *fHist_ZDCA_AvgSin_VsRun[4];
268 
271 
274 
279 
284 
287 
291 
295 
298 
300 
305 
306  TProfile2D *fHist_VZERO_Mult_vsRun[90];
307 
308  //TH2F *fHist_ZDCAC_AvgCosSin_vsCent;
309 
310  ClassDef(AliAnalysisTaskZDCGainEq, 3); // example of analysis
311 };
312 
313 //==================================================================
314 
315 #endif
virtual void UserExec(Option_t *option)
TProfile2D * fHist_XX_vs_QnA_2DwoCorr_PosMag[4][6]
TProfile2D * fHist_XX_vs_QnC_2DwoCorr_PosMag[4][6]
TProfile2D * fHist_XX_vs_QnA_2DwoCorr_NegMag[4][6]
void SetTrigonMetricQ(Bool_t const bTrigQn)
Definition: External.C:236
void SetCentEstimator(TString centEstim)
virtual void Terminate(Option_t *)
AliMultSelection * fMultSelection
input event
double GetWDist(const AliVVertex *v0, const AliVVertex *v1)
TProfile * fHist_v1xV1_ZDN_pTDiff[4][10]
TProfile2D * fHist_znAy_V0_VxVy[90][10]
void SetZDCChWgtList(TList *const kList3)
TProfile2D * fHist_ZDC_AvgSinPsiDif_VsRun[4]
void SetFBEffiList(TList *const kList2)
void SetFillCosSin(Bool_t const fillcossin)
void SetShiftCombine(Bool_t const bShiftCom)
AliAnalysisTaskZDCGainEq & operator=(const AliAnalysisTaskZDCGainEq &aAnalysisTask)
TProfile2D * fHist_ZDC_AvgCosPsiSum_VsRun[4]
void SetRunFlag(Int_t const runnum)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void SetAnalysisSet(TString fanalysisSet)
void SetHarmonic(Int_t const harmonic)
TProfile2D * fHist_XX_vs_QnC_2DwoCorr_NegMag[4][6]
TProfile2D * fHist_znAx_V0_VxVy[90][10]
Definition: External.C:212
void SetApplyZDCRecenter(Bool_t const brecent)
Bool_t plpMV(const AliAODEvent *aod)
TProfile2D * fHist_ZDC_AvgCosPsiDif_VsRun[4]
TProfile2D * fHist_ZDC_AvgSinPsiSum_VsRun[4]
void SetApplyShiftCorr(Bool_t const bDoShift)
void SetRejectPileUp(Bool_t const pileup)
void SetCentCutShift(Bool_t const bCutShift)
void SetZDCESEList(TList *const kList1)
void SetShiftVsCent(Bool_t const bVsCent)
void SetFillZDCQA(Bool_t const fillzdcQAon)
TList * fListZDCQxy
collection of output
TProfile * fHist_v1xV1_ZDN_EtaDiff[4][10]
void SetFillQnRunAverage(Bool_t const runAvg)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
void SetRejectPileUpTight(Bool_t const pileupt8)
TProfile2D * fHist_znCy_V0_VxVy[90][10]
void SetDataSet(TString fdataset)
TProfile2D * fHist_znCx_V0_VxVy[90][10]
void SetVxVyVzBinForAvgQx(Int_t vxbin, Int_t vybin, Int_t vzbin)