]>
Commit | Line | Data |
---|---|---|
10a99a07 | 1 | #ifndef ALIANALYSISTASKV2ALLCHAOD_H |
2 | #define ALIANALYSISTASKV2ALLCHAOD_H | |
3 | ||
4 | /* See cxx source for full Copyright notice */ | |
5 | ||
6 | //------------------------------------------------------------------------- | |
7 | // AliAnalysisTaskV2AllChAOD | |
8 | // | |
9 | // | |
10 | // | |
11 | // | |
12 | // Author: Leonardo Milano, CERN | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | class AliAODEvent; | |
16 | class AliSpectraAODTrackCuts; | |
17 | class AliSpectraAODEventCuts; | |
18 | ||
19 | #include "AliAnalysisTaskSE.h" | |
d0761d58 | 20 | #include "TFile.h" |
21 | #include "TKey.h" | |
10a99a07 | 22 | #include <TProfile.h> |
23 | ||
24 | class AliAnalysisTaskV2AllChAOD : public AliAnalysisTaskSE | |
25 | { | |
26 | public: | |
27 | // constructors | |
28 | AliAnalysisTaskV2AllChAOD() : AliAnalysisTaskSE(), | |
29 | fAOD(0x0), | |
30 | fTrackCuts(0x0), | |
31 | fEventCuts(0x0), | |
32 | fIsMC(0), | |
33 | fCharge(0), | |
34 | fVZEROside(0), | |
35 | fOutput(0x0), | |
36 | fOutput_lq(0x0), | |
37 | fOutput_sq(0x0), | |
38 | fnCentBins(20), | |
39 | fnQvecBins(40), | |
10a99a07 | 40 | fQvecUpperLim(100), |
41 | fCutLargeQperc(9.), | |
42 | fCutSmallQperc(10.), | |
43 | fEtaGapMin(-0.5), | |
d64e71aa | 44 | fEtaGapMax(0.5), |
29fbaf8a | 45 | fTrkBit(128), |
d64e71aa | 46 | fEtaCut(0.8), |
47 | fMinPt(0), | |
48 | fMaxPt(20.0), | |
49 | fMinTPCNcls(70), | |
962f3d11 | 50 | fFillTHn(kTRUE), |
29fbaf8a | 51 | fCentrality(0), |
86f0713c | 52 | fQvector(0), |
53 | fQvector_lq(0), | |
54 | fQvector_sq(0), | |
d64e71aa | 55 | fResSP(0), |
af960b8a | 56 | fResSP_vs_Cent(0), |
57 | f2partCumQA_vs_Cent(0), | |
58 | f2partCumQB_vs_Cent(0), | |
bc76879c | 59 | fEta_vs_Phi_bef(0), |
2ba0e068 | 60 | fEta_vs_PhiA(0), |
61 | fEta_vs_PhiB(0), | |
d64e71aa | 62 | fResSP_lq(0), |
af960b8a | 63 | fResSP_vs_Cent_lq(0), |
64 | f2partCumQA_vs_Cent_lq(0), | |
65 | f2partCumQB_vs_Cent_lq(0), | |
66 | fResSP_sq(0), | |
af960b8a | 67 | fResSP_vs_Cent_sq(0), |
68 | f2partCumQA_vs_Cent_sq(0), | |
a7abb826 | 69 | f2partCumQB_vs_Cent_sq(0), |
29fbaf8a | 70 | fResSP_inclusive(0), |
71 | fv2SPGap1A_inclusive_mb(0), | |
72 | fv2SPGap1B_inclusive_mb(0), | |
73 | fv2SPGap1A_inclusive_lq(0), | |
74 | fv2SPGap1B_inclusive_lq(0), | |
75 | fv2SPGap1A_inclusive_sq(0), | |
76 | fv2SPGap1B_inclusive_sq(0), | |
77 | fResSPmc_inclusive(0), | |
78 | fv2SPGap1Amc_inclusive_mb(0), | |
79 | fv2SPGap1Bmc_inclusive_mb(0), | |
80 | fv2SPGap1Amc_inclusive_lq(0), | |
81 | fv2SPGap1Bmc_inclusive_lq(0), | |
82 | fv2SPGap1Amc_inclusive_sq(0), | |
83 | fv2SPGap1Bmc_inclusive_sq(0), | |
d0761d58 | 84 | fIsRecoEff(0), |
29fbaf8a | 85 | fRecoEffList(0), |
e3bcd147 | 86 | fQvecGen(0), |
725da720 | 87 | fQgenType(0), |
509a25f9 | 88 | fnNchBins(400), |
89 | fDoCentrSystCentrality(0) | |
10a99a07 | 90 | {} |
91 | AliAnalysisTaskV2AllChAOD(const char *name); | |
92 | virtual ~AliAnalysisTaskV2AllChAOD() { | |
93 | Printf("calling detructor of AliAnalysisTaskV2AllChAOD - To be implemented"); | |
94 | } | |
95 | ||
96 | void SetIsMC(Bool_t isMC = kFALSE) {fIsMC = isMC; }; | |
97 | Bool_t GetIsMC() const { return fIsMC;}; | |
98 | ||
99 | void SetCharge(Int_t charge = 0) {fCharge = charge; }; | |
100 | Int_t GetCharge() const { return fCharge;}; | |
101 | ||
102 | void SetVZEROside(Int_t side = 0) {fVZEROside = side; }; | |
103 | Int_t GetVZEROside() const { return fVZEROside;}; | |
104 | ||
105 | virtual void UserCreateOutputObjects(); | |
106 | virtual void UserExec(Option_t *option); | |
107 | virtual void Terminate(Option_t *); | |
108 | ||
109 | AliSpectraAODTrackCuts * GetTrackCuts() { return fTrackCuts; } | |
110 | AliSpectraAODEventCuts * GetEventCuts() { return fEventCuts; } | |
111 | TList * GetOutputList() { return fOutput; } | |
112 | ||
113 | void SetTrackCuts(AliSpectraAODTrackCuts * tc) { fTrackCuts = tc; } | |
114 | void SetEventCuts(AliSpectraAODEventCuts * vc) { fEventCuts = vc; } | |
115 | void SetnCentBins(Int_t val) { fnCentBins = val; } | |
116 | void SetnQvecBins(Int_t val) { fnQvecBins = val; } | |
10a99a07 | 117 | void SetQvecUpperLimit(Double_t val) { fQvecUpperLim = val; } |
118 | ||
d64e71aa | 119 | void SetTrackBits(UInt_t TrackBits) {fTrkBit=TrackBits;} |
120 | void SetEtaCut(Double_t val) {fEtaCut=val;} | |
121 | void SetMinPt(Double_t val) {fMinPt=val;} | |
122 | void SetMaxPt(Double_t val) {fMaxPt=val;} | |
123 | void SetMinTPCNcls(Double_t val) {fMinTPCNcls=val;} | |
124 | ||
10a99a07 | 125 | Bool_t GetDCA(const AliAODTrack* trk, Double_t * p); |
29fbaf8a | 126 | void MCclosure(Double_t qvec); |
d0761d58 | 127 | |
128 | void EnableRecoEff (Bool_t val) { fIsRecoEff = val; } | |
129 | Double_t GetRecoEff(Double_t pt, Int_t iC); | |
130 | ||
131 | void SetRecoEffFile(TFile *f) { | |
132 | TIter next(f->GetListOfKeys()); | |
133 | TKey *key; | |
134 | while ((key = (TKey*)next())) { | |
135 | TH1D * h=(TH1D*)key->ReadObj(); | |
136 | fRecoEffList->Add(h); | |
137 | } | |
138 | }; | |
10a99a07 | 139 | |
140 | void SetEtaGap(Float_t etamin,Float_t etamax) { fEtaGapMin = etamin; fEtaGapMax = etamax; } | |
962f3d11 | 141 | void SetQvecCut(Float_t qmin,Float_t qmax) { fCutSmallQperc = qmin; fCutLargeQperc = qmax; } |
142 | void SetFillTHn (Bool_t val) { fFillTHn = val; } | |
10a99a07 | 143 | |
509a25f9 | 144 | void SetQvecGen(Bool_t val) { fQvecGen = val; } //enable Qvec from generated |
725da720 | 145 | void SetQgenType(Int_t val) { fQgenType = val ; } // type==0 qgen from tracks - type==1 qgen from vzero |
e3bcd147 | 146 | |
147 | void SetnNchBins(Int_t val) { fnNchBins = val; } | |
29fbaf8a | 148 | |
509a25f9 | 149 | void SetDoCentrSystCentrality(Bool_t val) { fDoCentrSystCentrality = val; } //enable systematic for centrality |
150 | ||
10a99a07 | 151 | private: |
152 | ||
153 | AliAODEvent * fAOD; //! AOD object | |
154 | AliSpectraAODTrackCuts * fTrackCuts; // Track Cuts | |
155 | AliSpectraAODEventCuts * fEventCuts; // Event Cuts | |
156 | Bool_t fIsMC; // true if processing MC | |
157 | Int_t fCharge; // charge to be selected | |
158 | Int_t fVZEROside; // 0: VZERO-A 1: VZERO-C | |
159 | TList * fOutput; // output list | |
160 | TList * fOutput_lq; // output list large Q | |
161 | TList * fOutput_sq; // output list small Q | |
162 | Int_t fnCentBins; // number of bins for the centrality axis | |
163 | Int_t fnQvecBins; // number of bins for the q vector axis | |
10a99a07 | 164 | Double_t fQvecUpperLim; //Upper limit for Qvector |
165 | ||
166 | Int_t fCutLargeQperc; // cut on 10% large Q-vec events | |
167 | Int_t fCutSmallQperc; // cut on 10% small Q-vec events | |
168 | ||
169 | Double_t fEtaGapMin; | |
170 | Double_t fEtaGapMax; | |
171 | ||
d64e71aa | 172 | UInt_t fTrkBit; |
173 | Double_t fEtaCut; | |
174 | Double_t fMinPt; | |
175 | Double_t fMaxPt; | |
176 | Double_t fMinTPCNcls; | |
177 | ||
962f3d11 | 178 | Bool_t fFillTHn; |
179 | ||
29fbaf8a | 180 | TH1D * fCentrality; |
86f0713c | 181 | TH1D * fQvector; |
182 | TH1D * fQvector_lq; | |
183 | TH1D * fQvector_sq; | |
184 | ||
10a99a07 | 185 | //output object |
186 | TProfile* fResSP; //! resolution | |
30e20fad | 187 | TProfile* fResSP_vs_Cent; |
188 | TProfile* fResSP_vs_Qvec[9]; | |
189 | TProfile* f2partCumQA_vs_Cent; | |
190 | TProfile* f2partCumQB_vs_Cent; | |
2ba0e068 | 191 | TH2D* fEta_vs_Phi_bef; //! eta vs phi distribution before sub events cut |
192 | TH2D* fEta_vs_PhiA; //! eta vs phi distribution after sub events cut | |
193 | TH2D* fEta_vs_PhiB; //! eta vs phi distribution after sub events cut | |
10a99a07 | 194 | TProfile* fv2SPGap1A[9]; //! v2{2} eta gap 1 for all events |
10a99a07 | 195 | TProfile* fv2SPGap1B[9]; //! v2{2} eta gap 1 for all events |
10a99a07 | 196 | |
bc76879c | 197 | TProfile* fSinGap1Aq[9]; //! <sin> vs pT gap 1 |
198 | TProfile* fCosGap1Aq[9]; //! <cos> vs pT gap 1 | |
199 | TProfile* fSinGap1Bq[9]; //! <sin> vs pT gap 1 | |
200 | TProfile* fCosGap1Bq[9]; //! <cos> vs pT gap 1 | |
201 | ||
10a99a07 | 202 | TProfile* fSinGap1A[9]; //! <sin> vs pT gap 1 |
203 | TProfile* fCosGap1A[9]; //! <cos> vs pT gap 1 | |
204 | TProfile* fSinGap1B[9]; //! <sin> vs pT gap 1 | |
205 | TProfile* fCosGap1B[9]; //! <cos> vs pT gap 1 | |
206 | ||
207 | //large q | |
208 | TProfile* fResSP_lq; //! resolution | |
30e20fad | 209 | TProfile* fResSP_vs_Cent_lq; |
210 | TProfile* f2partCumQA_vs_Cent_lq; | |
211 | TProfile* f2partCumQB_vs_Cent_lq; | |
10a99a07 | 212 | TProfile* fv2SPGap1A_lq[9]; //! v2{2} eta gap 1 for all events |
213 | TProfile* fv2SPGap1B_lq[9]; //! v2{2} eta gap 1 for all events | |
bc76879c | 214 | TProfile* fSinGap1Aq_lq[9]; //! <sin> vs pT gap 1 |
215 | TProfile* fCosGap1Aq_lq[9]; //! <cos> vs pT gap 1 | |
216 | TProfile* fSinGap1Bq_lq[9]; //! <sin> vs pT gap 1 | |
217 | TProfile* fCosGap1Bq_lq[9]; //! <cos> vs pT gap 1 | |
10a99a07 | 218 | TProfile* fSinGap1A_lq[9]; //! <sin> vs pT gap 1 |
219 | TProfile* fCosGap1A_lq[9]; //! <cos> vs pT gap 1 | |
220 | TProfile* fSinGap1B_lq[9]; //! <sin> vs pT gap 1 | |
221 | TProfile* fCosGap1B_lq[9]; //! <cos> vs pT gap 1 | |
222 | ||
223 | //small q | |
224 | TProfile* fResSP_sq; //! resolution | |
30e20fad | 225 | TProfile* fResSP_vs_Cent_sq; |
226 | TProfile* f2partCumQA_vs_Cent_sq; | |
227 | TProfile* f2partCumQB_vs_Cent_sq; | |
10a99a07 | 228 | TProfile* fv2SPGap1A_sq[9]; //! v2{2} eta gap 1 for all events |
229 | TProfile* fv2SPGap1B_sq[9]; //! v2{2} eta gap 1 for all events | |
bc76879c | 230 | TProfile* fSinGap1Aq_sq[9]; //! <sin> vs pT gap 1 |
231 | TProfile* fCosGap1Aq_sq[9]; //! <cos> vs pT gap 1 | |
232 | TProfile* fSinGap1Bq_sq[9]; //! <sin> vs pT gap 1 | |
233 | TProfile* fCosGap1Bq_sq[9]; //! <cos> vs pT gap 1 | |
10a99a07 | 234 | TProfile* fSinGap1A_sq[9]; //! <sin> vs pT gap 1 |
235 | TProfile* fCosGap1A_sq[9]; //! <cos> vs pT gap 1 | |
236 | TProfile* fSinGap1B_sq[9]; //! <sin> vs pT gap 1 | |
237 | TProfile* fCosGap1B_sq[9]; //! <cos> vs pT gap 1 | |
238 | ||
29fbaf8a | 239 | // MC closure test |
240 | ||
241 | TProfile* fResSP_inclusive; | |
242 | TProfile* fv2SPGap1A_inclusive_mb; | |
243 | TProfile* fv2SPGap1B_inclusive_mb; | |
244 | TProfile* fv2SPGap1A_inclusive_lq; | |
245 | TProfile* fv2SPGap1B_inclusive_lq; | |
246 | TProfile* fv2SPGap1A_inclusive_sq; | |
247 | TProfile* fv2SPGap1B_inclusive_sq; | |
248 | ||
249 | TProfile* fResSPmc_inclusive; | |
250 | TProfile* fv2SPGap1Amc_inclusive_mb; | |
251 | TProfile* fv2SPGap1Bmc_inclusive_mb; | |
252 | TProfile* fv2SPGap1Amc_inclusive_lq; | |
253 | TProfile* fv2SPGap1Bmc_inclusive_lq; | |
254 | TProfile* fv2SPGap1Amc_inclusive_sq; | |
255 | TProfile* fv2SPGap1Bmc_inclusive_sq; | |
a7abb826 | 256 | |
d0761d58 | 257 | Bool_t fIsRecoEff; |
258 | TList * fRecoEffList; // reconstruction efficiency file | |
29fbaf8a | 259 | |
260 | Bool_t fQvecGen; //enable Qvec from generated | |
725da720 | 261 | Int_t fQgenType; // type==0 qgen from tracks - type==1 qgen from vzero |
e3bcd147 | 262 | Int_t fnNchBins; //Ncharged |
509a25f9 | 263 | Bool_t fDoCentrSystCentrality; //systematic check on centrality estimation |
264 | ||
a7abb826 | 265 | |
10a99a07 | 266 | AliAnalysisTaskV2AllChAOD(const AliAnalysisTaskV2AllChAOD&); |
267 | AliAnalysisTaskV2AllChAOD& operator=(const AliAnalysisTaskV2AllChAOD&); | |
268 | ||
86f0713c | 269 | ClassDef(AliAnalysisTaskV2AllChAOD, 13); |
10a99a07 | 270 | }; |
271 | ||
272 | #endif |