Fix for coverity (AdC)
[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
ce55b926 5#ifndef ALIANALYSISTASKFRAGMENTATIONFUNCTIONN_H
6#define ALIANALYSISTASKFRAGMENTATIONFUNCTIONN_H
d7238ca3 7
6bec8236 8/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
9 * See cxx source for full Copyright notice */
f32b5a77 10
d7238ca3 11/* $Id$ */
6bec8236 12
d7238ca3 13class AliESDEvent;
14class AliAODEvent;
8c483a6b 15class AliAODJet;
40445651 16class AliAODExtension;
d7238ca3 17class TList;
6bec8236 18class TH1F;
d7238ca3 19class TH2F;
67e37e80 20class TH3F;
ac017ff3 21class TProfile;
3af23c82 22class THnSparse;
67e37e80 23class TRandom3;
ec3847a1 24class TArrayS;
ce55b926 25class AliAODTrack;
2b3fb225 26class AliAODMCParticle;
d7238ca3 27
d7238ca3 28#include "AliAnalysisTaskSE.h"
ce55b926 29#include "TAxis.h"
30#include "THnSparse.h"
31
d7238ca3 32class AliAnalysisTaskFragmentationFunction : public AliAnalysisTaskSE {
6bec8236 33
6bec8236 34 public:
656dc810 35
36 //----------------------------------------
d7238ca3 37 class AliFragFuncHistos : public TObject
38 {
656dc810 39
40 public:
d7238ca3 41
42 AliFragFuncHistos(const char* name = "FFhistos",
ce55b926 43 Int_t nJetPt = 0, Float_t jetPtMin = 0, Float_t jetPtMax = 0,
44 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
45 Int_t nXi = 0, Float_t xiMin = 0, Float_t xiMax = 0,
46 Int_t nZ = 0, Float_t zMin = 0, Float_t zMax = 0);
47
d7238ca3 48 AliFragFuncHistos(const AliFragFuncHistos& copy);
49 AliFragFuncHistos& operator=(const AliFragFuncHistos &o);
50 virtual ~AliFragFuncHistos();
51
52 virtual void DefineHistos();
ce55b926 53 virtual void FillFF(Float_t trackPt, Float_t jetPt,Bool_t incrementJetPt, Float_t norm = 0, Bool_t scaleStrangeness = kFALSE, Float_t scaleFacStrangeness = 1.);
4eea499f 54
d7238ca3 55 virtual void AddToOutput(TList* list) const;
56
57 private:
58
59 Int_t fNBinsJetPt; // FF histos bins
60 Float_t fJetPtMin; // FF histos limits
61 Float_t fJetPtMax; // FF histos limits
62 Int_t fNBinsPt; // FF histos bins
63 Float_t fPtMin; // FF histos limits
64 Float_t fPtMax; // FF histos limits
65 Int_t fNBinsXi; // FF histos bins
66 Float_t fXiMin; // FF histos limits
67 Float_t fXiMax; // FF histos limits
68 Int_t fNBinsZ; // FF histos bins
69 Float_t fZMin; // FF histos limits
70 Float_t fZMax; // FF histos limits
6bec8236 71
656dc810 72 TH2F* fh2TrackPt; //! FF: track transverse momentum
73 TH2F* fh2Xi; //! FF: xi
74 TH2F* fh2Z; //! FF: z
75 TH1F* fh1JetPt; //! jet pt
d7238ca3 76
65b4c265 77 TString fNameFF; // histo names prefix
d7238ca3 78
79 ClassDef(AliFragFuncHistos, 1);
80 };
81
656dc810 82 //----------------------------------------
d7238ca3 83 class AliFragFuncQAJetHistos : public TObject
84 {
85
86 public:
6bec8236 87
d7238ca3 88 AliFragFuncQAJetHistos(const char* name = "QAJethistos",
89 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
90 Int_t nEta = 0, Float_t etaMin = 0, Float_t etaMax = 0,
91 Int_t nPhi = 0, Float_t phiMin = 0, Float_t phiMax = 0);
92
93 AliFragFuncQAJetHistos(const AliFragFuncQAJetHistos& copy);
94 AliFragFuncQAJetHistos& operator=(const AliFragFuncQAJetHistos &o);
95 virtual ~AliFragFuncQAJetHistos();
96 virtual void DefineHistos();
97 virtual void FillJetQA(Float_t eta, Float_t phi, Float_t pt);
98 virtual void AddToOutput(TList* list) const;
99
100 private:
101
102 Int_t fNBinsPt; // jet QA histos bins
103 Float_t fPtMin; // jet QA histos limits
104 Float_t fPtMax; // jet QA histos limits
105 Int_t fNBinsEta; // jet QA histos bins
106 Float_t fEtaMin; // jet QA histos limits
107 Float_t fEtaMax; // jet QA histos limits
108 Int_t fNBinsPhi; // jet QA histos bins
109 Float_t fPhiMin; // jet QA histos limits
110 Float_t fPhiMax; // jet QA histos limits
111
112 TH2F* fh2EtaPhi; //! jet phi vs eta
113 TH1F* fh1Pt; //! jet transverse momentum
65b4c265 114 TString fNameQAJ; // histo names prefix
d7238ca3 115
116 ClassDef(AliFragFuncQAJetHistos, 1);
117 };
118
656dc810 119 //----------------------------------------
d7238ca3 120 class AliFragFuncQATrackHistos : public TObject
121 {
122
123 public:
124
125 AliFragFuncQATrackHistos(const char* name = "QATrackhistos",
126 Int_t nPt = 0, Float_t ptMin = 0, Float_t ptMax = 0,
127 Int_t nEta = 0, Float_t etaMin = 0, Float_t etaMax = 0,
128 Int_t nPhi = 0, Float_t phiMin = 0, Float_t phiMax = 0,
129 Float_t ptThresh = 0);
130
131 AliFragFuncQATrackHistos(const AliFragFuncQATrackHistos& copy);
132 AliFragFuncQATrackHistos& operator=(const AliFragFuncQATrackHistos &o);
133 virtual ~AliFragFuncQATrackHistos();
134 virtual void DefineHistos();
ce55b926 135 virtual void FillTrackQA(Float_t eta, Float_t phi, Float_t pt, Bool_t weightPt = kFALSE, Float_t norm = 0., Bool_t scaleStrangeness = kFALSE, Float_t scaleFacStrangeness = 1.);
d7238ca3 136 virtual void AddToOutput(TList* list) const;
137
138 private:
139
656dc810 140 Int_t fNBinsPt; // track QA histos bins in pt
141 Float_t fPtMin; // track QA histos limits in pt
142 Float_t fPtMax; // track QA histos limits in pt
143 Int_t fNBinsEta; // track QA histos bins in eta
144 Float_t fEtaMin; // track QA histos limits in eta
145 Float_t fEtaMax; // track QA histos limits in eta
146 Int_t fNBinsPhi; // track QA histos bins in phi
147 Float_t fPhiMin; // track QA histos limits in phi
148 Float_t fPhiMax; // track QA histos limits in phi
d7238ca3 149
150 Float_t fHighPtThreshold; // high pt track phi vs eta distribution
151
656dc810 152 TH2F* fh2EtaPhi; //! track phi vs eta
153 TH1F* fh1Pt; //! track transverse momentum
154 TH2F* fh2HighPtEtaPhi; //! phi vs eta for high pt (>fgHighPtThreshold) tracks
3af23c82 155 TH2F* fh2PhiPt; //! track phi vs pt
d7238ca3 156
65b4c265 157 TString fNameQAT; // histo names prefix
d7238ca3 158
3af23c82 159 ClassDef(AliFragFuncQATrackHistos, 2);
d7238ca3 160 };
161
162
163 AliAnalysisTaskFragmentationFunction();
164 AliAnalysisTaskFragmentationFunction(const char *name);
165 AliAnalysisTaskFragmentationFunction(const AliAnalysisTaskFragmentationFunction &copy);
166 AliAnalysisTaskFragmentationFunction& operator=(const AliAnalysisTaskFragmentationFunction &o);
167 virtual ~AliAnalysisTaskFragmentationFunction();
168
169 virtual void UserCreateOutputObjects();
170 virtual void Init();
171 virtual void LocalInit() {Init();}
4eea499f 172
d7238ca3 173 virtual void UserExec(Option_t *option);
174 virtual void Terminate(Option_t* );
ac017ff3 175 virtual Bool_t Notify();
4eea499f 176
40445651 177 virtual void SetNonStdFile(char* c){fNonStdFile = c;}
178
d7238ca3 179 virtual void SetTrackTypeGen(Int_t i){fTrackTypeGen = i;}
180 virtual void SetJetTypeGen(Int_t i){fJetTypeGen = i;}
7d9e8b32 181 virtual void SetJetTypeRecEff(Int_t i){fJetTypeRecEff = i;}
d7238ca3 182
742ee86c 183 virtual void SetBranchRecBackClusters(const char* c){fBranchRecBckgClusters = c;}
d7238ca3 184 virtual void SetBranchGenJets(const char* c){fBranchGenJets = c;}
185 virtual void SetBranchRecJets(const char* c){fBranchRecJets = c;}
39e2b057 186 virtual void SetBranchEmbeddedJets(const char* c){fBranchEmbeddedJets = c;}
d7238ca3 187
656dc810 188 virtual void SetTrackCuts(Float_t trackPt = 0.15, Float_t trackEtaMin = -0.9, Float_t trackEtaMax = 0.9,
189 Float_t trackPhiMin = 0., Float_t trackPhiMax = 2*TMath::Pi())
190 {fTrackPtCut = trackPt; fTrackEtaMin = trackEtaMin; fTrackEtaMax = trackEtaMax;
191 fTrackPhiMin = trackPhiMin; fTrackPhiMax = trackPhiMax;}
d5e8640d 192
39e2b057 193 virtual void UseExtraTracks() { fUseExtraTracks = 1;}
194 virtual void UseExtraonlyTracks() { fUseExtraTracks = -1;}
195
196 virtual void UseExtraTracksBgr() { fUseExtraTracksBgr = 1;}
197 virtual void UseExtraonlyTracksBgr() { fUseExtraTracksBgr = -1;}
198
199 virtual void SetCutFractionPtEmbedded(Float_t cut = 0) { fCutFractionPtEmbedded = cut; }
200 virtual void SetUseEmbeddedJetAxis(Bool_t b = kTRUE) { fUseEmbeddedJetAxis = b; }
201 virtual void SetUseEmbeddedJetPt(Bool_t b = kTRUE) { fUseEmbeddedJetPt = b; }
202
d5e8640d 203 virtual void UseAODInputJets(Bool_t b) {fUseAODInputJets = b;}
d7238ca3 204 virtual void SetFilterMask(UInt_t i) {fFilterMask = i;}
ac017ff3 205 virtual void UsePhysicsSelection(Bool_t b) {fUsePhysicsSelection = b;}
b541fbca 206 virtual void SetEventSelectionMask(UInt_t i){fEvtSelectionMask = i;}
3af23c82 207 virtual void SetEventClass(Int_t i){fEventClass = i;}
208 virtual void SetMaxVertexZ(Float_t z){fMaxVertexZ = z;}
cc096464 209 virtual void SetJetMinArea(Float_t cut){ fJetMinArea = cut; }
210
e84e0b8d 211 virtual void RejectPileupEvents(Bool_t b){fRejectPileup = b;}
656dc810 212 virtual void SetJetCuts(Float_t jetPt = 5., Float_t jetEtaMin = -0.5, Float_t jetEtaMax = 0.5,
213 Float_t jetPhiMin = 0., Float_t jetPhiMax = 2*TMath::Pi())
214 {fJetPtCut = jetPt; fJetEtaMin = jetEtaMin; fJetEtaMax = jetEtaMax;
215 fJetPhiMin = jetPhiMin; fJetPhiMax = jetPhiMax;}
656dc810 216
d7238ca3 217 virtual void SetFFRadius(Float_t r = 0.4) { fFFRadius = r; }
ce55b926 218 virtual void SetFFMinLTrackPt(Float_t pt = -1) { fFFMinLTrackPt = pt; }
6daac008 219 virtual void SetFFMaxTrackPt(Float_t pt = -1) { fFFMaxTrackPt = pt; }
220 virtual void SetFFMinNTracks(Int_t nTracks = 0) { fFFMinnTracks = nTracks; }
1da9498b 221 virtual void SetFFBckgRadius(Float_t r = 0.7) { fFFBckgRadius = r; }
222 virtual void SetBckgMode(Bool_t bg = 1) { fBckgMode = bg; }
ce55b926 223 virtual void SetBckgType(Int_t bg0 = 0, Int_t bg1 = 0,Int_t bg2 = 0, Int_t bg3 = 0, Int_t bg4 = 0)
3170a3f8 224 { fBckgType[0] = bg0; fBckgType[1] = bg1; fBckgType[2] = bg2; fBckgType[3] = bg3; fBckgType[4] = bg4; }
3af23c82 225 virtual void SetQAMode(Int_t qa = 3) {fQAMode = qa;}
226 virtual void SetFFMode(Int_t ff = 1) {fFFMode = ff;}
3af23c82 227 virtual void SetEffMode(Int_t eff = 1) {fEffMode = eff;}
ce55b926 228 virtual void SetJSMode(Int_t js = 1) {fJSMode = js;}
d7238ca3 229
230 static void SetProperties(TH1* h,const char* x, const char* y);
67e37e80 231 static void SetProperties(TH1* h,const char* x, const char* y,const char* z);
34e8fe1d 232 static void SetProperties(THnSparse* h, Int_t dim, const char** labels);
d7238ca3 233
234 void SetHighPtThreshold(Float_t pt = 5.) { fQATrackHighPtThreshold = pt; }
235
ac017ff3 236 void SetFFHistoBins(Int_t nJetPt = 245, Float_t jetPtMin = 5, Float_t jetPtMax = 250,
237 Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 238 Int_t nXi = 70, Float_t xiMin = 0., Float_t xiMax = 7.,
239 Int_t nZ = 22, Float_t zMin = 0., Float_t zMax = 1.1)
240 { fFFNBinsJetPt = nJetPt; fFFJetPtMin = jetPtMin; fFFJetPtMax = jetPtMax;
241 fFFNBinsPt = nPt; fFFPtMin = ptMin; fFFPtMax = ptMax;
242 fFFNBinsXi = nXi; fFFXiMin = xiMin; fFFXiMax = xiMax;
243 fFFNBinsZ = nZ; fFFZMin = zMin; fFFZMax = zMax; }
b541fbca 244
ac017ff3 245 void SetQAJetHistoBins(Int_t nPt = 300, Float_t ptMin = 0., Float_t ptMax = 300.,
d7238ca3 246 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
247 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
248 { fQAJetNBinsPt = nPt; fQAJetPtMin = ptMin; fQAJetPtMax = ptMax;
249 fQAJetNBinsEta = nEta; fQAJetEtaMin = etaMin; fQAJetEtaMax = etaMax;
250 fQAJetNBinsPhi = nPhi; fQAJetPhiMin = phiMin; fQAJetPhiMax = phiMax; }
251
ac017ff3 252 void SetQATrackHistoBins(Int_t nPt = 200, Float_t ptMin = 0., Float_t ptMax = 200.,
d7238ca3 253 Int_t nEta = 20, Float_t etaMin = -1.0, Float_t etaMax = 1.0,
254 Int_t nPhi = 60, Float_t phiMin = 0., Float_t phiMax = 2*TMath::Pi())
255 { fQATrackNBinsPt = nPt; fQATrackPtMin = ptMin; fQATrackPtMax = ptMax;
256 fQATrackNBinsEta = nEta; fQATrackEtaMin = etaMin; fQATrackEtaMax = etaMax;
257 fQATrackNBinsPhi = nPhi; fQATrackPhiMin = phiMin; fQATrackPhiMax = phiMax; }
258
ce55b926 259
cc096464 260 Float_t GetJetMinArea() const { return fJetMinArea; }
656dc810 261 Float_t GetFFRadius() const { return fFFRadius; }
ce55b926 262 Float_t GetFFMinLTrackPt() const { return fFFMinLTrackPt; }
6daac008 263 Float_t GetFFMaxTrackPt() const { return fFFMaxTrackPt; }
264 Float_t GetFFMinNTracks() const { return fFFMinnTracks; }
1da9498b 265 Float_t GetFFBckgRadius() const { return fFFBckgRadius; }
34e8fe1d 266 void GetJetTracksTrackrefs(TList* l, const AliAODJet* j, Double_t minPtL, Double_t maxPt, Bool_t& isBadPt);
267 void GetJetTracksPointing(TList* in, TList* out, const AliAODJet* j, Double_t r, Double_t& sumPt, Double_t minPtL, Double_t maxPt, Bool_t& isBadPt);
3af23c82 268 void GetTracksOutOfNJets(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt);
269 void GetTracksOutOfNJetsStat(Int_t nCases, TList* in, TList* out, TList* jets, Double_t& pt, Double_t &normFactor);
a5592cfa 270 void GetTracksTiltedwrpJetAxis(Float_t alpha, TList* inputlist, TList* outputlist, const AliAODJet* jet, Double_t radius, Double_t& sumPt);
271 void GetTracksTiltedwrpJetAxisWindow(Float_t alpha, TList* inputlist, TList* outputlist, const AliAODJet* jet, Double_t radius, Double_t& sumPt, Double_t &normFactor);
3af23c82 272
d5e8640d 273 void AssociateGenRec(TList* tracksAODMCCharged,TList* tracksRec, TArrayI& indexAODTr,TArrayI& indexMCTr,TArrayS& isRefGen,TH2F* fh2PtRecVsGen);
274
275 void FillSingleTrackHistosRecGen(AliFragFuncQATrackHistos* trackQAGen, AliFragFuncQATrackHistos* trackQARec, TList* tracksGen,
e01f44d3 276 const TArrayI& indexAODTr, const TArrayS& isRefGen, Bool_t scaleStrangeness = kFALSE);
3af23c82 277
39e2b057 278
ce55b926 279 void FillJetTrackHistosRec(AliFragFuncHistos* histRec, AliAODJet* jet,
280 TList* jetTrackList, const TList* tracksGen, const TList* tracksRec, const TArrayI& indexAODTr,
e01f44d3 281 const TArrayS& isRefGen, TList* jetTrackListTR = 0, Bool_t scaleStrangeness = kFALSE,
ce55b926 282 Bool_t fillJS = kFALSE, TProfile* hProNtracksLeadingJet = 0, TProfile** hProDelRPtSum = 0, TProfile* hProDelR80pcPt = 0);
3af23c82 283
284
34e8fe1d 285 Float_t CalcJetArea(const Float_t etaJet, Float_t rc) const;
742ee86c 286 void GetClusterTracksOutOf1Jet(AliAODJet* jet, TList* outputlist, Double_t &normFactor);
287 void GetClusterTracksMedian(TList* outputlist, Double_t &normFactor);
288
67e37e80 289 void FillBckgHistos(Int_t type, TList* inputtracklist, TList* inputjetlist, AliAODJet* jet,
ce55b926 290 AliFragFuncHistos* ffbckghistocuts,AliFragFuncQATrackHistos* qabckghistos,TH1F* fh1Mult = 0);
291
34e8fe1d 292 Double_t GetMCStrangenessFactor(Double_t pt);
2b3fb225 293 Double_t GetMCStrangenessFactorCMS(AliAODMCParticle* daughter);
294
ce55b926 295 void FillJetShape(AliAODJet* jet, TList* list, TProfile* hProNtracksLeadingJet, TProfile** hProDelRPtSum, TProfile* hProDelR80pcPt=0, Double_t dPhiUE=0, Double_t normUE = 0, Bool_t scaleStrangeness = kFALSE);
67e37e80 296
4eea499f 297
d7238ca3 298 // Consts
39e2b057 299 enum {kTrackUndef=0, kTrackAOD, kTrackAODQualityCuts, kTrackAODCuts,
300 kTrackAODExtra, kTrackAODExtraonly, kTrackAODExtraCuts, kTrackAODExtraonlyCuts,
301 kTrackKineAll, kTrackKineCharged, kTrackKineChargedAcceptance,
ce55b926 302 kTrackAODMCAll, kTrackAODMCCharged, kTrackAODMCChargedAcceptance, kTrackAODMCChargedSecS, kTrackAODMCChargedSecNS, kTrackAOCMCChargedPrimAcceptance};
39e2b057 303 enum {kJetsUndef=0, kJetsRec, kJetsRecAcceptance, kJetsGen, kJetsGenAcceptance, kJetsKine, kJetsKineAcceptance,kJetsEmbedded};
ce55b926 304 enum {kBckgNone=0, kBckgPerp, kBckgOutLJ, kBckgOut2J, kBckgClusters, kBckgClustersOutLeading, kBckgOut3J, kBckgOutAJ, kBckgOutLJStat,
305 kBckgOut2JStat, kBckgOut3JStat, kBckgOutAJStat, kBckgASide, kBckgASideWindow, kBckgPerpWindow, kBckgPerp2, kBckgPerp2Area};
67e37e80 306
ac017ff3 307
96c271c1 308 protected:
d7238ca3 309
310 Int_t GetListOfTracks(TList* list, Int_t type);
311 Int_t GetListOfJets(TList* list, Int_t type);
742ee86c 312 Int_t GetListOfBckgJets(TList *list, Int_t type);
67e37e80 313
d7238ca3 314 AliESDEvent* fESD; // ESD event
315 AliAODEvent* fAOD; // AOD event
d5e8640d 316 AliAODEvent* fAODJets; // AOD event with jet branch (case we have AOD both in input and output)
40445651 317 AliAODExtension *fAODExtension; //! where we take the jets from can be input or output AOD
40445651 318 TString fNonStdFile; // name of delta aod file to catch the extension
319
320
742ee86c 321 TString fBranchRecJets; // branch name for reconstructed jets
742ee86c 322 TString fBranchRecBckgClusters; // branch name for reconstructed background clusters
323 TString fBranchGenJets; // branch name for generated jets
39e2b057 324 TString fBranchEmbeddedJets; // branch name for embedded jets
325
3af23c82 326 Int_t fTrackTypeGen; // type of generated tracks
327 Int_t fJetTypeGen; // type of generated jets
d7238ca3 328
3af23c82 329 Int_t fJetTypeRecEff; // type of jets used for filling reconstruction efficiency histos
7d9e8b32 330
d5e8640d 331 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 332 UInt_t fFilterMask; // filter bit for selected tracks
ac017ff3 333 Bool_t fUsePhysicsSelection; // switch for event selection
b541fbca 334 UInt_t fEvtSelectionMask; // trigger class selection
335 Int_t fEventClass; // centrality class selection
3af23c82 336 Float_t fMaxVertexZ; // maximum abs(z) position of primiary vertex [cm]
e84e0b8d 337 Bool_t fRejectPileup; // SPD pileup rejection
3af23c82 338
d7238ca3 339 // track cuts
656dc810 340 Float_t fTrackPtCut; // track transverse momentum cut
341 Float_t fTrackEtaMin; // track eta cut
342 Float_t fTrackEtaMax; // track eta cut
343 Float_t fTrackPhiMin; // track phi cut
344 Float_t fTrackPhiMax; // track phi cut
d7238ca3 345
39e2b057 346 Int_t fUseExtraTracks; // +/- 1: embedded extra/extra only tracks, default: 0 (ignore extra tracks)
347 Int_t fUseExtraTracksBgr; // +/- 1: background: use embedded extra/extra only tracks, default: 0 (ignore extra tracks)
348 Float_t fCutFractionPtEmbedded; // cut on ratio of embedded pt found in jet
349 Bool_t fUseEmbeddedJetAxis; // use axis of embedded jet for FF
350 Bool_t fUseEmbeddedJetPt; // use axis of embedded jet for FF
351
d7238ca3 352 // jet cuts
656dc810 353 Float_t fJetPtCut; // jet transverse momentum cut
354 Float_t fJetEtaMin; // jet eta cut
355 Float_t fJetEtaMax; // jet eta cut
356 Float_t fJetPhiMin; // jet phi cut
357 Float_t fJetPhiMax; // jet phi cut
cc096464 358 Float_t fJetMinArea; // jet area cut
656dc810 359
d7238ca3 360 Float_t fFFRadius; // if radius > 0 construct FF from tracks within cone around jet axis, otherwise use trackRefs
ce55b926 361 Float_t fFFMinLTrackPt; // reject jets with leading track with pt smaller than this value
6daac008 362 Float_t fFFMaxTrackPt; // reject jets containing any track with pt larger than this value
363 Int_t fFFMinnTracks; // reject jets with less tracks than this value
1da9498b 364 Float_t fFFBckgRadius; // compute background outside cone of this radius around jet axes
365 Bool_t fBckgMode; // Set background subtraction mode
3170a3f8 366 Int_t fBckgType[5]; // Set background subtraction mode
3af23c82 367 Int_t fQAMode; // QA mode: 0x00=0 none, 0x01=1 track qa, 0x10=2 track qa, 0x11=3 both
368 Int_t fFFMode; // fragmentation function mode
3af23c82 369 Int_t fEffMode; // efficiency mode
ce55b926 370 Int_t fJSMode; // jet shape mode
cb76764e 371
c2658535 372 Float_t fAvgTrials; // average number of trials per event
d7238ca3 373
ce55b926 374 TList* fTracksRecCuts; //! reconstructed tracks after cuts
375 TList* fTracksGen; //! generated tracks
376 TList* fTracksAODMCCharged; //! AOD MC tracks
377 TList* fTracksAODMCChargedSecNS; //! AOD MC tracks - secondaries (non-strangeness)
378 TList* fTracksAODMCChargedSecS; //! AOD MC tracks - secondaries (from strangeness)
379 TList* fTracksRecQualityCuts; //! reconstructed tracks after quality cuts, no acceptance/pt cut
7d9e8b32 380
d7238ca3 381
382 TList* fJetsRec; //! jets from reconstructed tracks
383 TList* fJetsRecCuts; //! jets from reonstructed tracks after jet cuts
384 TList* fJetsGen; //! jets from generated tracks
7d9e8b32 385 TList* fJetsRecEff; //! jets used for reconstruction efficiency histos
39e2b057 386 TList* fJetsEmbedded; //! jets used for embedding
387
67e37e80 388 TList* fBckgJetsRec; //! jets from reconstructed tracks
389 TList* fBckgJetsRecCuts; //! jets from reonstructed tracks after jet cuts
390 TList* fBckgJetsGen; //! jets from generated tracks
391
d7238ca3 392
d7238ca3 393 AliFragFuncQATrackHistos* fQATrackHistosRecCuts; //! track QA: reconstructed tracks after cuts
394 AliFragFuncQATrackHistos* fQATrackHistosGen; //! track QA: generated tracks
395
396 AliFragFuncQAJetHistos* fQAJetHistosRec; //! jet QA: jets from reconstructed tracks
397 AliFragFuncQAJetHistos* fQAJetHistosRecCuts; //! jet QA: jets from reconstructed tracks after jet cuts
398 AliFragFuncQAJetHistos* fQAJetHistosRecCutsLeading; //! jet QA: leading jet from reconstructed tracks after jet cuts
399 AliFragFuncQAJetHistos* fQAJetHistosGen; //! jet QA: jets from generated tracks
400 AliFragFuncQAJetHistos* fQAJetHistosGenLeading; //! jet QA: leading jet from generated tracks
7d9e8b32 401 AliFragFuncQAJetHistos* fQAJetHistosRecEffLeading; //! jet QA: leading jet used for reconstruction efficiency histos
d7238ca3 402
7d9e8b32 403
37f35567 404 AliFragFuncHistos* fFFHistosRecCuts; //! FF reconstructed tracks after cuts (leading jet)
405 AliFragFuncHistos* fFFHistosRecCutsInc; //! inclusive FF (all jets)
406 AliFragFuncHistos* fFFHistosRecLeadingTrack; //! FF reconstructed tracks after cuts: leading track pt / jet pt (all jets)
407
d7238ca3 408 AliFragFuncHistos* fFFHistosGen; //! FF generated tracks after cuts
37f35567 409 AliFragFuncHistos* fFFHistosGenInc; //! inclusive FF (all jets)
410 AliFragFuncHistos* fFFHistosGenLeadingTrack; //! FF reconstructed tracks after cuts: leading track pt / jet pt (all jets)
656dc810 411
d7238ca3 412 Float_t fQATrackHighPtThreshold; // track QA high transverse momentum threshold
413
414 // histogram bins
415
416 Int_t fFFNBinsJetPt; // FF histos bins
417 Float_t fFFJetPtMin; // FF histos limits
418 Float_t fFFJetPtMax; // FF histos limits
419
420 Int_t fFFNBinsPt; // FF histos bins
421 Float_t fFFPtMin; // FF histos limits
422 Float_t fFFPtMax; // FF histos limits
423
424 Int_t fFFNBinsXi; // FF histos bins
425 Float_t fFFXiMin; // FF histos limits
426 Float_t fFFXiMax; // FF histos limits
427
428 Int_t fFFNBinsZ; // FF histos bins
429 Float_t fFFZMin; // FF histos limits
430 Float_t fFFZMax; // FF histos limits
431
432 Int_t fQAJetNBinsPt; // jet QA histos bins
433 Float_t fQAJetPtMin; // jet QA histos limits
434 Float_t fQAJetPtMax; // jet QA histos limits
435
436 Int_t fQAJetNBinsEta; // jet QA histos bins
437 Float_t fQAJetEtaMin; // jet QA histos limits
438 Float_t fQAJetEtaMax; // jet QA histos limits
439
440 Int_t fQAJetNBinsPhi; // jet QA histos bins
441 Float_t fQAJetPhiMin; // jet QA histos limits
442 Float_t fQAJetPhiMax; // jet QA histos limits
443
444 Int_t fQATrackNBinsPt; // track QA histos bins
445 Float_t fQATrackPtMin; // track QA histos limits
446 Float_t fQATrackPtMax; // track QA histos limits
447
448 Int_t fQATrackNBinsEta; // track QA histos bins
449 Float_t fQATrackEtaMin; // track QA histos limits
450 Float_t fQATrackEtaMax; // track QA histos limits
451
452 Int_t fQATrackNBinsPhi; // track QA histos bins
453 Float_t fQATrackPhiMin; // track QA histos limits
454 Float_t fQATrackPhiMax; // track QA histos limits
455
d7238ca3 456 // Histograms
457 TList *fCommonHistList; // List of common histos
458
459 TH1F *fh1EvtSelection; //! event cuts
460 TH1F *fh1VertexNContributors; //! NContributors to prim vertex
461 TH1F *fh1VertexZ; //! prim vertex z distribution
462 TH1F *fh1EvtMult; //! number of reconstructed tracks after cuts
3af23c82 463 TH1F *fh1EvtCent; //! centrality percentile
ac017ff3 464
465 TProfile* fh1Xsec; //! pythia cross section and trials
466 TH1F* fh1Trials; //! sum of trials
467 TH1F* fh1PtHard; //! pt hard of the event
468 TH1F* fh1PtHardTrials; //! pt hard of the event
469
d7238ca3 470 TH1F *fh1nRecJetsCuts; //! number of jets from reconstructed tracks per event
471 TH1F *fh1nGenJets; //! number of jets from generated tracks per event
7d9e8b32 472 TH1F *fh1nRecEffJets; //! number of jets for reconstruction eff per event
39e2b057 473 TH1F *fh1nEmbeddedJets; //! number of embedded jets per event
474
67e37e80 475 TH1F *fh1nRecBckgJetsCuts; //! number of jets from reconstructed tracks per event
476 TH1F *fh1nGenBckgJets; //! number of jets from generated tracks per event
d5e8640d 477 TH2F *fh2PtRecVsGenPrim; //! association rec/gen MC: rec vs gen pt, primaries
478 TH2F *fh2PtRecVsGenSec; //! association rec/gen MC: rec vs gen pt, secondaries
7d9e8b32 479
d5e8640d 480 // tracking efficiency / secondaries
cb76764e 481
482 AliFragFuncQATrackHistos* fQATrackHistosRecEffGen; //! tracking efficiency: generated primaries
483 AliFragFuncQATrackHistos* fQATrackHistosRecEffRec; //! tracking efficiency: reconstructed primaries
ce55b926 484 AliFragFuncQATrackHistos* fQATrackHistosSecRecNS; //! reconstructed secondaries (non-strangeness)
485 AliFragFuncQATrackHistos* fQATrackHistosSecRecS; //! reconstructed secondaries (strange mothers)
486 AliFragFuncQATrackHistos* fQATrackHistosSecRecSsc; //! reconstructed secondaries (strange mothers) - scale factor
cb76764e 487
cb76764e 488 AliFragFuncHistos* fFFHistosRecEffRec; //! tracking efficiency: FF reconstructed primaries
ce55b926 489 AliFragFuncHistos* fFFHistosSecRecNS; //! secondary contamination: FF reconstructed secondaries (non-strangeness)
490 AliFragFuncHistos* fFFHistosSecRecS; //! secondary contamination: FF reconstructed secondaries (strange mothers)
491 AliFragFuncHistos* fFFHistosSecRecSsc; //! secondary contamination: FF reconstructed secondaries (strange mothers) - scale factor
3af23c82 492
d7238ca3 493
1da9498b 494 // Background
ce55b926 495 TH1F *fh1BckgMult0; //! background multiplicity
496 TH1F *fh1BckgMult1; //! background multiplicity
497 TH1F *fh1BckgMult2; //! background multiplicity
498 TH1F *fh1BckgMult3; //! background multiplicity
499 TH1F *fh1BckgMult4; //! background multiplicity
1da9498b 500
39e2b057 501 // embedding
502 TH1F* fh1FractionPtEmbedded; //! ratio embedded pt in rec jet to embedded jet pt
503 TH1F* fh1IndexEmbedded; //! index embedded jet matching to leading rec jet
504 TH2F* fh2DeltaPtVsJetPtEmbedded; //! delta pt rec - embedded jet
505 TH2F* fh2DeltaPtVsRecJetPtEmbedded; //! delta pt rec - embedded jet
506 TH1F* fh1DeltaREmbedded; //! delta R rec - embedded jet
507
39e2b057 508
67e37e80 509 AliFragFuncQATrackHistos* fQABckgHisto0RecCuts; //! track QA: reconstructed tracks after cuts
510 AliFragFuncQATrackHistos* fQABckgHisto0Gen; //! track QA: generated tracks
511 AliFragFuncQATrackHistos* fQABckgHisto1RecCuts; //! track QA: reconstructed tracks after cuts
512 AliFragFuncQATrackHistos* fQABckgHisto1Gen; //! track QA: generated tracks
513 AliFragFuncQATrackHistos* fQABckgHisto2RecCuts; //! track QA: reconstructed tracks after cuts
514 AliFragFuncQATrackHistos* fQABckgHisto2Gen; //! track QA: generated tracks
742ee86c 515 AliFragFuncQATrackHistos* fQABckgHisto3RecCuts; //! track QA: reconstructed tracks after cuts
516 AliFragFuncQATrackHistos* fQABckgHisto3Gen; //! track QA: generated tracks
3170a3f8 517 AliFragFuncQATrackHistos* fQABckgHisto4RecCuts; //! track QA: reconstructed tracks after cuts
518 AliFragFuncQATrackHistos* fQABckgHisto4Gen; //! track QA: generated tracks
67e37e80 519
520 AliFragFuncHistos* fFFBckgHisto0RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
67e37e80 521 AliFragFuncHistos* fFFBckgHisto0Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
67e37e80 522 AliFragFuncHistos* fFFBckgHisto1RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
67e37e80 523 AliFragFuncHistos* fFFBckgHisto1Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
67e37e80 524 AliFragFuncHistos* fFFBckgHisto2RecCuts; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed tracks after cuts
67e37e80 525 AliFragFuncHistos* fFFBckgHisto2Gen; //! Bckg (outside leading jet or 2 jets or more) FF generated tracks after cuts
742ee86c 526 AliFragFuncHistos* fFFBckgHisto3RecCuts; //! Bckg (outside leading jet or 3 jets or more) FF reconstructed tracks after cuts
742ee86c 527 AliFragFuncHistos* fFFBckgHisto3Gen; //! Bckg (outside leading jet or 3 jets or more) FF generated tracks after cuts
3170a3f8 528 AliFragFuncHistos* fFFBckgHisto4RecCuts; //! Bckg (outside leading jet or 4 jets or more) FF reconstructed tracks after cuts
3170a3f8 529 AliFragFuncHistos* fFFBckgHisto4Gen; //! Bckg (outside leading jet or 4 jets or more) FF generated tracks after cuts
ce55b926 530
531 AliFragFuncHistos* fFFBckgHisto0RecEffRec; //! Bckg (outside leading jet or 2 jets or more) FF reconstructed primaries after cuts
532 AliFragFuncHistos* fFFBckgHisto0SecRecNS; //! secondary contamination: FF reconstructed secondaries (non-strangeness)
533 AliFragFuncHistos* fFFBckgHisto0SecRecS; //! secondary contamination: FF reconstructed secondaries (strange mothers)
534 AliFragFuncHistos* fFFBckgHisto0SecRecSsc; //! secondary contamination: FF reconstructed secondaries (strange mothers) - scale factor
535
536 TProfile* fProNtracksLeadingJet; //! jet shape
537 TProfile* fProDelR80pcPt; //! jet shape
538 TProfile* fProDelRPtSum[5]; //! jet shape
539
540 TProfile* fProNtracksLeadingJetGen; //! jet shape
541 TProfile* fProDelR80pcPtGen; //! jet shape
542 TProfile* fProDelRPtSumGen[5]; //! jet shape
543
544 TProfile* fProNtracksLeadingJetBgrPerp2; //! jet shape
545 TProfile* fProDelRPtSumBgrPerp2[5]; //! jet shape
546
547 TProfile* fProNtracksLeadingJetRecPrim; //! jet shape
548 TProfile* fProDelR80pcPtRecPrim; //! jet shape
549 TProfile* fProDelRPtSumRecPrim[5]; //! jet shape
550
551 TProfile* fProNtracksLeadingJetRecSecNS; //! jet shape
552 TProfile* fProDelRPtSumRecSecNS[5]; //! jet shape
553
554 TProfile* fProNtracksLeadingJetRecSecS; //! jet shape
555 TProfile* fProDelRPtSumRecSecS[5]; //! jet shape
556
557 TProfile* fProNtracksLeadingJetRecSecSsc; //! jet shape
558 TProfile* fProDelRPtSumRecSecSsc[5]; //! jet shape
559
67e37e80 560
3af23c82 561 TRandom3* fRandom; // TRandom3 for background estimation
67e37e80 562
ce55b926 563 ClassDef(AliAnalysisTaskFragmentationFunction, 12);
6bec8236 564};
d7238ca3 565
6bec8236 566#endif