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