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