]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JetTasks/AliAnalysisTaskFragmentationFunction.h
Added fit macro from M. Putis
[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;}
d7238ca3 338 virtual void SetBranchGenJets(const char* c){fBranchGenJets = c;}
339 virtual void SetBranchRecJets(const char* c){fBranchRecJets = c;}
340
656dc810 341 virtual void SetTrackCuts(Float_t trackPt = 0.15, Float_t trackEtaMin = -0.9, Float_t trackEtaMax = 0.9,
342 Float_t trackPhiMin = 0., Float_t trackPhiMax = 2*TMath::Pi())
343 {fTrackPtCut = trackPt; fTrackEtaMin = trackEtaMin; fTrackEtaMax = trackEtaMax;
344 fTrackPhiMin = trackPhiMin; fTrackPhiMax = trackPhiMax;}
d7238ca3 345 virtual void SetFilterMask(UInt_t i) {fFilterMask = i;}
ac017ff3 346 virtual void UsePhysicsSelection(Bool_t b) {fUsePhysicsSelection = b;}
3af23c82 347 virtual void SetEventClass(Int_t i){fEventClass = i;}
348 virtual void SetMaxVertexZ(Float_t z){fMaxVertexZ = z;}
656dc810 349 virtual void SetJetCuts(Float_t jetPt = 5., Float_t jetEtaMin = -0.5, Float_t jetEtaMax = 0.5,
350 Float_t jetPhiMin = 0., Float_t jetPhiMax = 2*TMath::Pi())
351 {fJetPtCut = jetPt; fJetEtaMin = jetEtaMin; fJetEtaMax = jetEtaMax;
352 fJetPhiMin = jetPhiMin; fJetPhiMax = jetPhiMax;}
353 virtual void SetDiJetCuts(Int_t cutType = 1, Float_t deltaPhiCut = 0.,
354 Float_t cdfCut = 0.5, Float_t ptFractionCut = 0.6)
355 {fDiJetCut = cutType; fDiJetDeltaPhiCut = deltaPhiCut;
356 fDiJetCDFCut = cdfCut; fDiJetPtFractionCut = ptFractionCut;}
f3564520 357 virtual void SetKindSlices(Int_t slice = 1) {fDiJetKindBins = slice;}
656dc810 358
d7238ca3 359 virtual void SetFFRadius(Float_t r = 0.4) { fFFRadius = r; }
1da9498b 360 virtual void SetFFBckgRadius(Float_t r = 0.7) { fFFBckgRadius = r; }
361 virtual void SetBckgMode(Bool_t bg = 1) { fBckgMode = bg; }
67e37e80 362 virtual void SetBckgType(Int_t bg0 = 0, Int_t bg1 = 1,Int_t bg2 = 2)
363 { fBckgType[0] = bg0; fBckgType[1] = bg1; fBckgType[2] = bg2;}
3af23c82 364 virtual void SetIJMode(Int_t ij = 1) {fIJMode = ij;}
365 virtual void SetQAMode(Int_t qa = 3) {fQAMode = qa;}
366 virtual void SetFFMode(Int_t ff = 1) {fFFMode = ff;}
367 virtual void SetDJMode(Int_t dj = 1) {fDJMode = dj;}
368 virtual void SetEffMode(Int_t eff = 1) {fEffMode = eff;}
369 virtual void SetPhiCorrMode(Int_t pc = 1) {fPhiCorrMode = pc;}
370 virtual void SetBckgSubMethod(Int_t bg = 2) {fBckgSubMethod = bg;}
67e37e80 371
cb76764e 372 virtual void UseRecEffRecJetPtBins(Bool_t useRec = kTRUE) { fUseRecEffRecJetPtBins = useRec; }
d7238ca3 373
374 static void SetProperties(TH1* h,const char* x, const char* y);
67e37e80 375 static void SetProperties(TH1* h,const char* x, const char* y,const char* z);
3af23c82 376 static void SetProperties(THnSparse* h,const Int_t dim, const char** labels);
d7238ca3 377
378 void SetHighPtThreshold(Float_t pt = 5.) { fQATrackHighPtThreshold = pt; }
379
ac017ff3 380 void SetFFHistoBins(Int_t nJetPt = 245, Float_t jetPtMin = 5, Float_t jetPtMax = 250,
381 Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 382 Int_t nXi = 70, Float_t xiMin = 0., Float_t xiMax = 7.,
383 Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1)
384 { fFFNBinsJetPt = nJetPt; fFFJetPtMin = jetPtMin; fFFJetPtMax = jetPtMax;
385 fFFNBinsPt = nPt; fFFPtMin = ptMin; fFFPtMax = ptMax;
386 fFFNBinsXi = nXi; fFFXiMin = xiMin; fFFXiMax = xiMax;
387 fFFNBinsZ = nZ; fFFZMin = zMin; fFFZMax = zMax; }
388
ac017ff3 389 void SetQAJetHistoBins(Int_t nPt = 300, Float_t ptMin = 0., Float_t ptMax = 300.,
d7238ca3 390 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
391 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
392 { fQAJetNBinsPt = nPt; fQAJetPtMin = ptMin; fQAJetPtMax = ptMax;
393 fQAJetNBinsEta = nEta; fQAJetEtaMin = etaMin; fQAJetEtaMax = etaMax;
394 fQAJetNBinsPhi = nPhi; fQAJetPhiMin = phiMin; fQAJetPhiMax = phiMax; }
395
ac017ff3 396 void SetQATrackHistoBins(Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 397 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
398 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
399 { fQATrackNBinsPt = nPt; fQATrackPtMin = ptMin; fQATrackPtMax = ptMax;
400 fQATrackNBinsEta = nEta; fQATrackEtaMin = etaMin; fQATrackEtaMax = etaMax;
401 fQATrackNBinsPhi = nPhi; fQATrackPhiMin = phiMin; fQATrackPhiMax = phiMax; }
402
3af23c82 403 void SetPhiCorrHistoBins(Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
404 Int_t nEta = 1, Float_t etaMin = -0.9, Float_t etaMax = 0.9,
405 Int_t nPhi = 64, Float_t phiMin = -3.2, Float_t phiMax = 3.2)
406 { fPhiCorrNBinsPt = nPt; fPhiCorrPtMin = ptMin; fPhiCorrPtMax = ptMax;
407 fPhiCorrNBinsEta = nEta; fPhiCorrEtaMin = etaMin; fPhiCorrEtaMax = etaMax;
408 fPhiCorrNBinsPhi = nPhi; fPhiCorrPhiMin = phiMin; fPhiCorrPhiMax = phiMax; }
409
65b4c265 410 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.,
411 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.,
412 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.)
413 { fIJNBinsJetPt = nJetPt; fIJJetPtMin = jetPtMin; fIJJetPtMax = jetPtMax; fIJNBinsPt = nPt; fIJPtMin = ptMin; fIJPtMax = ptMax;
414 fIJNBinsZ = nZ; fIJZMin = zMin; fIJZMax = zMax;fIJNBinsCosTheta = nCosTheta; fIJCosThetaMin = costhetaMin; fIJCosThetaMax = costhetaMax;
415 fIJNBinsTheta = nTheta; fIJThetaMin = thetaMin; fIJThetaMax = thetaMax; fIJNBinsJt = nJt; fIJJtMin = jtMin; fIJJtMax = jtMax; }
416
417 void SetDiJetHistoBins(Int_t nJetInvMass = 245, Float_t jetInvMassMin = 5, Float_t jetInvMassMax = 250, Int_t nJetPt = 245, Float_t jetPtMin = 5,
418 Float_t jetPtMax = 250, Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200., Int_t nXi = 70, Float_t xiMin = 0.,
419 Float_t xiMax = 7., Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1)
656dc810 420 {
65b4c265 421 fDiJetNBinsJetInvMass = nJetInvMass; fDiJetJetInvMassMin = jetInvMassMin; fDiJetJetInvMassMax = jetInvMassMax; fDiJetNBinsJetPt = nJetPt; fDiJetJetPtMin = jetPtMin;
422 fDiJetJetPtMax = jetPtMax; fDiJetNBinsPt = nPt; fDiJetPtMin = ptMin; fDiJetPtMax = ptMax; fDiJetNBinsXi = nXi; fDiJetXiMin = xiMin;
423 fDiJetXiMax = xiMax; fDiJetNBinsZ = nZ; fDiJetZMin = zMin; fDiJetZMax = zMax;
656dc810 424 }
425
65b4c265 426 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,
427 Int_t nDeltaPhi = 100, Float_t deltaPhiMin = 0., Float_t deltaPhiMax = TMath::Pi(), Int_t nDeltaEta = 22, Float_t deltaEtaMin = 0.,
3af23c82 428 Float_t deltaEtaMax = 1.1, Int_t nDeltaPt = 100, Float_t deltaPtMin = 0., Float_t deltaPtMax = 100.,
429 Int_t nInBal = 22, Float_t inBalMin = -1.1, Float_t inBalMax = 1.1)
656dc810 430 {
65b4c265 431 fQADiJetNBinsInvMass = nInvMass; fQADiJetInvMassMin = invMassMin; fQADiJetInvMassMax = invMassMax; fQADiJetNBinsJetPt = nJetPt; fQADiJetJetPtMin = jetPtMin;
432 fQADiJetJetPtMax = jetPtMax; fQADiJetNBinsDeltaPhi = nDeltaPhi; fQADiJetDeltaPhiMin = deltaPhiMin; fQADiJetDeltaPhiMax = deltaPhiMax; fQADiJetNBinsDeltaEta = nDeltaEta;
433 fQADiJetDeltaEtaMin = deltaEtaMin; fQADiJetDeltaEtaMax = deltaEtaMax; fQADiJetNBinsDeltaPt = nDeltaPt; fQADiJetDeltaPtMin = deltaPtMin; fQADiJetDeltaPtMax = deltaPtMax;
3af23c82 434 fQADiJetNBinsInBal = nInBal; fQADiJetInBalMin = inBalMin; fQADiJetInBalMax = inBalMax;
656dc810 435 }
436
437 Float_t GetFFRadius() const { return fFFRadius; }
1da9498b 438 Float_t GetFFBckgRadius() const { return fFFBckgRadius; }
65b4c265 439 void GetJetTracksTrackrefs(TList* l, const AliAODJet* j);
440 void GetJetTracksPointing(TList* in, TList* out, const AliAODJet* j, const Double_t r, Double_t& pt);
3af23c82 441 void GetTracksOutOfNJets(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt);
442 void GetTracksOutOfNJetsStat(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt, Double_t &normFactor);
443 void GetTracksTiltedwrpJetAxis(Float_t alpha, TList* inputlist, TList* outputlist, AliAODJet* jet, Double_t radius, Double_t& sumPt);
444 void GetTracksTiltedwrpJetAxisWindow(Float_t alpha, TList* inputlist, TList* outputlist, AliAODJet* jet, Double_t radius, Double_t& sumPt, Double_t &normFactor);
445
656dc810 446 Double_t GetDiJetBin(Double_t invMass, Double_t leadingJetPt, Double_t eMean, Int_t kindSlices); // function to find which bin fill
65b4c265 447 Double_t InvMass(const AliAODJet* jet1, const AliAODJet* jet2);
7d9e8b32 448 void AssociateGenRec(TList* tracksAODMCCharged,TList* tracksRec, TArrayI& indexAODTr,TArrayI& indexMCTr,TArrayS& isGenPrim);
cb76764e 449 void FillSingleTrackRecEffHisto(AliFragFuncQATrackHistos* trackQAGen, AliFragFuncQATrackHistos* trackQARec, TList* tracksGen, const TArrayI& indexAODTr, const TArrayS& isGenPrim);
3af23c82 450 void FillJetTrackRecEffHisto(TObject* histGen,TObject* histRec,Double_t jetPtGen,Double_t jetPtRec, TList* jetTrackList, const TList* tracksGen,
cb76764e 451 const TArrayI& indexAODTr,const TArrayS& isGenPrim, const Bool_t useRecJetPt);
3af23c82 452
453 void FillSingleTrackResponse(THnSparse* hnResponse, TList* tracksGen, TList* tracksRec, const TArrayI& indexAODTr, const TArrayS& isGenPrim);
454
455 void FillJetTrackResponse(THnSparse* hnResponsePt, THnSparse* hnResponseZ, THnSparse* hnResponseXi,
456 Double_t jetPtGen, Double_t jetPtRec, TList* jetTrackList,
457 const TList* tracksGen, TList* tracksRec, const TArrayI& indexAODTr, const TArrayS& isGenPrim,const Bool_t useRecJetPt);
458
459 //
460
461
462 Float_t CalcJetArea(const Float_t etaJet, const Float_t rc) const;
67e37e80 463 void FillBckgHistos(Int_t type, TList* inputtracklist, TList* inputjetlist, AliAODJet* jet,
464 Float_t leadTrackPt, TLorentzVector* leadTrackV, AliFragFuncHistos* ffbckghistocuts,
465 AliFragFuncHistos* ffbckghistoleading,AliFragFuncIntraJetHistos* ijbckghistocuts,
466 AliFragFuncIntraJetHistos* ijbckghistoleading,AliFragFuncQATrackHistos* qabckghistos);
3af23c82 467 AliAODJet* GetAODBckgSubJet(AliAODJet* jet, Int_t method);
67e37e80 468
d7238ca3 469 // Consts
470
7d9e8b32 471 enum {kTrackUndef=0, kTrackAOD, kTrackAODQualityCuts, kTrackAODCuts, kTrackKineAll, kTrackKineCharged, kTrackKineChargedAcceptance,
472 kTrackAODMCAll, kTrackAODMCCharged, kTrackAODMCChargedAcceptance};
d7238ca3 473 enum {kJetsUndef=0, kJetsRec, kJetsRecAcceptance, kJetsGen, kJetsGenAcceptance, kJetsKine, kJetsKineAcceptance};
3af23c82 474 enum {kBckgPerp=0, kBckgOutLJ, kBckgOut2J, kBckgOut3J, kBckgOutAJ, kBckgOutLJStat, kBckgOut2JStat, kBckgOut3JStat, kBckgOutAJStat, kBckgClusters, kBckgASide, kBckgASideWindow, kBckgPerpWindow};
67e37e80 475
ac017ff3 476
477 private:
d7238ca3 478
479 Int_t GetListOfTracks(TList* list, Int_t type);
480 Int_t GetListOfJets(TList* list, Int_t type);
3af23c82 481 Int_t GetListOfBckgJets(/*TList *list, Int_t type*/) const;
67e37e80 482
d7238ca3 483 AliESDEvent* fESD; // ESD event
484 AliAODEvent* fAOD; // AOD event
65b4c265 485 //AliMCEvent* fMCEvent; // MC event
d7238ca3 486
3af23c82 487 TString fBranchRecJets; // branch name for reconstructed jets
488 TString fBranchRecBackJets; // branch name for reconstructed background jets
489 TString fBranchGenJets; // branch name for generated jets
d7238ca3 490
3af23c82 491 Int_t fTrackTypeGen; // type of generated tracks
492 Int_t fJetTypeGen; // type of generated jets
d7238ca3 493
3af23c82 494 Int_t fJetTypeRecEff; // type of jets used for filling reconstruction efficiency histos
7d9e8b32 495
3af23c82 496 UInt_t fFilterMask; // filter bit for selected tracks
ac017ff3 497 Bool_t fUsePhysicsSelection; // switch for event selection
3af23c82 498 Int_t fEventClass; // event class to be looked at for this instace of the task
499 Float_t fMaxVertexZ; // maximum abs(z) position of primiary vertex [cm]
500
d7238ca3 501 // track cuts
656dc810 502 Float_t fTrackPtCut; // track transverse momentum cut
503 Float_t fTrackEtaMin; // track eta cut
504 Float_t fTrackEtaMax; // track eta cut
505 Float_t fTrackPhiMin; // track phi cut
506 Float_t fTrackPhiMax; // track phi cut
d7238ca3 507
508 // jet cuts
656dc810 509 Float_t fJetPtCut; // jet transverse momentum cut
510 Float_t fJetEtaMin; // jet eta cut
511 Float_t fJetEtaMax; // jet eta cut
512 Float_t fJetPhiMin; // jet phi cut
513 Float_t fJetPhiMax; // jet phi cut
514
515 // di-jet cuts
516 Int_t fDiJetCut; // dijet cut selection
517 Float_t fDiJetDeltaPhiCut; // delta phi cut value
518 Float_t fDiJetPtFractionCut; // fraction of pt cut value
519 Float_t fDiJetCDFCut; // cdf cut value
520
521 Int_t fDiJetKindBins; // type of bins: invmass, etleading, emean
d7238ca3 522
d7238ca3 523 Float_t fFFRadius; // if radius > 0 construct FF from tracks within cone around jet axis, otherwise use trackRefs
1da9498b 524 Float_t fFFBckgRadius; // compute background outside cone of this radius around jet axes
525 Bool_t fBckgMode; // Set background subtraction mode
67e37e80 526 Int_t fBckgType[3]; // Set background subtraction mode
3af23c82 527 Int_t fIJMode; // Set intrajet mode
528 Int_t fQAMode; // QA mode: 0x00=0 none, 0x01=1 track qa, 0x10=2 track qa, 0x11=3 both
529 Int_t fFFMode; // fragmentation function mode
530 Int_t fDJMode; // dijet mode: 0x00=0 none, 0x01=1 di-jet, 0x10=2 di-jet qa, 0x11=3 both
531 Int_t fEffMode; // efficiency mode
532 Int_t fPhiCorrMode; // track phi correlation mode
67e37e80 533
cb76764e 534 Bool_t fUseRecEffRecJetPtBins; // bin track reconstruction efficiency in reconstructed/generated jet pt bins
535
c2658535 536 Float_t fAvgTrials; // average number of trials per event
d7238ca3 537
7d9e8b32 538 TList* fTracksRec; //! reconstructed tracks
539 TList* fTracksRecCuts; //! reconstructed tracks after cuts
540 TList* fTracksGen; //! generated tracks
541 TList* fTracksAODMCCharged; //! AOD MC tracks
542 TList* fTracksRecQualityCuts; //! reconstructed tracks after quality cuts, no acceptance/pt cut
543
d7238ca3 544
545 TList* fJetsRec; //! jets from reconstructed tracks
546 TList* fJetsRecCuts; //! jets from reonstructed tracks after jet cuts
547 TList* fJetsGen; //! jets from generated tracks
7d9e8b32 548 TList* fJetsRecEff; //! jets used for reconstruction efficiency histos
67e37e80 549 TList* fBckgJetsRec; //! jets from reconstructed tracks
550 TList* fBckgJetsRecCuts; //! jets from reonstructed tracks after jet cuts
551 TList* fBckgJetsGen; //! jets from generated tracks
552
d7238ca3 553
554 AliFragFuncQATrackHistos* fQATrackHistosRec; //! track QA: reconstructed tracks
555 AliFragFuncQATrackHistos* fQATrackHistosRecCuts; //! track QA: reconstructed tracks after cuts
556 AliFragFuncQATrackHistos* fQATrackHistosGen; //! track QA: generated tracks
557
558 AliFragFuncQAJetHistos* fQAJetHistosRec; //! jet QA: jets from reconstructed tracks
559 AliFragFuncQAJetHistos* fQAJetHistosRecCuts; //! jet QA: jets from reconstructed tracks after jet cuts
560 AliFragFuncQAJetHistos* fQAJetHistosRecCutsLeading; //! jet QA: leading jet from reconstructed tracks after jet cuts
561 AliFragFuncQAJetHistos* fQAJetHistosGen; //! jet QA: jets from generated tracks
562 AliFragFuncQAJetHistos* fQAJetHistosGenLeading; //! jet QA: leading jet from generated tracks
7d9e8b32 563 AliFragFuncQAJetHistos* fQAJetHistosRecEffLeading; //! jet QA: leading jet used for reconstruction efficiency histos
d7238ca3 564
7d9e8b32 565
d7238ca3 566 AliFragFuncHistos* fFFHistosRecCuts; //! FF reconstructed tracks after cuts
567 AliFragFuncHistos* fFFHistosRecLeading; //! FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
568 AliFragFuncHistos* fFFHistosRecLeadingTrack; //! FF reconstructed tracks after cuts: leading track pt / jet pt
569 AliFragFuncHistos* fFFHistosGen; //! FF generated tracks after cuts
570 AliFragFuncHistos* fFFHistosGenLeading; //! FF generated tracks after cuts: all generated tracks pt / leading track pt
571 AliFragFuncHistos* fFFHistosGenLeadingTrack; //! FF generated tracks after cuts: leading track pt / jet pt
572
656dc810 573
574 AliFragFuncIntraJetHistos* fIJHistosRecCuts; //! IJ reconstructed tracks after cuts
575 AliFragFuncIntraJetHistos* fIJHistosRecLeading; //! IJ reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
576 AliFragFuncIntraJetHistos* fIJHistosRecLeadingTrack; //! IJ reconstructed tracks after cuts: leading track pt / jet pt
577 AliFragFuncIntraJetHistos* fIJHistosGen; //! IJ generated tracks after cuts
578 AliFragFuncIntraJetHistos* fIJHistosGenLeading; //! IJ generated tracks after cuts: all generated tracks pt / leading track pt
579 AliFragFuncIntraJetHistos* fIJHistosGenLeadingTrack; //! IJ generated tracks after cuts: leading track pt / jet pt
580
581 AliFragFuncDiJetHistos* fFFDiJetHistosRecCuts; //! DiJet FF reconstructed tracks after cuts
582 AliFragFuncDiJetHistos* fFFDiJetHistosRecLeading; //! DiJet FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
583 AliFragFuncDiJetHistos* fFFDiJetHistosRecLeadingTrack; //! DiJet FF reconstructed tracks after cuts: leading track pt / jet pt
584
585 AliFragFuncDiJetHistos* fFFDiJetHistosGen; //! DiJet FF generated tracks after cuts
586 AliFragFuncDiJetHistos* fFFDiJetHistosGenLeading; //! DiJet FF generated tracks after cuts: all generated tracks pt / leading track pt
587 AliFragFuncDiJetHistos* fFFDiJetHistosGenLeadingTrack; //! DiJet FF generated tracks after cuts: leading track pt / jet pt
588
589 AliFragFuncQADiJetHistos* fQADiJetHistosRecCuts; //! Dijet QA : reconstructed tracks after cuts
590 AliFragFuncQADiJetHistos* fQADiJetHistosGen; //! DiJet QA: jets from generated tracks
591
3af23c82 592 AliFragFuncQATrackHistos* fPhiCorrHistosJetArea; //! tracks in area of leading jet (phi = phi_jet - phi_track, eta = eta_track)
593 AliFragFuncQATrackHistos* fPhiCorrHistosTransverseArea; //! tracks in area transverse region (shift of phi by 90�)
594 AliFragFuncQATrackHistos* fPhiCorrHistosAwayArea; //! tracks in area in away region (shift of phi by 180�)
656dc810 595
d7238ca3 596 Float_t fQATrackHighPtThreshold; // track QA high transverse momentum threshold
597
598 // histogram bins
599
600 Int_t fFFNBinsJetPt; // FF histos bins
601 Float_t fFFJetPtMin; // FF histos limits
602 Float_t fFFJetPtMax; // FF histos limits
603
604 Int_t fFFNBinsPt; // FF histos bins
605 Float_t fFFPtMin; // FF histos limits
606 Float_t fFFPtMax; // FF histos limits
607
608 Int_t fFFNBinsXi; // FF histos bins
609 Float_t fFFXiMin; // FF histos limits
610 Float_t fFFXiMax; // FF histos limits
611
612 Int_t fFFNBinsZ; // FF histos bins
613 Float_t fFFZMin; // FF histos limits
614 Float_t fFFZMax; // FF histos limits
615
616 Int_t fQAJetNBinsPt; // jet QA histos bins
617 Float_t fQAJetPtMin; // jet QA histos limits
618 Float_t fQAJetPtMax; // jet QA histos limits
619
620 Int_t fQAJetNBinsEta; // jet QA histos bins
621 Float_t fQAJetEtaMin; // jet QA histos limits
622 Float_t fQAJetEtaMax; // jet QA histos limits
623
624 Int_t fQAJetNBinsPhi; // jet QA histos bins
625 Float_t fQAJetPhiMin; // jet QA histos limits
626 Float_t fQAJetPhiMax; // jet QA histos limits
627
628 Int_t fQATrackNBinsPt; // track QA histos bins
629 Float_t fQATrackPtMin; // track QA histos limits
630 Float_t fQATrackPtMax; // track QA histos limits
631
632 Int_t fQATrackNBinsEta; // track QA histos bins
633 Float_t fQATrackEtaMin; // track QA histos limits
634 Float_t fQATrackEtaMax; // track QA histos limits
635
636 Int_t fQATrackNBinsPhi; // track QA histos bins
637 Float_t fQATrackPhiMin; // track QA histos limits
638 Float_t fQATrackPhiMax; // track QA histos limits
639
656dc810 640 Int_t fIJNBinsJetPt; // IJ histos bins
641 Float_t fIJJetPtMin; // IJ histos limits
642 Float_t fIJJetPtMax; // IJ histos limits
643
644 Int_t fIJNBinsPt; // IJ histos bins
645 Float_t fIJPtMin; // IJ histos limits
646 Float_t fIJPtMax; // IJ histos limits
647
648 Int_t fIJNBinsZ; // IJ histos bins
649 Float_t fIJZMin; // IJ histos limits
650 Float_t fIJZMax; // IJ histos limits
651
652 Int_t fIJNBinsCosTheta; // IJ histos bins
653 Float_t fIJCosThetaMin; // IJ histos limits
654 Float_t fIJCosThetaMax; // IJ histos limits
655
656 Int_t fIJNBinsTheta; // IJ histos bins
657 Float_t fIJThetaMin; // IJ histos limits
658 Float_t fIJThetaMax; // IJ histos limits
659
660 Int_t fIJNBinsJt; // IJ histos bins
661 Float_t fIJJtMin; // IJ histos limits
662 Float_t fIJJtMax; // IJ histos limits
663
664 Int_t fDiJetNBinsJetInvMass; // FF dijet histos bins
665 Float_t fDiJetJetInvMassMin; // FF dijet histos limits
666 Float_t fDiJetJetInvMassMax; // FF dijet histos limits
667 Int_t fDiJetNBinsJetPt; // FF dijet histos bins
668 Float_t fDiJetJetPtMin; // FF dijet histos limits
669 Float_t fDiJetJetPtMax; // FF dijet histos limits
670 Int_t fDiJetNBinsPt; // FF dijet histos bins
671 Float_t fDiJetPtMin; // FF dijet histos limits
672 Float_t fDiJetPtMax; // FF dijet histos limits
673 Int_t fDiJetNBinsXi; // FF dijet histos bins
674 Float_t fDiJetXiMin; // FF dijet histos limits
675 Float_t fDiJetXiMax; // FF dijet histos limits
676 Int_t fDiJetNBinsZ; // FF dijet histos bins
677 Float_t fDiJetZMin; // FF dijet histos limits
678 Float_t fDiJetZMax; // FF dijet histos limits
679
680 Int_t fQADiJetNBinsInvMass; // dijet QA histos bins
681 Float_t fQADiJetInvMassMin; // dijet QA histos limits
682 Float_t fQADiJetInvMassMax; // dijet QA histos limits
683
684 Int_t fQADiJetNBinsJetPt; // dijet QA histos bins
685 Float_t fQADiJetJetPtMin; // dijet QA histos limits
686 Float_t fQADiJetJetPtMax; // dijet QA histos limits
687
688 Int_t fQADiJetNBinsDeltaPhi; // dijet QA histos bins
689 Float_t fQADiJetDeltaPhiMin; // dijet QA histos limits
690 Float_t fQADiJetDeltaPhiMax; // dijet QA histos limits
691
692 Int_t fQADiJetNBinsDeltaEta; // dijet QA histos bins
693 Float_t fQADiJetDeltaEtaMin; // dijet QA histos limits
694 Float_t fQADiJetDeltaEtaMax; // dijet QA histos limits
695
696 Int_t fQADiJetNBinsDeltaPt; // dijet QA histos bins
697 Float_t fQADiJetDeltaPtMin; // dijet QA histos limits
698 Float_t fQADiJetDeltaPtMax; // dijet QA histos limits
699
3af23c82 700 Int_t fQADiJetNBinsInBal; // dijet QA histos bins
701 Float_t fQADiJetInBalMin; // dijet QA histos limits
702 Float_t fQADiJetInBalMax; // dijet QA histos limits
703
704 // phi correlation
705 Int_t fPhiCorrNBinsPt; // track related to jet histos bins
706 Float_t fPhiCorrPtMin; // track related to jet histos limits
707 Float_t fPhiCorrPtMax; // track related to jet histos limits
708
709 Int_t fPhiCorrNBinsEta; // track related to jet histos bins
710 Float_t fPhiCorrEtaMin; // track related to jet histos limits
711 Float_t fPhiCorrEtaMax; // track related to jet histos limits
712
713 Int_t fPhiCorrNBinsPhi; // track related to jet histos bins
714 Float_t fPhiCorrPhiMin; // track related to jet histos limits
715 Float_t fPhiCorrPhiMax; // track related to jet histos limits
716
d7238ca3 717 // Histograms
718 TList *fCommonHistList; // List of common histos
719
720 TH1F *fh1EvtSelection; //! event cuts
721 TH1F *fh1VertexNContributors; //! NContributors to prim vertex
722 TH1F *fh1VertexZ; //! prim vertex z distribution
723 TH1F *fh1EvtMult; //! number of reconstructed tracks after cuts
3af23c82 724 TH1F *fh1EvtCent; //! centrality percentile
ac017ff3 725
726 TProfile* fh1Xsec; //! pythia cross section and trials
727 TH1F* fh1Trials; //! sum of trials
728 TH1F* fh1PtHard; //! pt hard of the event
729 TH1F* fh1PtHardTrials; //! pt hard of the event
730
d7238ca3 731 TH1F *fh1nRecJetsCuts; //! number of jets from reconstructed tracks per event
732 TH1F *fh1nGenJets; //! number of jets from generated tracks per event
7d9e8b32 733 TH1F *fh1nRecEffJets; //! number of jets for reconstruction eff per event
67e37e80 734 TH1F *fh1nRecBckgJetsCuts; //! number of jets from reconstructed tracks per event
735 TH1F *fh1nGenBckgJets; //! number of jets from generated tracks per event
cb76764e 736 TH2F *fh2PtRecVsGenPrim; //! association rec/gen MC: rec vs gen pt
7d9e8b32 737
738 // tracking efficiency
739
cb76764e 740
741 AliFragFuncQATrackHistos* fQATrackHistosRecEffGen; //! tracking efficiency: generated primaries
742 AliFragFuncQATrackHistos* fQATrackHistosRecEffRec; //! tracking efficiency: reconstructed primaries
743
744 AliFragFuncHistos* fFFHistosRecEffGen; //! tracking efficiency: FF generated primaries
745 AliFragFuncHistos* fFFHistosRecEffRec; //! tracking efficiency: FF reconstructed primaries
746
3af23c82 747 // momentum resolution
88e99678 748 THnSparse* fhnResponseSinglePt; //! single track response pt
749 THnSparse* fhnResponseJetTrackPt; //! jet track response pt
750 THnSparse* fhnResponseJetZ; //! jet track response z
751 THnSparse* fhnResponseJetXi; //! jet track response xi
3af23c82 752
d7238ca3 753
1da9498b 754 // Background
755 TH1F *fh1OutLeadingMult; //! background multiplicity outside leading jet
756 TH1F *fh1PerpMult; //! background multiplicity perpendicular to the leading jet
3af23c82 757 TH1F *fh1ASideMult; //! background multiplicity perpendicular to the leading jet
758 TH1F *fh1ASideWindowMult; //! background multiplicity perpendicular to the leading jet
759 TH1F *fh1PerpWindowMult; //! background multiplicity perpendicular to the leading jet
1da9498b 760 TH1F *fh1Out2JetsMult; //! background multiplicity outside 2 jets
761 TH1F *fh1Out3JetsMult; //! background multiplicity outside 3 jets
762
67e37e80 763 AliFragFuncQATrackHistos* fQABckgHisto0RecCuts; //! track QA: reconstructed tracks after cuts
764 AliFragFuncQATrackHistos* fQABckgHisto0Gen; //! track QA: generated tracks
765 AliFragFuncQATrackHistos* fQABckgHisto1RecCuts; //! track QA: reconstructed tracks after cuts
766 AliFragFuncQATrackHistos* fQABckgHisto1Gen; //! track QA: generated tracks
767 AliFragFuncQATrackHistos* fQABckgHisto2RecCuts; //! track QA: reconstructed tracks after cuts
768 AliFragFuncQATrackHistos* fQABckgHisto2Gen; //! track QA: generated tracks
769
770 AliFragFuncHistos* fFFBckgHisto0RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
771 AliFragFuncHistos* fFFBckgHisto0RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
772 AliFragFuncHistos* fFFBckgHisto0Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
773 AliFragFuncHistos* fFFBckgHisto0GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
774 AliFragFuncHistos* fFFBckgHisto1RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
775 AliFragFuncHistos* fFFBckgHisto1RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
776 AliFragFuncHistos* fFFBckgHisto1Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
777 AliFragFuncHistos* fFFBckgHisto1GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
778 AliFragFuncHistos* fFFBckgHisto2RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
779 AliFragFuncHistos* fFFBckgHisto2RecLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
780 AliFragFuncHistos* fFFBckgHisto2Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
781 AliFragFuncHistos* fFFBckgHisto2GenLeading; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts: all reconstructed tracks pt / leading track pt
782
783 AliFragFuncIntraJetHistos* fIJBckgHisto0RecCuts; //!
784 AliFragFuncIntraJetHistos* fIJBckgHisto0RecLeading; //!
785 AliFragFuncIntraJetHistos* fIJBckgHisto0Gen; //!
786 AliFragFuncIntraJetHistos* fIJBckgHisto0GenLeading; //!
787 AliFragFuncIntraJetHistos* fIJBckgHisto1RecCuts; //!
788 AliFragFuncIntraJetHistos* fIJBckgHisto1RecLeading; //!
789 AliFragFuncIntraJetHistos* fIJBckgHisto1Gen; //!
790 AliFragFuncIntraJetHistos* fIJBckgHisto1GenLeading; //!
791 AliFragFuncIntraJetHistos* fIJBckgHisto2RecCuts; //!
792 AliFragFuncIntraJetHistos* fIJBckgHisto2RecLeading; //!
793 AliFragFuncIntraJetHistos* fIJBckgHisto2Gen; //!
794 AliFragFuncIntraJetHistos* fIJBckgHisto2GenLeading; //!
795
3af23c82 796 TRandom3* fRandom; // TRandom3 for background estimation
797 Int_t fBckgSubMethod; // Bckg method: 1 = leading jet excluded, 2 = 2 most energetic jets excluded
67e37e80 798
3af23c82 799 ClassDef(AliAnalysisTaskFragmentationFunction, 9);
6bec8236 800};
d7238ca3 801
6bec8236 802#endif