]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGJE/AliAnalysisTaskJetCore.h
fix warnings
[u/mrichter/AliRoot.git] / PWGJE / AliAnalysisTaskJetCore.h
1 #ifndef ALIANALYSISTASKJETCORE_H
2 #define ALIANALYSISTASKJETCORE_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 // **************************************
8 // This task computes several jet observables like 
9 // the fraction of energy in inner and outer coronnas,
10 // the distance from track to jet axis and a 
11 // correlation strength distribution of particles inside jets.    
12 // Author: lcunquei@cern.ch
13 // *******************************************
14
15 class TH1F;
16 class TH2F;
17 class TH3F;
18 class THnSparse;
19 class AliESDEvent;
20 class AliAODExtension;
21 class AliAODEvent;
22
23 #include "AliAnalysisTaskSE.h"
24 #include "AliVEvent.h"
25
26 class AliAnalysisTaskJetCore : public AliAnalysisTaskSE {
27 public:
28    AliAnalysisTaskJetCore();
29    AliAnalysisTaskJetCore(const char *name);
30    virtual ~AliAnalysisTaskJetCore();
31    virtual void     LocalInit() {Init();}
32    virtual void     Init();
33    virtual void     UserCreateOutputObjects();
34    virtual void     UserExec(Option_t *option);
35    virtual void     Terminate(const Option_t*);
36
37    virtual Int_t      GetNInputTracks();
38   
39    Double_t RelativePhi(Double_t angle1,Double_t angle2);     
40
41    virtual AliVEvent::EOfflineTriggerTypes GetOfflineTrgMask() const { return fOfflineTrgMask; }
42    virtual void     GetBranchNames(TString &branch1, TString &branch2) const { branch1 = fJetBranchName[0]; branch2 = fJetBranchName[1]; }
43    virtual Bool_t   GetIsPbPb() const { return fIsPbPb; }
44    virtual Int_t    GetMinContribVtx() const { return fMinContribVtx; };
45    virtual Float_t  GetVtxZMin() const { return fVtxZMin; }
46    virtual Float_t  GetVtxZMax() const { return fVtxZMax; }
47    virtual Int_t    GetEvtClassMin() const { return fEvtClassMin; }
48    virtual Int_t    GetEvtClassMax() const { return fEvtClassMax; }
49    virtual Float_t  GetCentMin() const { return fCentMin; }
50    virtual Float_t  GetCentMax() const { return fCentMax; }
51    virtual Int_t    GetNInputTracksMin() const { return fNInputTracksMin; }
52    virtual Int_t    GetNInputTracksMax() const { return fNInputTracksMax; } 
53    virtual Float_t  GetJetEtaMin() const { return fJetEtaMin; }
54    virtual Float_t  GetJetEtaMax() const { return fJetEtaMax; }
55    virtual Float_t  GetJetPtMin() const { return fJetPtMin; }
56    virtual Float_t  GetJetPtFractionMin() const { return fJetPtFractionMin; }
57    virtual Int_t    GetNMatchJets() const { return fNMatchJets; }
58    virtual void     SetBranchNames(const TString &branch1, const TString &branch2);
59    virtual void     SetBackgroundBranch(TString &branch) { fBackgroundBranch = branch;}
60    virtual void     SetIsPbPb(Bool_t b=kTRUE) { fIsPbPb = b; }
61    virtual void     SetOfflineTrgMask(AliVEvent::EOfflineTriggerTypes mask) { fOfflineTrgMask = mask; }
62    virtual void     SetMinContribVtx(Int_t n) { fMinContribVtx = n; }
63    virtual void     SetVtxZMin(Float_t z) { fVtxZMin = z; }
64    virtual void     SetVtxZMax(Float_t z) { fVtxZMax = z; }
65    virtual void     SetEvtClassMin(Int_t evtClass) { fEvtClassMin = evtClass; }
66    virtual void     SetEvtClassMax(Int_t evtClass) { fEvtClassMax = evtClass; }
67    virtual void     SetRadioFrac(Float_t radiofrac) { fRadioFrac = radiofrac; }
68    virtual void     SetMinDist(Float_t minDist) { fMinDist = minDist; }
69    virtual void     SetCentMin(Float_t cent) { fCentMin = cent; }
70    virtual void     SetCentMax(Float_t cent) { fCentMax = cent; }
71    virtual void     SetNInputTracksMin(Int_t nTr) { fNInputTracksMin = nTr; }
72    virtual void     SetNInputTracksMax(Int_t nTr) { fNInputTracksMax = nTr; }
73    virtual void     SetAngStructCloseTracks(Int_t yesno){fAngStructCloseTracks=yesno;}
74    virtual void     SetJetEtaMin(Float_t eta) { fJetEtaMin = eta; }
75    virtual void     SetJetEtaMax(Float_t eta) { fJetEtaMax = eta; }
76    virtual void     SetJetPtMin(Float_t pt) { fJetPtMin = pt; }
77    virtual void     SetJetTriggerExclude(UChar_t i) { fJetTriggerExcludeMask = i; }
78    virtual void     SetJetPtFractionMin(Float_t frac) { fJetPtFractionMin = frac; }
79    virtual void     SetNMatchJets(Int_t n) { fNMatchJets = n; }
80    virtual void     SetFillEvent(Bool_t b) { fbEvent = b; }
81    virtual void     SetKeepJets(Bool_t b = kTRUE) { fKeepJets = b; }
82    virtual void SetNonStdFile(char* c){fNonStdFile = c;} 
83
84
85 private:
86    // ESD/AOD events
87    AliESDEvent *fESD;    //! ESD object
88    AliAODEvent *fAOD;    //! AOD event
89     AliAODExtension  *fAODExtension; //! where we take the jets from can be input or output AOD
90    Int_t   GetListOfTracks(TList *list);
91    Int_t   GetListOfTracksCloseToJet(TList *list,AliAODJet *jet);
92    // jets to compare
93    TString fJetBranchName[2]; //  name of jet branches to compare
94    TList *fListJets[2];       //! jet lists
95
96    TString fBackgroundBranch;
97    TString       fNonStdFile; // name of delta aod file to catch the extension
98    // event selection
99    Bool_t fIsPbPb;         // is Pb-Pb (fast embedding) or p-p (detector response)
100    AliVEvent::EOfflineTriggerTypes fOfflineTrgMask; // mask of offline triggers to accept
101    Int_t   fMinContribVtx; // minimum number of track contributors for primary vertex
102    Float_t fVtxZMin;      // lower bound on vertex z
103    Float_t fVtxZMax;      // upper bound on vertex z
104    Int_t   fEvtClassMin;          // lower bound on event class
105    Int_t   fEvtClassMax;          // upper bound on event class
106    Float_t fRadioFrac;                          //!size of the concentric cone
107    Float_t fMinDist;   
108    Float_t fCentMin;      // lower bound on centrality
109    Float_t fCentMax;      // upper bound on centrality
110    Int_t   fNInputTracksMin;  // lower bound of nb. of input tracks
111    Int_t   fNInputTracksMax;  // upper bound of nb. of input tracks
112    Int_t   fAngStructCloseTracks;//only constituents or all tracks with R<0.8 for the angular structure
113    Float_t fJetEtaMin;     // lower bound on eta for found jets
114    Float_t fJetEtaMax;     // upper bound on eta for found jets
115    Float_t fJetPtMin;      // minimum jet pT
116    UChar_t fJetTriggerExcludeMask; // mask for jet triggeres to exclude
117    Float_t fJetPtFractionMin; // minimum fraction for positiv match of jets
118    Int_t   fNMatchJets;       // maximal nb. of jets taken for matching
119    Double_t fMatchMaxDist;     // maximal distance of matching jets
120    Bool_t  fKeepJets;          // keep jets with negative pt after background subtraction
121   
122
123    // output objects
124    const Int_t fkNbranches;                   //! number of branches to be read
125    const Int_t fkEvtClasses;                  //! number of event classes
126    
127    TList *fOutputList;                        //! output data container
128    Bool_t fbEvent;                            // fill fhnEvent
129    TH1I  *fHistEvtSelection;                  //! event selection statistic
130    TH1I  *fHistJetSelection;                  //! jet selection statistic
131    TH2F  *fh2JetSelection;                    //! jet selection statistic, with 
132      
133
134    TH2F      *fh2JetCoreMethod1C10;          //Energy fraction in the core C10 method 1
135    TH2F      *fh2JetCoreMethod2C10;          //Energy fraction in the core C10 method 2
136    TH2F      *fh2JetCoreMethod3C10;          //Energy fraction in the core C10 method 3
137    TH2F      *fh2JetCoreMethod1C20;          //Energy fraction in the core C20 method 1 
138    TH2F      *fh2JetCoreMethod2C20;          //Energy fraction in the core C20 method 2
139    TH2F      *fh2JetCoreMethod3C20;          //Energy fraction in the core C20 method 3
140    TH2F      *fh2JetCoreMethod1C30;          //Energy fraction in the core C30 method 1
141    TH2F      *fh2JetCoreMethod2C30;          //Energy fraction in the core C30 method 2
142    TH2F      *fh2JetCoreMethod3C30;          //Energy fraction in the core C30 method 3
143    TH2F      *fh2JetCoreMethod1C60;          //Energy fraction in the core C60 method 1
144    TH2F      *fh2JetCoreMethod2C60;          //Energy fraction in the core C60 method 2
145    TH2F      *fh2JetCoreMethod3C60;          //Energy fraction in the core C60 method 3
146    TH2F      *fh2SumPtInC10;                  //energy fraction in inner corona C10
147    TH2F      *fh2SumPtInC20;                  //energy fraction in inner corona C20 
148    TH2F      *fh2SumPtInC30;                  //energy fraction in inner corona C30
149    TH2F      *fh2SumPtInC60;                  //energy fraction in inner corona C60
150    TH2F      *fh2SumPtOutC10;                 //energy fraction in outer corona C10
151    TH2F      *fh2SumPtOutC10b;                //energy fraction in outer corona C10b
152    TH2F      *fh2SumPtOutC20;                 //energy fraction in outer corona C20 
153    TH2F      *fh2SumPtOutC30;                 //energy fraction in outer corona C30
154    TH2F      *fh2SumPtOutC60;                 //energy fraction in outer corona C60
155    TH2F      *fh2SumPtInC10bkg;        //expected from background inner C10
156    TH2F      *fh2SumPtInC20bkg;        //expected from background inner C20
157    TH2F      *fh2SumPtInC30bkg;        //expected from background inner C30
158    TH2F      *fh2SumPtInC60bkg;        //expected from background inner C60
159    TH2F      *fh2SumPtOutC10bkg;       //expected from background outer C10
160    TH2F      *fh2SumPtOutC20bkg;       //expected from background outer C10
161    TH2F      *fh2SumPtOutC30bkg;       //expected from background outer C10
162    TH2F      *fh2SumPtOutC60bkg;       //expected from background outer C10
163
164   
165    
166      TH2F*      fh2DeltaRC10pt1;            //Jet track R distance:C10 pt1
167      TH2F*      fh2DeltaRC20pt1;            //C20 pt1 
168      TH2F*      fh2DeltaRC30pt1;            //C30 pt1
169      TH2F*      fh2DeltaRC60pt1;            //C60 pt1
170      TH2F*      fh2DeltaRC10pt2;            //C10 pt2   
171      TH2F*      fh2DeltaRC20pt2;            //C20 pt2
172      TH2F*      fh2DeltaRC30pt2;            //C30 pt2
173      TH2F*      fh2DeltaRC60pt2;            //C60 pt2 
174      TH2F*      fh2DeltaRC10pt3;            //C10 pt3
175      TH2F*      fh2DeltaRC20pt3;            //C20 pt3
176      TH2F*      fh2DeltaRC30pt3;            //C30 pt3
177      TH2F*      fh2DeltaRC60pt3;            //C60 pt3
178      TH2F*      fh2DeltaRC10pt4;            //C10 pt4
179      TH2F*      fh2DeltaRC20pt4;            //C20 pt4
180      TH2F*      fh2DeltaRC30pt4;            //C30 pt4
181      TH2F*      fh2DeltaRC60pt4;            //C60 pt4 
182      TH2F*      fh2DeltaEtaC10pt1;          //The same but eta distance:C10 pt1
183      TH2F*      fh2DeltaEtaC20pt1;          //C20 pt1
184      TH2F*      fh2DeltaEtaC30pt1;          //C30 pt1
185      TH2F*      fh2DeltaEtaC60pt1;          //C60 pt1
186      TH2F*      fh2DeltaEtaC10pt2;          //C10 pt2  
187      TH2F*      fh2DeltaEtaC20pt2;          //C20 pt2
188      TH2F*      fh2DeltaEtaC30pt2;          //C30 pt2
189      TH2F*      fh2DeltaEtaC60pt2;          //C60 pt2
190      TH2F*      fh2DeltaEtaC10pt3;          //C10 pt3
191      TH2F*      fh2DeltaEtaC20pt3;          //C20 pt3
192      TH2F*      fh2DeltaEtaC30pt3;          //C30 pt3
193      TH2F*      fh2DeltaEtaC60pt3;          //C60 pt3
194      TH2F*      fh2DeltaEtaC10pt4;          //C10 pt4
195      TH2F*      fh2DeltaEtaC20pt4;          //C20 pt4
196      TH2F*      fh2DeltaEtaC30pt4;          //C30 pt4
197      TH2F*      fh2DeltaEtaC60pt4;          //C60 pt4
198      TH2F*      fh2DeltaPhiC10pt1;          //The same but phi distance:C10 pt1
199      TH2F*      fh2DeltaPhiC20pt1;          //C20 pt1
200      TH2F*      fh2DeltaPhiC30pt1;          //C30 pt1
201      TH2F*      fh2DeltaPhiC60pt1;          //C60 pt1
202      TH2F*      fh2DeltaPhiC10pt2;          //C10 pt2
203      TH2F*      fh2DeltaPhiC20pt2;          //C20 pt2 
204      TH2F*      fh2DeltaPhiC30pt2;          //C30 pt2
205      TH2F*      fh2DeltaPhiC60pt2;          //C60 pt2 
206      TH2F*      fh2DeltaPhiC10pt3;          //C10 pt3
207      TH2F*      fh2DeltaPhiC20pt3;          //C20 pt3
208      TH2F*      fh2DeltaPhiC30pt3;          //C30 pt3
209      TH2F*      fh2DeltaPhiC60pt3;          //C60 pt3
210      TH2F*      fh2DeltaPhiC10pt4;          //C10 pt4
211      TH2F*      fh2DeltaPhiC20pt4;          //C20 pt4
212      TH2F*      fh2DeltaPhiC30pt4;          //C30 pt4
213      TH2F*      fh2DeltaPhiC60pt4;          //C60 pt4
214      TH2F*      fh2AngStructpt1C10;         //Average two particle correlation function:C10 pt1
215      TH2F*      fh2AngStructpt2C10;         //C10 pt2
216      TH2F*      fh2AngStructpt3C10;         //C10 pt3
217      TH2F*      fh2AngStructpt4C10;         //C10 pt4
218      TH2F*      fh2AngStructpt1C20;         //C20 pt1
219      TH2F*      fh2AngStructpt2C20;         //C20 pt2
220      TH2F*      fh2AngStructpt3C20;         //C20 pt3 
221      TH2F*      fh2AngStructpt4C20;         //C20 pt4
222      TH2F*      fh2AngStructpt1C30;         //C30 pt1
223      TH2F*      fh2AngStructpt2C30;         //C30 pt2
224      TH2F*      fh2AngStructpt3C30;         //C30 pt3
225      TH2F*      fh2AngStructpt4C30;         //C30 pt4
226      TH2F*      fh2AngStructpt1C60;         //C60 pt1
227      TH2F*      fh2AngStructpt2C60;         //C60 pt2
228      TH2F*      fh2AngStructpt3C60;         //C60 pt3
229      TH2F*      fh2AngStructpt4C60;         //C60 pt4
230
231
232
233
234    AliAnalysisTaskJetCore(const AliAnalysisTaskJetCore&); // not implemented
235    AliAnalysisTaskJetCore& operator=(const AliAnalysisTaskJetCore&); // not implemented
236
237    ClassDef(AliAnalysisTaskJetCore, 4);
238 };
239
240 #endif
241