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