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