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