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