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