hjet mass ana update + bug fix
[u/mrichter/AliRoot.git] / PWGJE / AliAnalysisTaskAj.h
CommitLineData
6134f035 1#ifndef ALIANALYSISTASKAJ_H
2#define ALIANALYSISTASKAJ_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
15class TH1F;
16class TH1I;
17class TH2F;
18class TH3F;
19class THnSparse;
20class AliESDEvent;
21class AliAODExtension;
22class AliAODJet;
23class AliAODEvent;
24
25#include "AliAnalysisTaskSE.h"
26#include "AliVEvent.h"
27
28class AliAnalysisTaskAj : public AliAnalysisTaskSE {
29public:
30 AliAnalysisTaskAj();
31 AliAnalysisTaskAj(const char *name);
32 virtual ~AliAnalysisTaskAj();
33 virtual void LocalInit() {Init();}
34 virtual void Init();
35 virtual void UserCreateOutputObjects();
36 virtual void UserExec(Option_t *option);
37 virtual void Terminate(const Option_t*);
38
39 virtual Int_t GetNInputTracks();
40
41 Double_t RelativePhi(Double_t angle1,Double_t angle2);
42 virtual THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
43 virtual void GetDimParams(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
44 virtual AliVEvent::EOfflineTriggerTypes GetOfflineTrgMask() const { return fOfflineTrgMask; }
45 virtual void GetBranchNames(TString &branch1, TString &branch2) const { branch1 = fJetBranchName[0]; branch2 = fJetBranchName[1]; }
46 virtual Bool_t GetIsPbPb() const { return fIsPbPb; }
47 virtual Int_t GetMinContribVtx() const { return fMinContribVtx; };
48 virtual Float_t GetVtxZMin() const { return fVtxZMin; }
49 virtual Float_t GetVtxZMax() const { return fVtxZMax; }
50 virtual Int_t GetEvtClassMin() const { return fEvtClassMin; }
51 virtual Int_t GetEvtClassMax() const { return fEvtClassMax; }
52 virtual Float_t GetCentMin() const { return fCentMin; }
53 virtual Float_t GetCentMax() const { return fCentMax; }
54 virtual Int_t GetNInputTracksMin() const { return fNInputTracksMin; }
55 virtual Int_t GetNInputTracksMax() const { return fNInputTracksMax; }
56 virtual Float_t GetJetEtaMin() const { return fJetEtaMin; }
57 virtual Float_t GetJetEtaMax() const { return fJetEtaMax; }
58 virtual Float_t GetJetPtMin() const { return fJetPtMin; }
59 virtual Float_t GetJetPtFractionMin() const { return fJetPtFractionMin; }
60 virtual Int_t GetNMatchJets() const { return fNMatchJets; }
61 virtual void SetBranchNames(const TString &branch1, const TString &branch2);
62 virtual void SetBackgroundBranch(TString &branch) { fBackgroundBranch = branch;}
63 virtual void SetIsPbPb(Bool_t b=kTRUE) { fIsPbPb = b; }
64 virtual void SetOfflineTrgMask(AliVEvent::EOfflineTriggerTypes mask) { fOfflineTrgMask = mask; }
65 virtual void SetMinContribVtx(Int_t n) { fMinContribVtx = n; }
66 virtual void SetVtxZMin(Float_t z) { fVtxZMin = z; }
67 virtual void SetVtxZMax(Float_t z) { fVtxZMax = z; }
68 virtual void SetEvtClassMin(Int_t evtClass) { fEvtClassMin = evtClass; }
69 virtual void SetEvtClassMax(Int_t evtClass) { fEvtClassMax = evtClass; }
70 virtual void SetFilterMask(UInt_t i){fFilterMask = i;}
71 virtual void SetRadioFrac(Float_t radiofrac) { fRadioFrac = radiofrac; }
72 virtual void SetMinDist(Float_t minDist) { fMinDist = minDist; }
73 virtual void SetCentMin(Float_t cent) { fCentMin = cent; }
74 virtual void SetCentMax(Float_t cent) { fCentMax = cent; }
75 virtual void SetNInputTracksMin(Int_t nTr) { fNInputTracksMin = nTr; }
76 virtual void SetNInputTracksMax(Int_t nTr) { fNInputTracksMax = nTr; }
77 virtual void SetAngStructCloseTracks(Int_t yesno){fAngStructCloseTracks=yesno;}
78 virtual void SetCheckMethods(Int_t yesno){fCheckMethods=yesno;}
79 virtual void SetEventMixing(Int_t yesno){fDoEventMixing=yesno;}
80 virtual void SetJetEtaMin(Float_t eta) { fJetEtaMin = eta; }
81 virtual void SetJetEtaMax(Float_t eta) { fJetEtaMax = eta; }
82 virtual void SetJetPtMin(Float_t pt) { fJetPtMin = pt; }
83 virtual void SetJetTriggerExclude(UChar_t i) { fJetTriggerExcludeMask = i; }
84 virtual void SetJetPtFractionMin(Float_t frac) { fJetPtFractionMin = frac; }
85 virtual void SetNMatchJets(Int_t n) { fNMatchJets = n; }
86 virtual void SetFillEvent(Bool_t b) { fbEvent = b; }
87 virtual void SetKeepJets(Bool_t b = kTRUE) { fKeepJets = b; }
88 virtual void SetNonStdFile(char* c){fNonStdFile = c;}
89
90
91private:
92 // ESD/AOD events
93 AliESDEvent *fESD; //! ESD object
5bd732d4 94 AliAODEvent *fAODIn; //! AOD event
95 AliAODEvent *fAODOut; //! AOD event
6134f035 96 AliAODExtension *fAODExtension; //! where we take the jets from can be input or output AOD
97 Int_t GetListOfTracks(TList *list);
98 Int_t GetHardestTrackBackToJet(AliAODJet *jet);
99 Int_t GetListOfTracksCloseToJet(TList *list,AliAODJet *jet);
100 // jets to compare
101 TString fJetBranchName[2]; // name of jet branches to compare
102 TList *fListJets[2]; //! jet lists
103
104 TString fBackgroundBranch;
105 TString fNonStdFile; // name of delta aod file to catch the extension
106 // event selection
107 Bool_t fIsPbPb; // is Pb-Pb (fast embedding) or p-p (detector response)
108 AliVEvent::EOfflineTriggerTypes fOfflineTrgMask; // mask of offline triggers to accept
109 Int_t fMinContribVtx; // minimum number of track contributors for primary vertex
110 Float_t fVtxZMin; // lower bound on vertex z
111 Float_t fVtxZMax; // upper bound on vertex z
112 Int_t fEvtClassMin; // lower bound on event class
113 Int_t fEvtClassMax; // upper bound on event class
114 UInt_t fFilterMask; // filter bit for slecected tracks
115 Float_t fRadioFrac; //!size of the concentric cone
116 Float_t fMinDist;
117 Float_t fCentMin; // lower bound on centrality
118 Float_t fCentMax; // upper bound on centrality
119 Int_t fNInputTracksMin; // lower bound of nb. of input tracks
120 Int_t fNInputTracksMax; // upper bound of nb. of input tracks
121 Int_t fAngStructCloseTracks;//only constituents or all tracks with R<0.8 for the angular structure
122 Int_t fCheckMethods; //to look into more detail into the core
123 Int_t fDoEventMixing;
124 Float_t fJetEtaMin; // lower bound on eta for found jets
125 Float_t fJetEtaMax; // upper bound on eta for found jets
126 Int_t fNevents; // number of events
127 Int_t fTindex; // index reference
128 Float_t fJetPtMin; // minimum jet pT
129 UChar_t fJetTriggerExcludeMask; // mask for jet triggeres to exclude
130 Float_t fJetPtFractionMin; // minimum fraction for positiv match of jets
131 Int_t fNMatchJets; // maximal nb. of jets taken for matching
132 Double_t fMatchMaxDist; // maximal distance of matching jets
133 Bool_t fKeepJets; // keep jets with negative pt after background subtraction
134
135
136 // output objects
137 const Int_t fkNbranches; //! number of branches to be read
138 const Int_t fkEvtClasses; //! number of event classes
139
140 TList *fOutputList; //! output data container
141 Bool_t fbEvent; // fill fhnEvent
142 TH1I *fHistEvtSelection; //! event selection statistic
143 TH2F *fh2Pt1Pt2C10; //dijet spectra central
144 TH2F *fh2Pt1Pt2C40; //dijet spectra perif
145 TH3F *fh3LocalCoordinates; //local coordinates
146 TH2F *fh2Sum2pt20; //long.pt.sum in different coronas
147 TH2F *fh2Sum4pt20; //long.pt.sum in different coronas
148 TH2F *fh2Sum6pt20; //long.pt.sum in different coronas
149 TH2F *fh2Sum8pt20; //long.pt.sum in different coronas
150 TH2F *fh2Sum12pt20; //long.pt.sum in different coronas
151 TH2F *fh2Sum2lpt20; //long.pt.sum in different coronas
152 TH2F *fh2Sum4lpt20; //long.pt.sum in different coronas
153 TH2F *fh2Sum6lpt20; //long.pt.sum in different coronas
154 TH2F *fh2Sum8lpt20; //long.pt.sum in different coronas
155 TH2F *fh2Sum12lpt20; //long.pt.sum in different coronas
156 TH2F *fh2Sum2pt40; //long.pt.sum in different coronas
157 TH2F *fh2Sum4pt40; //long.pt.sum in different coronas
158 TH2F *fh2Sum6pt40; //long.pt.sum in different coronas
159 TH2F *fh2Sum8pt40; //long.pt.sum in different coronas
160 TH2F *fh2Sum12pt40; //long.pt.sum in different coronas
161 TH2F *fh2Sum2lpt40; //long.pt.sum in different coronas
162 TH2F *fh2Sum4lpt40; //long.pt.sum in different coronas
163 TH2F *fh2Sum6lpt40; //long.pt.sum in different coronas
164 TH2F *fh2Sum8lpt40; //long.pt.sum in different coronas
165 TH2F *fh2Sum12lpt40; //long.pt.sum in different coronas
166
167 THnSparse *fhnDeltaR; //! variables per jet
168
169
170
171
172
173 AliAnalysisTaskAj(const AliAnalysisTaskAj&); // not implemented
174 AliAnalysisTaskAj& operator=(const AliAnalysisTaskAj&); // not implemented
175
176 ClassDef(AliAnalysisTaskAj, 4);
177};
178
179#endif
180