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