Obsolete code removed
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisTaskFragmentationFunction.h
CommitLineData
3af23c82 1// *************************************************************************
2// * Task for Fragmentation Function Analysis in PWG4 Jet Task Force Train *
3// *************************************************************************
d7238ca3 4
6bec8236 5#ifndef ALIANALYSISTASKFRAGMENTATIONFUNCTION_H
6#define ALIANALYSISTASKFRAGMENTATIONFUNCTION_H
d7238ca3 7
6bec8236 8/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
9 * See cxx source for full Copyright notice */
f32b5a77 10
d7238ca3 11/* $Id$ */
6bec8236 12
d7238ca3 13class AliESDEvent;
14class AliAODEvent;
15class TList;
6bec8236 16class TH1F;
d7238ca3 17class TH2F;
67e37e80 18class TH3F;
ac017ff3 19class TProfile;
3af23c82 20class THnSparse;
67e37e80 21class TRandom3;
ec3847a1 22class TArrayS;
d7238ca3 23
d7238ca3 24#include "AliAnalysisTaskSE.h"
25
26class AliAnalysisTaskFragmentationFunction : public AliAnalysisTaskSE {
6bec8236 27
6bec8236 28 public:
656dc810 29
30 //----------------------------------------
d7238ca3 31 class AliFragFuncHistos : public TObject
32 {
656dc810 33
34 public:
d7238ca3 35
36 AliFragFuncHistos(const char* name = "FFhistos",
37 Int_t nJetPt = 0, Float_t jetPtMin = 0, Float_t jetPtMax = 0,
38 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
39 Int_t nXi = 0, Float_t xiMin = 0, Float_t xiMax = 0,
40 Int_t nZ = 0, Float_t zMin = 0, Float_t zMax = 0);
41 AliFragFuncHistos(const AliFragFuncHistos& copy);
42 AliFragFuncHistos& operator=(const AliFragFuncHistos &o);
43 virtual ~AliFragFuncHistos();
44
45 virtual void DefineHistos();
cb76764e 46 virtual void FillFF(Float_t trackPt, Float_t jetPt,Bool_t incrementJetPt, Float_t norm = 0);
d7238ca3 47 virtual void AddToOutput(TList* list) const;
48
49 private:
50
51 Int_t fNBinsJetPt; // FF histos bins
52 Float_t fJetPtMin; // FF histos limits
53 Float_t fJetPtMax; // FF histos limits
54 Int_t fNBinsPt; // FF histos bins
55 Float_t fPtMin; // FF histos limits
56 Float_t fPtMax; // FF histos limits
57 Int_t fNBinsXi; // FF histos bins
58 Float_t fXiMin; // FF histos limits
59 Float_t fXiMax; // FF histos limits
60 Int_t fNBinsZ; // FF histos bins
61 Float_t fZMin; // FF histos limits
62 Float_t fZMax; // FF histos limits
6bec8236 63
656dc810 64 TH2F* fh2TrackPt; //! FF: track transverse momentum
65 TH2F* fh2Xi; //! FF: xi
66 TH2F* fh2Z; //! FF: z
67 TH1F* fh1JetPt; //! jet pt
d7238ca3 68
65b4c265 69 TString fNameFF; // histo names prefix
d7238ca3 70
71 ClassDef(AliFragFuncHistos, 1);
72 };
73
656dc810 74 //----------------------------------------
d7238ca3 75 class AliFragFuncQAJetHistos : public TObject
76 {
77
78 public:
6bec8236 79
d7238ca3 80 AliFragFuncQAJetHistos(const char* name = "QAJethistos",
81 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
82 Int_t nEta = 0, Float_t etaMin = 0, Float_t etaMax = 0,
83 Int_t nPhi = 0, Float_t phiMin = 0, Float_t phiMax = 0);
84
85 AliFragFuncQAJetHistos(const AliFragFuncQAJetHistos& copy);
86 AliFragFuncQAJetHistos& operator=(const AliFragFuncQAJetHistos &o);
87 virtual ~AliFragFuncQAJetHistos();
88 virtual void DefineHistos();
89 virtual void FillJetQA(Float_t eta, Float_t phi, Float_t pt);
90 virtual void AddToOutput(TList* list) const;
91
92 private:
93
94 Int_t fNBinsPt; // jet QA histos bins
95 Float_t fPtMin; // jet QA histos limits
96 Float_t fPtMax; // jet QA histos limits
97 Int_t fNBinsEta; // jet QA histos bins
98 Float_t fEtaMin; // jet QA histos limits
99 Float_t fEtaMax; // jet QA histos limits
100 Int_t fNBinsPhi; // jet QA histos bins
101 Float_t fPhiMin; // jet QA histos limits
102 Float_t fPhiMax; // jet QA histos limits
103
104 TH2F* fh2EtaPhi; //! jet phi vs eta
105 TH1F* fh1Pt; //! jet transverse momentum
65b4c265 106 TString fNameQAJ; // histo names prefix
d7238ca3 107
108 ClassDef(AliFragFuncQAJetHistos, 1);
109 };
110
656dc810 111 //----------------------------------------
d7238ca3 112 class AliFragFuncQATrackHistos : public TObject
113 {
114
115 public:
116
117 AliFragFuncQATrackHistos(const char* name = "QATrackhistos",
118 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
119 Int_t nEta = 0, Float_t etaMin = 0, Float_t etaMax = 0,
120 Int_t nPhi = 0, Float_t phiMin = 0, Float_t phiMax = 0,
121 Float_t ptThresh = 0);
122
123 AliFragFuncQATrackHistos(const AliFragFuncQATrackHistos& copy);
124 AliFragFuncQATrackHistos& operator=(const AliFragFuncQATrackHistos &o);
125 virtual ~AliFragFuncQATrackHistos();
126 virtual void DefineHistos();
3af23c82 127 virtual void FillTrackQA(Float_t eta, Float_t phi, Float_t pt, Bool_t weightPt = kFALSE, Float_t norm = 0.);
d7238ca3 128 virtual void AddToOutput(TList* list) const;
129
130 private:
131
656dc810 132 Int_t fNBinsPt; // track QA histos bins in pt
133 Float_t fPtMin; // track QA histos limits in pt
134 Float_t fPtMax; // track QA histos limits in pt
135 Int_t fNBinsEta; // track QA histos bins in eta
136 Float_t fEtaMin; // track QA histos limits in eta
137 Float_t fEtaMax; // track QA histos limits in eta
138 Int_t fNBinsPhi; // track QA histos bins in phi
139 Float_t fPhiMin; // track QA histos limits in phi
140 Float_t fPhiMax; // track QA histos limits in phi
d7238ca3 141
142 Float_t fHighPtThreshold; // high pt track phi vs eta distribution
143
656dc810 144 TH2F* fh2EtaPhi; //! track phi vs eta
145 TH1F* fh1Pt; //! track transverse momentum
146 TH2F* fh2HighPtEtaPhi; //! phi vs eta for high pt (>fgHighPtThreshold) tracks
3af23c82 147 TH2F* fh2PhiPt; //! track phi vs pt
d7238ca3 148
65b4c265 149 TString fNameQAT; // histo names prefix
d7238ca3 150
3af23c82 151 ClassDef(AliFragFuncQATrackHistos, 2);
d7238ca3 152 };
153
656dc810 154 //----------------------------------------
155 class AliFragFuncIntraJetHistos : public TObject
156 {
157
158 public:
159
160 AliFragFuncIntraJetHistos(const char* name = "IntraJethistos",
161 Int_t nJetPt = 0, Float_t jetPtMin = 0, Float_t jetPtMax = 0,
162 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
163 Int_t nZ = 0, Float_t zMin = 0, Float_t zMax = 0,
164 Int_t nCosTheta = 0, Float_t costhetaMin = 0, Float_t costhetaMax = 0,
165 Int_t nTheta = 0, Float_t thetaMin = 0, Float_t thetaMax = 0,
166 Int_t nJt = 0, Float_t jtMin = 0, Float_t jtMax = 0);
167 AliFragFuncIntraJetHistos(const AliFragFuncIntraJetHistos& copy);
168 AliFragFuncIntraJetHistos& operator=(const AliFragFuncIntraJetHistos &o);
169 virtual ~AliFragFuncIntraJetHistos();
170
171 virtual void DefineHistos();
cb76764e 172 virtual void FillIntraJet(const TLorentzVector* trackV, const TLorentzVector* jetV, Float_t norm = 0);
656dc810 173 virtual void AddToOutput(TList* list) const;
174
175 private:
176
177 Int_t fNBinsJetPt; // IntraJet histos bins in jet pt
178 Float_t fJetPtMin; // IntraJet histos limits in jet pt
179 Float_t fJetPtMax; // IntraJet histos limits in jet pt
180 Int_t fNBinsPt; // IntraJet histos bins in pt
181 Float_t fPtMin; // IntraJet histos limits in pt
182 Float_t fPtMax; // IntraJet histos limits in pt
183 Int_t fNBinsZ; // IntraJet histos bins in z
184 Float_t fZMin; // IntraJet histos limits in z
185 Float_t fZMax; // IntraJet histos limits in z
186 Int_t fNBinsJt; // IntraJet histos bins in jt
187 Float_t fJtMin; // IntraJet histos limits in jt
188 Float_t fJtMax; // IntraJet histos limits in jt
189 Int_t fNBinsTheta; // IntraJet histos bins in theta
190 Float_t fThetaMin; // IntraJet histos limits in theta
191 Float_t fThetaMax; // IntraJet histos limits in theta
192 Int_t fNBinsCosTheta; // IntraJet histos bins in cos(theta)
193 Float_t fCosThetaMin; // IntraJet histos limits in cos(theta)
194 Float_t fCosThetaMax; // IntraJet histos limits in cos(theta)
195
67e37e80 196 TH2F* fh2CosTheta; //! IntraJet: cos(theta) distribution
197 TH2F* fh2PtZ; //! IntraJet: pt vs z distribution
656dc810 198
67e37e80 199 TH3F* fh3ThetaZ; //! IntraJet: theta, z, jet pt
200 TH3F* fh3JtTheta; //! IntraJet: jt, theta, jet pt
201 TH3F* fh3JtZ; //! IntraJet: jt, z, jet pt
656dc810 202
65b4c265 203 TString fNameIJ; // histo names prefix
656dc810 204
205 ClassDef(AliFragFuncIntraJetHistos, 1);
206 };
207
208 //----------------------------------------
209 class AliFragFuncDiJetHistos : public TObject
210 {
211
212 public:
213
214 AliFragFuncDiJetHistos(const char* name = "DiJetHistos", Int_t kindSlices = 0,
215 Int_t nJetinvMass = 0, Float_t jetInvMassMin = 0, Float_t jetInvMassMax = 0,
216 Int_t nJetPt = 0, Float_t jetPtMin = 0, Float_t jetPtMax = 0,
217 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
218 Int_t nXi = 0, Float_t xiMin = 0, Float_t xiMax = 0,
219 Int_t nZ = 0, Float_t zMin = 0, Float_t zMax = 0);
220 AliFragFuncDiJetHistos(const AliFragFuncDiJetHistos& copy);
221 AliFragFuncDiJetHistos& operator=(const AliFragFuncDiJetHistos &o);
222 virtual ~AliFragFuncDiJetHistos();
223
224 virtual void DefineDiJetHistos();
225 virtual void FillDiJetFF(Int_t jetType, Float_t trackPt, Float_t jetPt, Double_t jetBin, Bool_t incrementJetPt);
226 virtual void AddToOutput(TList* list) const;
227
228 private:
229
65b4c265 230 Int_t fKindSlices; // DJ kind of slices
656dc810 231 Int_t fNBinsJetInvMass; // FF histos bins
232 Float_t fJetInvMassMin; // FF histos limits
233 Float_t fJetInvMassMax; // FF histos limits
234 Int_t fNBinsJetPt; // FF histos bins
235 Float_t fJetPtMin; // FF histos limits
236 Float_t fJetPtMax; // FF histos limits
237 Int_t fNBinsPt; // FF histos bins
238 Float_t fPtMin; // FF histos limits
239 Float_t fPtMax; // FF histos limits
240 Int_t fNBinsXi; // FF histos bins
241 Float_t fXiMin; // FF histos limits
242 Float_t fXiMax; // FF histos limits
243 Int_t fNBinsZ; // FF histos bins
244 Float_t fZMin; // FF histos limits
245 Float_t fZMax; // FF histos limits
246
247 TH2F* fh2TrackPtJet1; //! FF dijet : track transverse momentum of jet 1
248 TH2F* fh2TrackPtJet2; //! FF dijet : track transverse momentum of jet 2
249 TH2F* fh2TrackPtJet; //! FF dijet : track transverse momentum of jets 1 and 2
250 TH1F* fh1Jet1Pt; //! jet 1 pt
251 TH1F* fh1Jet2Pt; //! jet 2 pt
252 TH1F* fh1JetPt; //! jet 1 and 2 pt
253 TH2F* fh2Xi1; //! FF dijet : xi of jet 1
254 TH2F* fh2Xi2; //! FF dijet : xi of jet 2
255 TH2F* fh2Xi; //! FF dijet : xi of jet 1 and 2
256 TH2F* fh2Z1; //! FF dijet : z of jet 1
257 TH2F* fh2Z2; //! FF dijet : z of jet 2
258 TH2F* fh2Z; //! FF dijet : z of jet 1 and 2
259 TH2F* fh2Pt1; //! FF dijet : z of jet 1
260 TH2F* fh2Pt2; //! FF dijet : z of jet 2
261 TH2F* fh2Pt; //! FF dijet : z of jet 1 and 2
262
65b4c265 263 TString fNameDJ; // histo names prefix
656dc810 264
265 ClassDef(AliFragFuncDiJetHistos, 1);
266 };
267
268 //----------------------------------------
269 class AliFragFuncQADiJetHistos : public TObject
270 {
271 public:
272 AliFragFuncQADiJetHistos(const char* name = "QADiJetHistos", Int_t kindSlices = 0,
273 Int_t nInvMass = 0, Float_t invMassMin = 0, Float_t invMassMax = 0,
274 Int_t nJetPt = 0, Float_t jetPtMin = 0, Float_t jetPtMax = 0,
275 Int_t nDeltaPhi = 0, Float_t deltaPhiMin = 0, Float_t deltaPhiMax = 0,
276 Int_t nDeltaEta = 0, Float_t deltaEtaMin = 0, Float_t deltaEtaMax = 0,
3af23c82 277 Int_t nDeltaPt = 0, Float_t deltaPtMin = 0, Float_t deltaPtMax = 0,
278 Int_t nInBal = 0, Float_t inBalMin = 0, Float_t inBalMax = 0);
656dc810 279 AliFragFuncQADiJetHistos(const AliFragFuncQADiJetHistos& copy);
280 AliFragFuncQADiJetHistos& operator=(const AliFragFuncQADiJetHistos &o);
281 virtual ~AliFragFuncQADiJetHistos();
282
283 virtual void DefineQADiJetHistos();
3af23c82 284 virtual void FillDiJetQA(Double_t invMass, Double_t deltaPhi, Double_t deltaEta, Double_t deltaPt, Double_t inBal, Double_t jetBin);
656dc810 285 virtual void AddToOutput(TList* list) const;
286
287 private:
288
65b4c265 289 Int_t fKindSlices; // DJ kind of slices
656dc810 290 Int_t fNBinsJetInvMass; // FF histos bins in jet invariant mass
291 Float_t fJetInvMassMin; // FF histos limits in jet invariant mass
292 Float_t fJetInvMassMax; // FF histos limits in jet invariant mass
293 Int_t fNBinsJetPt; // FF histos bins in jet pt
294 Float_t fJetPtMin; // FF histos limits in jet pt
295 Float_t fJetPtMax; // FF histos limits in jet pt
296 Int_t fNBinsDeltaPhi; // FF histos bins in jet delta phi
297 Float_t fDeltaPhiMin; // FF histos limits in jet delta phi
298 Float_t fDeltaPhiMax; // FF histos limits in jet delta phi
299 Int_t fNBinsDeltaEta; // FF histos bins in jet delta eta
300 Float_t fDeltaEtaMin; // FF histos limits in jet delta eta
301 Float_t fDeltaEtaMax; // FF histos limits in jet delta eta
302 Int_t fNBinsDeltaPt; // FF histos bins in jet delta pt
303 Float_t fDeltaPtMin; // FF histos limits in jet delta pt
304 Float_t fDeltaPtMax; // FF histos limits in jet delta pt
3af23c82 305 Int_t fNBinsInBal; // FF histos bins in jet delta pt
306 Float_t fInBalMin; // FF histos limits in pt inbalance
307 Float_t fInBalMax; // FF histos limits in pt inbalance
656dc810 308
309 TH2F* fh2InvMass; // FF dijet invariant mass histos
310 TH2F* fh2DeltaPhi; // FF dijet delta phi histos
311 TH2F* fh2DeltaEta; // FF dijet delta eta histos
312 TH2F* fh2DeltaPt; // FF dijet delta pt histos
3af23c82 313 TH2F* fh2InBal; // FF dijet delta pt histos
656dc810 314
65b4c265 315 TString fNameQADJ; // histo names prefix
656dc810 316
317 ClassDef(AliFragFuncQADiJetHistos, 1);
318 };
d7238ca3 319
320 AliAnalysisTaskFragmentationFunction();
321 AliAnalysisTaskFragmentationFunction(const char *name);
322 AliAnalysisTaskFragmentationFunction(const AliAnalysisTaskFragmentationFunction &copy);
323 AliAnalysisTaskFragmentationFunction& operator=(const AliAnalysisTaskFragmentationFunction &o);
324 virtual ~AliAnalysisTaskFragmentationFunction();
325
326 virtual void UserCreateOutputObjects();
327 virtual void Init();
328 virtual void LocalInit() {Init();}
329 virtual void UserExec(Option_t *option);
330 virtual void Terminate(Option_t* );
ac017ff3 331 virtual Bool_t Notify();
d7238ca3 332
333 virtual void SetTrackTypeGen(Int_t i){fTrackTypeGen = i;}
334 virtual void SetJetTypeGen(Int_t i){fJetTypeGen = i;}
7d9e8b32 335 virtual void SetJetTypeRecEff(Int_t i){fJetTypeRecEff = i;}
d7238ca3 336
3af23c82 337 virtual void SetBranchRecBackJets(const char* c){fBranchRecBackJets = c;}
742ee86c 338 virtual void SetBranchRecBackClusters(const char* c){fBranchRecBckgClusters = c;}
d7238ca3 339 virtual void SetBranchGenJets(const char* c){fBranchGenJets = c;}
340 virtual void SetBranchRecJets(const char* c){fBranchRecJets = c;}
341
656dc810 342 virtual void SetTrackCuts(Float_t trackPt = 0.15, Float_t trackEtaMin = -0.9, Float_t trackEtaMax = 0.9,
343 Float_t trackPhiMin = 0., Float_t trackPhiMax = 2*TMath::Pi())
344 {fTrackPtCut = trackPt; fTrackEtaMin = trackEtaMin; fTrackEtaMax = trackEtaMax;
345 fTrackPhiMin = trackPhiMin; fTrackPhiMax = trackPhiMax;}
d7238ca3 346 virtual void SetFilterMask(UInt_t i) {fFilterMask = i;}
ac017ff3 347 virtual void UsePhysicsSelection(Bool_t b) {fUsePhysicsSelection = b;}
3af23c82 348 virtual void SetEventClass(Int_t i){fEventClass = i;}
349 virtual void SetMaxVertexZ(Float_t z){fMaxVertexZ = z;}
656dc810 350 virtual void SetJetCuts(Float_t jetPt = 5., Float_t jetEtaMin = -0.5, Float_t jetEtaMax = 0.5,
351 Float_t jetPhiMin = 0., Float_t jetPhiMax = 2*TMath::Pi())
352 {fJetPtCut = jetPt; fJetEtaMin = jetEtaMin; fJetEtaMax = jetEtaMax;
353 fJetPhiMin = jetPhiMin; fJetPhiMax = jetPhiMax;}
354 virtual void SetDiJetCuts(Int_t cutType = 1, Float_t deltaPhiCut = 0.,
355 Float_t cdfCut = 0.5, Float_t ptFractionCut = 0.6)
356 {fDiJetCut = cutType; fDiJetDeltaPhiCut = deltaPhiCut;
357 fDiJetCDFCut = cdfCut; fDiJetPtFractionCut = ptFractionCut;}
f3564520 358 virtual void SetKindSlices(Int_t slice = 1) {fDiJetKindBins = slice;}
656dc810 359
d7238ca3 360 virtual void SetFFRadius(Float_t r = 0.4) { fFFRadius = r; }
1da9498b 361 virtual void SetFFBckgRadius(Float_t r = 0.7) { fFFBckgRadius = r; }
362 virtual void SetBckgMode(Bool_t bg = 1) { fBckgMode = bg; }
742ee86c 363 virtual void SetBckgType(Int_t bg0 = 0, Int_t bg1 = 1,Int_t bg2 = 2, Int_t bg3 = 3)
364 { fBckgType[0] = bg0; fBckgType[1] = bg1; fBckgType[2] = bg2; fBckgType[3] = bg3; }
3af23c82 365 virtual void SetIJMode(Int_t ij = 1) {fIJMode = ij;}
366 virtual void SetQAMode(Int_t qa = 3) {fQAMode = qa;}
367 virtual void SetFFMode(Int_t ff = 1) {fFFMode = ff;}
368 virtual void SetDJMode(Int_t dj = 1) {fDJMode = dj;}
369 virtual void SetEffMode(Int_t eff = 1) {fEffMode = eff;}
370 virtual void SetPhiCorrMode(Int_t pc = 1) {fPhiCorrMode = pc;}
44b235ce 371 virtual void SetBckgSubMethod(Int_t bg = 0) {fBckgSubMethod = bg;}
67e37e80 372
742ee86c 373 virtual void UseRecEffRecJetPtBins(Bool_t useRec = kFALSE) { fUseRecEffRecJetPtBins = useRec; }
374 virtual void UseResponseRecJetPtBins(Bool_t useRec = kTRUE) { fUseResponseRecJetPtBins = useRec; }
d7238ca3 375
376 static void SetProperties(TH1* h,const char* x, const char* y);
67e37e80 377 static void SetProperties(TH1* h,const char* x, const char* y,const char* z);
3af23c82 378 static void SetProperties(THnSparse* h,const Int_t dim, const char** labels);
d7238ca3 379
380 void SetHighPtThreshold(Float_t pt = 5.) { fQATrackHighPtThreshold = pt; }
381
ac017ff3 382 void SetFFHistoBins(Int_t nJetPt = 245, Float_t jetPtMin = 5, Float_t jetPtMax = 250,
383 Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 384 Int_t nXi = 70, Float_t xiMin = 0., Float_t xiMax = 7.,
385 Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1)
386 { fFFNBinsJetPt = nJetPt; fFFJetPtMin = jetPtMin; fFFJetPtMax = jetPtMax;
387 fFFNBinsPt = nPt; fFFPtMin = ptMin; fFFPtMax = ptMax;
388 fFFNBinsXi = nXi; fFFXiMin = xiMin; fFFXiMax = xiMax;
389 fFFNBinsZ = nZ; fFFZMin = zMin; fFFZMax = zMax; }
390
ac017ff3 391 void SetQAJetHistoBins(Int_t nPt = 300, Float_t ptMin = 0., Float_t ptMax = 300.,
d7238ca3 392 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
393 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
394 { fQAJetNBinsPt = nPt; fQAJetPtMin = ptMin; fQAJetPtMax = ptMax;
395 fQAJetNBinsEta = nEta; fQAJetEtaMin = etaMin; fQAJetEtaMax = etaMax;
396 fQAJetNBinsPhi = nPhi; fQAJetPhiMin = phiMin; fQAJetPhiMax = phiMax; }
397
ac017ff3 398 void SetQATrackHistoBins(Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 399 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
400 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
401 { fQATrackNBinsPt = nPt; fQATrackPtMin = ptMin; fQATrackPtMax = ptMax;
402 fQATrackNBinsEta = nEta; fQATrackEtaMin = etaMin; fQATrackEtaMax = etaMax;
403 fQATrackNBinsPhi = nPhi; fQATrackPhiMin = phiMin; fQATrackPhiMax = phiMax; }
404
3af23c82 405 void SetPhiCorrHistoBins(Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
406 Int_t nEta = 1, Float_t etaMin = -0.9, Float_t etaMax = 0.9,
407 Int_t nPhi = 64, Float_t phiMin = -3.2, Float_t phiMax = 3.2)
408 { fPhiCorrNBinsPt = nPt; fPhiCorrPtMin = ptMin; fPhiCorrPtMax = ptMax;
409 fPhiCorrNBinsEta = nEta; fPhiCorrEtaMin = etaMin; fPhiCorrEtaMax = etaMax;
410 fPhiCorrNBinsPhi = nPhi; fPhiCorrPhiMin = phiMin; fPhiCorrPhiMax = phiMax; }
411
65b4c265 412 void SetIJHistoBins(Int_t nJetPt = 245, Float_t jetPtMin = 5, Float_t jetPtMax = 250, Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
413 Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1, Int_t nCosTheta = 100, Float_t costhetaMin = 0., Float_t costhetaMax = 1.,
414 Int_t nTheta = 200, Float_t thetaMin = -0.5, Float_t thetaMax = 1.5, Int_t nJt = 25, Float_t jtMin = 0., Float_t jtMax = 5.)
415 { fIJNBinsJetPt = nJetPt; fIJJetPtMin = jetPtMin; fIJJetPtMax = jetPtMax; fIJNBinsPt = nPt; fIJPtMin = ptMin; fIJPtMax = ptMax;
416 fIJNBinsZ = nZ; fIJZMin = zMin; fIJZMax = zMax;fIJNBinsCosTheta = nCosTheta; fIJCosThetaMin = costhetaMin; fIJCosThetaMax = costhetaMax;
417 fIJNBinsTheta = nTheta; fIJThetaMin = thetaMin; fIJThetaMax = thetaMax; fIJNBinsJt = nJt; fIJJtMin = jtMin; fIJJtMax = jtMax; }
418
419 void SetDiJetHistoBins(Int_t nJetInvMass = 245, Float_t jetInvMassMin = 5, Float_t jetInvMassMax = 250, Int_t nJetPt = 245, Float_t jetPtMin = 5,
420 Float_t jetPtMax = 250, Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200., Int_t nXi = 70, Float_t xiMin = 0.,
421 Float_t xiMax = 7., Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1)
656dc810 422 {
65b4c265 423 fDiJetNBinsJetInvMass = nJetInvMass; fDiJetJetInvMassMin = jetInvMassMin; fDiJetJetInvMassMax = jetInvMassMax; fDiJetNBinsJetPt = nJetPt; fDiJetJetPtMin = jetPtMin;
424 fDiJetJetPtMax = jetPtMax; fDiJetNBinsPt = nPt; fDiJetPtMin = ptMin; fDiJetPtMax = ptMax; fDiJetNBinsXi = nXi; fDiJetXiMin = xiMin;
425 fDiJetXiMax = xiMax; fDiJetNBinsZ = nZ; fDiJetZMin = zMin; fDiJetZMax = zMax;
656dc810 426 }
427
65b4c265 428 void SetQADiJetHistoBins(Int_t nInvMass = 245, Float_t invMassMin = 5., Float_t invMassMax = 250., Int_t nJetPt = 245, Float_t jetPtMin = 5, Float_t jetPtMax = 250,
429 Int_t nDeltaPhi = 100, Float_t deltaPhiMin = 0., Float_t deltaPhiMax = TMath::Pi(), Int_t nDeltaEta = 22, Float_t deltaEtaMin = 0.,
3af23c82 430 Float_t deltaEtaMax = 1.1, Int_t nDeltaPt = 100, Float_t deltaPtMin = 0., Float_t deltaPtMax = 100.,
431 Int_t nInBal = 22, Float_t inBalMin = -1.1, Float_t inBalMax = 1.1)
656dc810 432 {
65b4c265 433 fQADiJetNBinsInvMass = nInvMass; fQADiJetInvMassMin = invMassMin; fQADiJetInvMassMax = invMassMax; fQADiJetNBinsJetPt = nJetPt; fQADiJetJetPtMin = jetPtMin;
434 fQADiJetJetPtMax = jetPtMax; fQADiJetNBinsDeltaPhi = nDeltaPhi; fQADiJetDeltaPhiMin = deltaPhiMin; fQADiJetDeltaPhiMax = deltaPhiMax; fQADiJetNBinsDeltaEta = nDeltaEta;
435 fQADiJetDeltaEtaMin = deltaEtaMin; fQADiJetDeltaEtaMax = deltaEtaMax; fQADiJetNBinsDeltaPt = nDeltaPt; fQADiJetDeltaPtMin = deltaPtMin; fQADiJetDeltaPtMax = deltaPtMax;
3af23c82 436 fQADiJetNBinsInBal = nInBal; fQADiJetInBalMin = inBalMin; fQADiJetInBalMax = inBalMax;
656dc810 437 }
438
439 Float_t GetFFRadius() const { return fFFRadius; }
1da9498b 440 Float_t GetFFBckgRadius() const { return fFFBckgRadius; }
65b4c265 441 void GetJetTracksTrackrefs(TList* l, const AliAODJet* j);
442 void GetJetTracksPointing(TList* in, TList* out, const AliAODJet* j, const Double_t r, Double_t& pt);
3af23c82 443 void GetTracksOutOfNJets(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt);
444 void GetTracksOutOfNJetsStat(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt, Double_t &normFactor);
445 void GetTracksTiltedwrpJetAxis(Float_t alpha, TList* inputlist, TList* outputlist, AliAODJet* jet, Double_t radius, Double_t& sumPt);
446 void GetTracksTiltedwrpJetAxisWindow(Float_t alpha, TList* inputlist, TList* outputlist, AliAODJet* jet, Double_t radius, Double_t& sumPt, Double_t &normFactor);
447
656dc810 448 Double_t GetDiJetBin(Double_t invMass, Double_t leadingJetPt, Double_t eMean, Int_t kindSlices); // function to find which bin fill
65b4c265 449 Double_t InvMass(const AliAODJet* jet1, const AliAODJet* jet2);
7d9e8b32 450 void AssociateGenRec(TList* tracksAODMCCharged,TList* tracksRec, TArrayI& indexAODTr,TArrayI& indexMCTr,TArrayS& isGenPrim);
cb76764e 451 void FillSingleTrackRecEffHisto(AliFragFuncQATrackHistos* trackQAGen, AliFragFuncQATrackHistos* trackQARec, TList* tracksGen, const TArrayI& indexAODTr, const TArrayS& isGenPrim);
3af23c82 452 void FillJetTrackRecEffHisto(TObject* histGen,TObject* histRec,Double_t jetPtGen,Double_t jetPtRec, TList* jetTrackList, const TList* tracksGen,
cb76764e 453 const TArrayI& indexAODTr,const TArrayS& isGenPrim, const Bool_t useRecJetPt);
3af23c82 454
455 void FillSingleTrackResponse(THnSparse* hnResponse, TList* tracksGen, TList* tracksRec, const TArrayI& indexAODTr, const TArrayS& isGenPrim);
456
457 void FillJetTrackResponse(THnSparse* hnResponsePt, THnSparse* hnResponseZ, THnSparse* hnResponseXi,
458 Double_t jetPtGen, Double_t jetPtRec, TList* jetTrackList,
459 const TList* tracksGen, TList* tracksRec, const TArrayI& indexAODTr, const TArrayS& isGenPrim,const Bool_t useRecJetPt);
460
461 //
462
463
464 Float_t CalcJetArea(const Float_t etaJet, const Float_t rc) const;
742ee86c 465 void GetClusterTracksOutOf1Jet(AliAODJet* jet, TList* outputlist, Double_t &normFactor);
466 void GetClusterTracksMedian(TList* outputlist, Double_t &normFactor);
467
67e37e80 468 void FillBckgHistos(Int_t type, TList* inputtracklist, TList* inputjetlist, AliAODJet* jet,
469 Float_t leadTrackPt, TLorentzVector* leadTrackV, AliFragFuncHistos* ffbckghistocuts,
470 AliFragFuncHistos* ffbckghistoleading,AliFragFuncIntraJetHistos* ijbckghistocuts,
471 AliFragFuncIntraJetHistos* ijbckghistoleading,AliFragFuncQATrackHistos* qabckghistos);
3af23c82 472 AliAODJet* GetAODBckgSubJet(AliAODJet* jet, Int_t method);
67e37e80 473
d7238ca3 474 // Consts
475
7d9e8b32 476 enum {kTrackUndef=0, kTrackAOD, kTrackAODQualityCuts, kTrackAODCuts, kTrackKineAll, kTrackKineCharged, kTrackKineChargedAcceptance,
477 kTrackAODMCAll, kTrackAODMCCharged, kTrackAODMCChargedAcceptance};
d7238ca3 478 enum {kJetsUndef=0, kJetsRec, kJetsRecAcceptance, kJetsGen, kJetsGenAcceptance, kJetsKine, kJetsKineAcceptance};
742ee86c 479 enum {kBckgPerp=0, kBckgOutLJ, kBckgOut2J, kBckgOut3J, kBckgOutAJ, kBckgOutLJStat, kBckgOut2JStat, kBckgOut3JStat, kBckgOutAJStat, kBckgClusters,
480 kBckgClustersOutLeading, kBckgASide, kBckgASideWindow, kBckgPerpWindow};
67e37e80 481
ac017ff3 482
483 private:
d7238ca3 484
485 Int_t GetListOfTracks(TList* list, Int_t type);
486 Int_t GetListOfJets(TList* list, Int_t type);
742ee86c 487 Int_t GetListOfBckgJets(TList *list, Int_t type);
67e37e80 488
d7238ca3 489 AliESDEvent* fESD; // ESD event
490 AliAODEvent* fAOD; // AOD event
65b4c265 491 //AliMCEvent* fMCEvent; // MC event
d7238ca3 492
742ee86c 493 TString fBranchRecJets; // branch name for reconstructed jets
494 TString fBranchRecBackJets; // branch name for reconstructed background jets
495 TString fBranchRecBckgClusters; // branch name for reconstructed background clusters
496 TString fBranchGenJets; // branch name for generated jets
d7238ca3 497
3af23c82 498 Int_t fTrackTypeGen; // type of generated tracks
499 Int_t fJetTypeGen; // type of generated jets
d7238ca3 500
3af23c82 501 Int_t fJetTypeRecEff; // type of jets used for filling reconstruction efficiency histos
7d9e8b32 502
3af23c82 503 UInt_t fFilterMask; // filter bit for selected tracks
ac017ff3 504 Bool_t fUsePhysicsSelection; // switch for event selection
3af23c82 505 Int_t fEventClass; // event class to be looked at for this instace of the task
506 Float_t fMaxVertexZ; // maximum abs(z) position of primiary vertex [cm]
507
d7238ca3 508 // track cuts
656dc810 509 Float_t fTrackPtCut; // track transverse momentum cut
510 Float_t fTrackEtaMin; // track eta cut
511 Float_t fTrackEtaMax; // track eta cut
512 Float_t fTrackPhiMin; // track phi cut
513 Float_t fTrackPhiMax; // track phi cut
d7238ca3 514
515 // jet cuts
656dc810 516 Float_t fJetPtCut; // jet transverse momentum cut
517 Float_t fJetEtaMin; // jet eta cut
518 Float_t fJetEtaMax; // jet eta cut
519 Float_t fJetPhiMin; // jet phi cut
520 Float_t fJetPhiMax; // jet phi cut
521
522 // di-jet cuts
523 Int_t fDiJetCut; // dijet cut selection
524 Float_t fDiJetDeltaPhiCut; // delta phi cut value
525 Float_t fDiJetPtFractionCut; // fraction of pt cut value
526 Float_t fDiJetCDFCut; // cdf cut value
527
528 Int_t fDiJetKindBins; // type of bins: invmass, etleading, emean
d7238ca3 529
d7238ca3 530 Float_t fFFRadius; // if radius > 0 construct FF from tracks within cone around jet axis, otherwise use trackRefs
1da9498b 531 Float_t fFFBckgRadius; // compute background outside cone of this radius around jet axes
532 Bool_t fBckgMode; // Set background subtraction mode
742ee86c 533 Int_t fBckgType[4]; // Set background subtraction mode
3af23c82 534 Int_t fIJMode; // Set intrajet mode
535 Int_t fQAMode; // QA mode: 0x00=0 none, 0x01=1 track qa, 0x10=2 track qa, 0x11=3 both
536 Int_t fFFMode; // fragmentation function mode
537 Int_t fDJMode; // dijet mode: 0x00=0 none, 0x01=1 di-jet, 0x10=2 di-jet qa, 0x11=3 both
538 Int_t fEffMode; // efficiency mode
539 Int_t fPhiCorrMode; // track phi correlation mode
67e37e80 540
742ee86c 541 Bool_t fUseRecEffRecJetPtBins; // bin track reconstruction efficiency in reconstructed/generated jet pt bins
542 Bool_t fUseResponseRecJetPtBins; // bin track response matrix in reconstructed/generated jet pt bins
cb76764e 543
c2658535 544 Float_t fAvgTrials; // average number of trials per event
d7238ca3 545
7d9e8b32 546 TList* fTracksRec; //! reconstructed tracks
547 TList* fTracksRecCuts; //! reconstructed tracks after cuts
548 TList* fTracksGen; //! generated tracks
549 TList* fTracksAODMCCharged; //! AOD MC tracks
550 TList* fTracksRecQualityCuts; //! reconstructed tracks after quality cuts, no acceptance/pt cut
551
d7238ca3 552
553 TList* fJetsRec; //! jets from reconstructed tracks
554 TList* fJetsRecCuts; //! jets from reonstructed tracks after jet cuts
555 TList* fJetsGen; //! jets from generated tracks
7d9e8b32 556 TList* fJetsRecEff; //! jets used for reconstruction efficiency histos
67e37e80 557 TList* fBckgJetsRec; //! jets from reconstructed tracks
558 TList* fBckgJetsRecCuts; //! jets from reonstructed tracks after jet cuts
559 TList* fBckgJetsGen; //! jets from generated tracks
560
d7238ca3 561
562 AliFragFuncQATrackHistos* fQATrackHistosRec; //! track QA: reconstructed tracks
563 AliFragFuncQATrackHistos* fQATrackHistosRecCuts; //! track QA: reconstructed tracks after cuts
564 AliFragFuncQATrackHistos* fQATrackHistosGen; //! track QA: generated tracks
565
566 AliFragFuncQAJetHistos* fQAJetHistosRec; //! jet QA: jets from reconstructed tracks
567 AliFragFuncQAJetHistos* fQAJetHistosRecCuts; //! jet QA: jets from reconstructed tracks after jet cuts
568 AliFragFuncQAJetHistos* fQAJetHistosRecCutsLeading; //! jet QA: leading jet from reconstructed tracks after jet cuts
569 AliFragFuncQAJetHistos* fQAJetHistosGen; //! jet QA: jets from generated tracks
570 AliFragFuncQAJetHistos* fQAJetHistosGenLeading; //! jet QA: leading jet from generated tracks
7d9e8b32 571 AliFragFuncQAJetHistos* fQAJetHistosRecEffLeading; //! jet QA: leading jet used for reconstruction efficiency histos
d7238ca3 572
7d9e8b32 573
d7238ca3 574 AliFragFuncHistos* fFFHistosRecCuts; //! FF reconstructed tracks after cuts
575 AliFragFuncHistos* fFFHistosRecLeading; //! FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
576 AliFragFuncHistos* fFFHistosRecLeadingTrack; //! FF reconstructed tracks after cuts: leading track pt / jet pt
577 AliFragFuncHistos* fFFHistosGen; //! FF generated tracks after cuts
578 AliFragFuncHistos* fFFHistosGenLeading; //! FF generated tracks after cuts: all generated tracks pt / leading track pt
579 AliFragFuncHistos* fFFHistosGenLeadingTrack; //! FF generated tracks after cuts: leading track pt / jet pt
580
656dc810 581
582 AliFragFuncIntraJetHistos* fIJHistosRecCuts; //! IJ reconstructed tracks after cuts
583 AliFragFuncIntraJetHistos* fIJHistosRecLeading; //! IJ reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
584 AliFragFuncIntraJetHistos* fIJHistosRecLeadingTrack; //! IJ reconstructed tracks after cuts: leading track pt / jet pt
585 AliFragFuncIntraJetHistos* fIJHistosGen; //! IJ generated tracks after cuts
586 AliFragFuncIntraJetHistos* fIJHistosGenLeading; //! IJ generated tracks after cuts: all generated tracks pt / leading track pt
587 AliFragFuncIntraJetHistos* fIJHistosGenLeadingTrack; //! IJ generated tracks after cuts: leading track pt / jet pt
588
589 AliFragFuncDiJetHistos* fFFDiJetHistosRecCuts; //! DiJet FF reconstructed tracks after cuts
590 AliFragFuncDiJetHistos* fFFDiJetHistosRecLeading; //! DiJet FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
591 AliFragFuncDiJetHistos* fFFDiJetHistosRecLeadingTrack; //! DiJet FF reconstructed tracks after cuts: leading track pt / jet pt
592
593 AliFragFuncDiJetHistos* fFFDiJetHistosGen; //! DiJet FF generated tracks after cuts
594 AliFragFuncDiJetHistos* fFFDiJetHistosGenLeading; //! DiJet FF generated tracks after cuts: all generated tracks pt / leading track pt
595 AliFragFuncDiJetHistos* fFFDiJetHistosGenLeadingTrack; //! DiJet FF generated tracks after cuts: leading track pt / jet pt
596
597 AliFragFuncQADiJetHistos* fQADiJetHistosRecCuts; //! Dijet QA : reconstructed tracks after cuts
598 AliFragFuncQADiJetHistos* fQADiJetHistosGen; //! DiJet QA: jets from generated tracks
599
3af23c82 600 AliFragFuncQATrackHistos* fPhiCorrHistosJetArea; //! tracks in area of leading jet (phi = phi_jet - phi_track, eta = eta_track)
601 AliFragFuncQATrackHistos* fPhiCorrHistosTransverseArea; //! tracks in area transverse region (shift of phi by 90�)
602 AliFragFuncQATrackHistos* fPhiCorrHistosAwayArea; //! tracks in area in away region (shift of phi by 180�)
656dc810 603
d7238ca3 604 Float_t fQATrackHighPtThreshold; // track QA high transverse momentum threshold
605
606 // histogram bins
607
608 Int_t fFFNBinsJetPt; // FF histos bins
609 Float_t fFFJetPtMin; // FF histos limits
610 Float_t fFFJetPtMax; // FF histos limits
611
612 Int_t fFFNBinsPt; // FF histos bins
613 Float_t fFFPtMin; // FF histos limits
614 Float_t fFFPtMax; // FF histos limits
615
616 Int_t fFFNBinsXi; // FF histos bins
617 Float_t fFFXiMin; // FF histos limits
618 Float_t fFFXiMax; // FF histos limits
619
620 Int_t fFFNBinsZ; // FF histos bins
621 Float_t fFFZMin; // FF histos limits
622 Float_t fFFZMax; // FF histos limits
623
624 Int_t fQAJetNBinsPt; // jet QA histos bins
625 Float_t fQAJetPtMin; // jet QA histos limits
626 Float_t fQAJetPtMax; // jet QA histos limits
627
628 Int_t fQAJetNBinsEta; // jet QA histos bins
629 Float_t fQAJetEtaMin; // jet QA histos limits
630 Float_t fQAJetEtaMax; // jet QA histos limits
631
632 Int_t fQAJetNBinsPhi; // jet QA histos bins
633 Float_t fQAJetPhiMin; // jet QA histos limits
634 Float_t fQAJetPhiMax; // jet QA histos limits
635
636 Int_t fQATrackNBinsPt; // track QA histos bins
637 Float_t fQATrackPtMin; // track QA histos limits
638 Float_t fQATrackPtMax; // track QA histos limits
639
640 Int_t fQATrackNBinsEta; // track QA histos bins
641 Float_t fQATrackEtaMin; // track QA histos limits
642 Float_t fQATrackEtaMax; // track QA histos limits
643
644 Int_t fQATrackNBinsPhi; // track QA histos bins
645 Float_t fQATrackPhiMin; // track QA histos limits
646 Float_t fQATrackPhiMax; // track QA histos limits
647
656dc810 648 Int_t fIJNBinsJetPt; // IJ histos bins
649 Float_t fIJJetPtMin; // IJ histos limits
650 Float_t fIJJetPtMax; // IJ histos limits
651
652 Int_t fIJNBinsPt; // IJ histos bins
653 Float_t fIJPtMin; // IJ histos limits
654 Float_t fIJPtMax; // IJ histos limits
655
656 Int_t fIJNBinsZ; // IJ histos bins
657 Float_t fIJZMin; // IJ histos limits
658 Float_t fIJZMax; // IJ histos limits
659
660 Int_t fIJNBinsCosTheta; // IJ histos bins
661 Float_t fIJCosThetaMin; // IJ histos limits
662 Float_t fIJCosThetaMax; // IJ histos limits
663
664 Int_t fIJNBinsTheta; // IJ histos bins
665 Float_t fIJThetaMin; // IJ histos limits
666 Float_t fIJThetaMax; // IJ histos limits
667
668 Int_t fIJNBinsJt; // IJ histos bins
669 Float_t fIJJtMin; // IJ histos limits
670 Float_t fIJJtMax; // IJ histos limits
671
672 Int_t fDiJetNBinsJetInvMass; // FF dijet histos bins
673 Float_t fDiJetJetInvMassMin; // FF dijet histos limits
674 Float_t fDiJetJetInvMassMax; // FF dijet histos limits
675 Int_t fDiJetNBinsJetPt; // FF dijet histos bins
676 Float_t fDiJetJetPtMin; // FF dijet histos limits
677 Float_t fDiJetJetPtMax; // FF dijet histos limits
678 Int_t fDiJetNBinsPt; // FF dijet histos bins
679 Float_t fDiJetPtMin; // FF dijet histos limits
680 Float_t fDiJetPtMax; // FF dijet histos limits
681 Int_t fDiJetNBinsXi; // FF dijet histos bins
682 Float_t fDiJetXiMin; // FF dijet histos limits
683 Float_t fDiJetXiMax; // FF dijet histos limits
684 Int_t fDiJetNBinsZ; // FF dijet histos bins
685 Float_t fDiJetZMin; // FF dijet histos limits
686 Float_t fDiJetZMax; // FF dijet histos limits
687
688 Int_t fQADiJetNBinsInvMass; // dijet QA histos bins
689 Float_t fQADiJetInvMassMin; // dijet QA histos limits
690 Float_t fQADiJetInvMassMax; // dijet QA histos limits
691
692 Int_t fQADiJetNBinsJetPt; // dijet QA histos bins
693 Float_t fQADiJetJetPtMin; // dijet QA histos limits
694 Float_t fQADiJetJetPtMax; // dijet QA histos limits
695
696 Int_t fQADiJetNBinsDeltaPhi; // dijet QA histos bins
697 Float_t fQADiJetDeltaPhiMin; // dijet QA histos limits
698 Float_t fQADiJetDeltaPhiMax; // dijet QA histos limits
699
700 Int_t fQADiJetNBinsDeltaEta; // dijet QA histos bins
701 Float_t fQADiJetDeltaEtaMin; // dijet QA histos limits
702 Float_t fQADiJetDeltaEtaMax; // dijet QA histos limits
703
704 Int_t fQADiJetNBinsDeltaPt; // dijet QA histos bins
705 Float_t fQADiJetDeltaPtMin; // dijet QA histos limits
706 Float_t fQADiJetDeltaPtMax; // dijet QA histos limits
707
3af23c82 708 Int_t fQADiJetNBinsInBal; // dijet QA histos bins
709 Float_t fQADiJetInBalMin; // dijet QA histos limits
710 Float_t fQADiJetInBalMax; // dijet QA histos limits
711
712 // phi correlation
713 Int_t fPhiCorrNBinsPt; // track related to jet histos bins
714 Float_t fPhiCorrPtMin; // track related to jet histos limits
715 Float_t fPhiCorrPtMax; // track related to jet histos limits
716
717 Int_t fPhiCorrNBinsEta; // track related to jet histos bins
718 Float_t fPhiCorrEtaMin; // track related to jet histos limits
719 Float_t fPhiCorrEtaMax; // track related to jet histos limits
720
721 Int_t fPhiCorrNBinsPhi; // track related to jet histos bins
722 Float_t fPhiCorrPhiMin; // track related to jet histos limits
723 Float_t fPhiCorrPhiMax; // track related to jet histos limits
724
d7238ca3 725 // Histograms
726 TList *fCommonHistList; // List of common histos
727
728 TH1F *fh1EvtSelection; //! event cuts
729 TH1F *fh1VertexNContributors; //! NContributors to prim vertex
730 TH1F *fh1VertexZ; //! prim vertex z distribution
731 TH1F *fh1EvtMult; //! number of reconstructed tracks after cuts
3af23c82 732 TH1F *fh1EvtCent; //! centrality percentile
ac017ff3 733
734 TProfile* fh1Xsec; //! pythia cross section and trials
735 TH1F* fh1Trials; //! sum of trials
736 TH1F* fh1PtHard; //! pt hard of the event
737 TH1F* fh1PtHardTrials; //! pt hard of the event
738
d7238ca3 739 TH1F *fh1nRecJetsCuts; //! number of jets from reconstructed tracks per event
740 TH1F *fh1nGenJets; //! number of jets from generated tracks per event
7d9e8b32 741 TH1F *fh1nRecEffJets; //! number of jets for reconstruction eff per event
67e37e80 742 TH1F *fh1nRecBckgJetsCuts; //! number of jets from reconstructed tracks per event
743 TH1F *fh1nGenBckgJets; //! number of jets from generated tracks per event
cb76764e 744 TH2F *fh2PtRecVsGenPrim; //! association rec/gen MC: rec vs gen pt
7d9e8b32 745
746 // tracking efficiency
747
cb76764e 748
749 AliFragFuncQATrackHistos* fQATrackHistosRecEffGen; //! tracking efficiency: generated primaries
750 AliFragFuncQATrackHistos* fQATrackHistosRecEffRec; //! tracking efficiency: reconstructed primaries
751
752 AliFragFuncHistos* fFFHistosRecEffGen; //! tracking efficiency: FF generated primaries
753 AliFragFuncHistos* fFFHistosRecEffRec; //! tracking efficiency: FF reconstructed primaries
754
3af23c82 755 // momentum resolution
88e99678 756 THnSparse* fhnResponseSinglePt; //! single track response pt
757 THnSparse* fhnResponseJetTrackPt; //! jet track response pt
758 THnSparse* fhnResponseJetZ; //! jet track response z
759 THnSparse* fhnResponseJetXi; //! jet track response xi
3af23c82 760
d7238ca3 761
1da9498b 762 // Background
763 TH1F *fh1OutLeadingMult; //! background multiplicity outside leading jet
742ee86c 764 TH1F *fh1OutLeadingStatMult; //! background multiplicity outside leading jet (stat)
1da9498b 765 TH1F *fh1PerpMult; //! background multiplicity perpendicular to the leading jet
3af23c82 766 TH1F *fh1ASideMult; //! background multiplicity perpendicular to the leading jet
767 TH1F *fh1ASideWindowMult; //! background multiplicity perpendicular to the leading jet
768 TH1F *fh1PerpWindowMult; //! background multiplicity perpendicular to the leading jet
1da9498b 769 TH1F *fh1Out2JetsMult; //! background multiplicity outside 2 jets
770 TH1F *fh1Out3JetsMult; //! background multiplicity outside 3 jets
742ee86c 771 TH1F *fh1MedianClustersMult; //! background multiplicity median cluster
772 TH1F *fh1OutClustersMult; //! background multiplicity clusters outside leading jet
1da9498b 773
67e37e80 774 AliFragFuncQATrackHistos* fQABckgHisto0RecCuts; //! track QA: reconstructed tracks after cuts
775 AliFragFuncQATrackHistos* fQABckgHisto0Gen; //! track QA: generated tracks
776 AliFragFuncQATrackHistos* fQABckgHisto1RecCuts; //! track QA: reconstructed tracks after cuts
777 AliFragFuncQATrackHistos* fQABckgHisto1Gen; //! track QA: generated tracks
778 AliFragFuncQATrackHistos* fQABckgHisto2RecCuts; //! track QA: reconstructed tracks after cuts
779 AliFragFuncQATrackHistos* fQABckgHisto2Gen; //! track QA: generated tracks
742ee86c 780 AliFragFuncQATrackHistos* fQABckgHisto3RecCuts; //! track QA: reconstructed tracks after cuts
781 AliFragFuncQATrackHistos* fQABckgHisto3Gen; //! track QA: generated tracks
67e37e80 782
783 AliFragFuncHistos* fFFBckgHisto0RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
784 AliFragFuncHistos* fFFBckgHisto0RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
785 AliFragFuncHistos* fFFBckgHisto0Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
786 AliFragFuncHistos* fFFBckgHisto0GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
787 AliFragFuncHistos* fFFBckgHisto1RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
788 AliFragFuncHistos* fFFBckgHisto1RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
789 AliFragFuncHistos* fFFBckgHisto1Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
790 AliFragFuncHistos* fFFBckgHisto1GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
791 AliFragFuncHistos* fFFBckgHisto2RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
792 AliFragFuncHistos* fFFBckgHisto2RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
793 AliFragFuncHistos* fFFBckgHisto2Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
794 AliFragFuncHistos* fFFBckgHisto2GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
742ee86c 795 AliFragFuncHistos* fFFBckgHisto3RecCuts; //! Bckg (outside leading jet or 3 jets or more) FF reconstructed tracks after cuts
796 AliFragFuncHistos* fFFBckgHisto3RecLeading; //! Bckg (outside leading jet or 3 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
797 AliFragFuncHistos* fFFBckgHisto3Gen; //! Bckg (outside leading jet or 3 jets or more) FF generated tracks after cuts
798 AliFragFuncHistos* fFFBckgHisto3GenLeading; //! Bckg (outside leading jet or 3 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
799
67e37e80 800
801 AliFragFuncIntraJetHistos* fIJBckgHisto0RecCuts; //!
802 AliFragFuncIntraJetHistos* fIJBckgHisto0RecLeading; //!
803 AliFragFuncIntraJetHistos* fIJBckgHisto0Gen; //!
804 AliFragFuncIntraJetHistos* fIJBckgHisto0GenLeading; //!
805 AliFragFuncIntraJetHistos* fIJBckgHisto1RecCuts; //!
806 AliFragFuncIntraJetHistos* fIJBckgHisto1RecLeading; //!
807 AliFragFuncIntraJetHistos* fIJBckgHisto1Gen; //!
808 AliFragFuncIntraJetHistos* fIJBckgHisto1GenLeading; //!
809 AliFragFuncIntraJetHistos* fIJBckgHisto2RecCuts; //!
810 AliFragFuncIntraJetHistos* fIJBckgHisto2RecLeading; //!
811 AliFragFuncIntraJetHistos* fIJBckgHisto2Gen; //!
812 AliFragFuncIntraJetHistos* fIJBckgHisto2GenLeading; //!
742ee86c 813 AliFragFuncIntraJetHistos* fIJBckgHisto3RecCuts; //!
814 AliFragFuncIntraJetHistos* fIJBckgHisto3RecLeading; //!
815 AliFragFuncIntraJetHistos* fIJBckgHisto3Gen; //!
816 AliFragFuncIntraJetHistos* fIJBckgHisto3GenLeading; //!
817
67e37e80 818
3af23c82 819 TRandom3* fRandom; // TRandom3 for background estimation
820 Int_t fBckgSubMethod; // Bckg method: 1 = leading jet excluded, 2 = 2 most energetic jets excluded
67e37e80 821
742ee86c 822 ClassDef(AliAnalysisTaskFragmentationFunction, 10);
6bec8236 823};
d7238ca3 824
6bec8236 825#endif