AliPhysics  1168478 (1168478)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskVnZDC.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 AliAnalysisTaskVnZDC_H
6 #define AliAnalysisTaskVnZDC_H
7 
9 // AliAnalysisTaskVnZDC:
10 // analysis task for Scalar Product method
11 // Author: Naomi van der Kolk (kolk@nikhef.nl)
13 
14 class AliAODEvent;
15 class AliVVertex;
16 class AliFlowEventSimple;
17 class AliMultSelection;
18 class AliAnalysisUtils;
19 class TList;
20 
21 #include "TApplication.h"
22 #include "TString.h"
23 #include "AliAnalysisTaskSE.h"
24 #include "TNtuple.h"
25 #include "TH1.h"
26 #include "TH2.h"
27 #include "TH3.h"
28 #include "TProfile.h"
29 #include "TProfile2D.h"
30 #include "TTree.h"
31 #include "TList.h"
32 
33 
34 //===============================================================
35 
37 
38 public:
40  AliAnalysisTaskVnZDC(const char *name, Bool_t usePhiWeights);
41  virtual ~AliAnalysisTaskVnZDC();
42 
43  virtual void UserCreateOutputObjects();
44  virtual void UserExec(Option_t *option);
45  virtual void Terminate(Option_t *);
46 
47  void SetUsePhiWeights(Bool_t const aPhiW) {this->fUsePhiWeights = aPhiW;}
48  Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}
49 
50  void SetRelDiffMsub(Double_t diff) { this->fRelDiffMsub = diff; }
51  Double_t GetRelDiffMsub() const { return this->fRelDiffMsub; }
52 
53  void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;}
55 
56  void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;}
57  Int_t GetHarmonic() const {return this->fHarmonic;};
59  void SetTotalQvector(const char *tqv) { *this->fTotalQvector = tqv; }
60  void SetBookOnlyBasicCCH(Bool_t const aMB) { this->fMinimalBook = aMB; }
61 
62  //rihan:
63  //setters:
64  void SetRunFlag(Int_t const runnum) {this->frunflag = runnum; }
65  void SetZDCESEList(TList* const kList) {this->fZDCESEList = kList;}
66 
67  void SetFBEffiList(TList* const kList3) {this->fFBEffiList1 = kList3;}
68  void SetDataSet(TString fdataset) {this->fDataSet = fdataset;}
69  void SetAnalysisSet(TString fanalysisSet) {this->fAnalysisSet = fanalysisSet;}
70  void SetRejectPileUpTight(Bool_t const pileupt8) {this->fRejectPileUpTight = pileupt8;}
71  void SetRejectPileUp(Bool_t const pileup) {this->fRejectPileUp = pileup;}
72  //getters:
73  /*
74  TString GetDataSet() {return this->fDataSet;}
75  TString GetAnalysisSet() {return this->fAnalysisSet;}
76  Bool_t GetRejectPileUpTight() const {return this->fRejectPileUpTight;}
77  Bool_t GetRejectPileUp() const {return this->fRejectPileUp;}
78  */
79 
80  Bool_t plpMV(const AliAODEvent* aod);
81  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
82 
83 
84 
85 private:
86 
87  AliAnalysisTaskVnZDC(const AliAnalysisTaskVnZDC& aAnalysisTask);
89 
91 //AliFlowAnalysisIDCSP** fSP; // analysis object
92 //AliFlowAnalysisIDCSP* fSP; // analysis object only one.
94  TList *fListHistos; // collection of output
95  TList *fListWeights; // list with weights
99 
100  Bool_t fMinimalBook; // flag to turn off QA and minimize FlowCommonHist
101  Bool_t fUsePhiWeights; // use phi weights
102  Int_t fHarmonic; // harmonic
103  Int_t fNormalizationType; // 0: EP mode || 1: SP mode (default)
104  Int_t fNCentBins; // Number of Cent bins
105  Double_t fRelDiffMsub; // the relative difference the two subevent multiplicities can have
106  TString *fTotalQvector; // total Q-vector is: "QaQb" (means Qa+Qb), "Qa" or "Qb"
107  Bool_t fApplyCorrectionForNUA; // apply automatic correction for non-uniform acceptance
108 
109  //rihan:
111  Int_t runNums[90]; //
112  Float_t VxCut[2]; //
113  Float_t VyCut[2]; //
114  Float_t VzCut[2]; //
119 
120 
121  TString fDataSet; // Dataset: 2010, 2011, or 2015.
122  TString fAnalysisSet; // Values: recenter1,recenter2,analysis1
125  AliMultSelection* fMultSelection; // MultSelection (RUN2 centrality estimator)
126  AliAnalysisUtils* fAnalysisUtil; // < Event selection
127 
128 
138  TProfile *fHist_Vx_vs_runnum;
139  TProfile *fHist_Vy_vs_runnum;
140  TProfile *fHist_Vz_vs_runnum;
142  TH1F *fPileUpCount;
144 
147 
148  TProfile2D *fHist_ZDCC_En_Run[90];
149  TProfile2D *fHist_ZDCA_En_Run[90];
150 
151  TProfile2D *fHist_znCx_V0_VxVy[90][10]; //
152  TProfile2D *fHist_znCy_V0_VxVy[90][10]; //
153  TProfile2D *fHist_znAx_V0_VxVy[90][10]; //
154  TProfile2D *fHist_znAy_V0_VxVy[90][10]; //
155 
156  //add result histograms: i.e. after two recenters:
157  TProfile *fHist_X_vs_Obs_before[4][5];
158  TProfile *fHist_X_vs_Obs_after1[4][5];
159  TProfile *fHist_XX_vs_Obs_before[4][5];
160  TProfile *fHist_XX_vs_Obs_after1[4][5];
161 
174 
181 
188 
195 
202 
206 
211  TH1F *fWeight_Cent; //
212  TH1F *fCent_fromDATA; //
214 //These are non written (non-listed) histograms. must be deleted in the constructor
218 
219 
220 
221  ClassDef(AliAnalysisTaskVnZDC, 1); // example of analysis
222 };
223 
224 //==================================================================
225 
226 #endif
void SetRunFlag(Int_t const runnum)
TProfile * fHist_X_vs_Obs_before[4][5]
AliFlowEventSimple * fEvent
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
void SetTotalQvector(const char *tqv)
TProfile2D * fHist_znAx_V0_VxVy[90][10]
AliMultSelection * fMultSelection
void SetRelDiffMsub(Double_t diff)
TProfile2D * fHist_znCy_V0_VxVy[90][10]
TProfile * fHist_XX_vs_Obs_before[4][5]
virtual void Terminate(Option_t *)
Int_t fievent
input event
void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA)
void SetUsePhiWeights(Bool_t const aPhiW)
void SetFBEffiList(TList *const kList3)
void SetZDCESEList(TList *const kList)
void SetAnalysisSet(TString fanalysisSet)
int Int_t
Definition: External.C:63
void SetDataSet(TString fdataset)
float Float_t
Definition: External.C:68
Bool_t plpMV(const AliAODEvent *aod)
Bool_t GetApplyCorrectionForNUA() const
TProfile * fHist_XX_vs_Obs_after1[4][5]
TProfile2D * fHist_ZDCC_En_Run[90]
Definition: External.C:212
Double_t GetRelDiffMsub() const
virtual void UserCreateOutputObjects()
void SetBookOnlyBasicCCH(Bool_t const aMB)
AliAnalysisUtils * fAnalysisUtil
TProfile * fHist_X_vs_Obs_after1[4][5]
void SetHarmonic(Int_t const harmonic)
Bool_t GetUsePhiWeights() const
void SetRejectPileUp(Bool_t const pileup)
double GetWDist(const AliVVertex *v0, const AliVVertex *v1)
void SetRejectPileUpTight(Bool_t const pileupt8)
TProfile2D * fHist_ZDCA_En_Run[90]
const char Option_t
Definition: External.C:48
TProfile2D * fHist_znAy_V0_VxVy[90][10]
TProfile2D * fHist_znCx_V0_VxVy[90][10]
bool Bool_t
Definition: External.C:53
virtual void UserExec(Option_t *option)
ClassDef(AliAnalysisTaskVnZDC, 1)
AliAnalysisTaskVnZDC & operator=(const AliAnalysisTaskVnZDC &aAnalysisTask)