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