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