AliPhysics  6cf2591 (6cf2591)
 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 
22 #include "TString.h"
23 #include "AliAnalysisTaskSE.h"
24 #include "TNtuple.h"
25 #include "TH1.h"
26 #include "TH2.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  AliAnalysisTaskVnZDC(const char *name, Bool_t usePhiWeights);
40  virtual ~AliAnalysisTaskVnZDC();
41 
42  virtual void UserCreateOutputObjects();
43  virtual void UserExec(Option_t *option);
44  virtual void Terminate(Option_t *);
45 
46  void SetUsePhiWeights(Bool_t const aPhiW) {this->fUsePhiWeights = aPhiW;}
47  Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}
48 
49  void SetRelDiffMsub(Double_t diff) { this->fRelDiffMsub = diff; }
50  Double_t GetRelDiffMsub() const { return this->fRelDiffMsub; }
51 
52  void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;}
54 
55  void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;}
56  Int_t GetHarmonic() const {return this->fHarmonic;};
58  void SetTotalQvector(const char *tqv) { *this->fTotalQvector = tqv; }
59  void SetBookOnlyBasicCCH(Bool_t const aMB) { this->fMinimalBook = aMB; }
60 
61  //rihan:
62  //setters:
63  void SetRunFlag(Int_t const runnum) {this->frunflag = runnum; }
64  void SetZDCESEList(TList* const kList) {this->fZDCESEList = kList;}
65  void SetDataSet(TString fdataset) {this->fDataSet = fdataset;}
66  void SetAnalysisSet(TString fanalysisSet) {this->fAnalysisSet = fanalysisSet;}
67  void SetRejectPileUpTight(Bool_t const pileupt8) {this->fRejectPileUpTight = pileupt8;}
68  void SetRejectPileUp(Bool_t const pileup) {this->fRejectPileUp = pileup;}
69  //getters:
70  /*
71  TString GetDataSet() {return this->fDataSet;}
72  TString GetAnalysisSet() {return this->fAnalysisSet;}
73  Bool_t GetRejectPileUpTight() const {return this->fRejectPileUpTight;}
74  Bool_t GetRejectPileUp() const {return this->fRejectPileUp;}
75  */
76 
77  Bool_t plpMV(const AliAODEvent* aod);
78  double GetWDist(const AliVVertex* v0, const AliVVertex* v1);
79 
80 
81 
82 private:
83 
84  AliAnalysisTaskVnZDC(const AliAnalysisTaskVnZDC& aAnalysisTask);
86 
87  AliFlowEventSimple* fEvent; //input event
88 
89 //AliFlowAnalysisIDCSP** fSP; // analysis object
90 //AliFlowAnalysisIDCSP* fSP; // analysis object only one.
92  TList *fListHistos; // collection of output
93  TList *fListWeights; // list with weights
94  Bool_t fMinimalBook; // flag to turn off QA and minimize FlowCommonHist
95  Bool_t fUsePhiWeights; // use phi weights
96  Int_t fHarmonic; // harmonic
97  Int_t fNormalizationType; // 0: EP mode || 1: SP mode (default)
98  Int_t fNCentBins; // Number of Cent bins
99  Double_t fRelDiffMsub; // the relative difference the two subevent multiplicities can have
100  TString *fTotalQvector; // total Q-vector is: "QaQb" (means Qa+Qb), "Qa" or "Qb"
101  Bool_t fApplyCorrectionForNUA; // apply automatic correction for non-uniform acceptance
102 
103  //rihan:
105  Int_t runNums[89]; //
106  Float_t VxCut[2]; //
107  Float_t VyCut[2]; //
108  Float_t VzCut[2]; //
113 
114 
115  TString fDataSet; // Dataset: 2010, 2011, or 2015.
116  TString fAnalysisSet; // Values: recenter1,recenter2,analysis1
119  AliMultSelection* fMultSelection; // MultSelection (RUN2 centrality estimator)
120  AliAnalysisUtils* fAnalysisUtil; // < Event selection
121 
122 
123 
124  TProfile *fHist_znCx_V0_Cent[89];
125  TProfile *fHist_znCy_V0_Cent[89];
126  TProfile *fHist_znAx_V0_Cent[89];
127  TProfile *fHist_znAy_V0_Cent[89];
129 
130  TProfile2D *fHist_ZDCC_En_Run[89];
131  TProfile2D *fHist_ZDCA_En_Run[89];
132 
135  TProfile2D *fHist_QnxRecent;
136  TProfile2D *fHist_QnyRecent;
146  TProfile *fHist_Vx_vs_runnum;
147  TProfile *fHist_Vy_vs_runnum;
148  TProfile *fHist_Vz_vs_runnum;
150  TH1F *fPileUpCount;
152 
153 
154 
155 
156 
157 
158 
159 //These are non written (non-listed) histograms. must be deleted in the constructor
163  TProfile2D *fHist_znCx_V0_VxVy[89];
164  TProfile2D *fHist_znCy_V0_VxVy[89];
165  TProfile2D *fHist_znAx_V0_VxVy[89];
166  TProfile2D *fHist_znAy_V0_VxVy[89];
167 
168 
169 
170 
171  ClassDef(AliAnalysisTaskVnZDC, 1); // example of analysis
172 };
173 
174 //==================================================================
175 
176 #endif
TProfile * fHist_znAx_V0_Cent[89]
void SetRunFlag(Int_t const runnum)
TProfile2D * fHist_ZDCC_En_Run[89]
AliFlowEventSimple * fEvent
double Double_t
Definition: External.C:58
Definition: External.C:236
void SetTotalQvector(const char *tqv)
AliMultSelection * fMultSelection
TProfile * fHist_znCy_V0_Cent[89]
void SetRelDiffMsub(Double_t diff)
TProfile2D * fHist_znCy_V0_VxVy[89]
TProfile2D * fHist_znCx_V0_VxVy[89]
virtual void Terminate(Option_t *)
void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA)
void SetUsePhiWeights(Bool_t const aPhiW)
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
Double_t GetRelDiffMsub() const
TProfile2D * fHist_ZDCA_En_Run[89]
virtual void UserCreateOutputObjects()
TProfile * fHist_znAy_V0_Cent[89]
TProfile * fHist_znCx_V0_Cent[89]
void SetBookOnlyBasicCCH(Bool_t const aMB)
AliAnalysisUtils * fAnalysisUtil
TProfile2D * fHist_znAx_V0_VxVy[89]
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)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
virtual void UserExec(Option_t *option)
TProfile2D * fHist_znAy_V0_VxVy[89]
ClassDef(AliAnalysisTaskVnZDC, 1)
AliAnalysisTaskVnZDC & operator=(const AliAnalysisTaskVnZDC &aAnalysisTask)