]>
Commit | Line | Data |
---|---|---|
75bf77e3 | 1 | #ifndef ALIANALYSISTASKJETCORE_H |
2 | #define ALIANALYSISTASKJETCORE_H | |
3 | ||
568f8fa2 | 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 | ||
75bf77e3 | 15 | class TH1F; |
8c483a6b | 16 | class TH1I; |
75bf77e3 | 17 | class TH2F; |
18 | class TH3F; | |
19 | class THnSparse; | |
ccf12e54 | 20 | class TRandom3; |
75bf77e3 | 21 | class AliESDEvent; |
ea693273 | 22 | class AliAODExtension; |
75bf77e3 | 23 | class AliAODEvent; |
24 | ||
25 | #include "AliAnalysisTaskSE.h" | |
26 | #include "AliVEvent.h" | |
27 | ||
28 | class AliAnalysisTaskJetCore : public AliAnalysisTaskSE { | |
29 | public: | |
30 | AliAnalysisTaskJetCore(); | |
31 | AliAnalysisTaskJetCore(const char *name); | |
32 | virtual ~AliAnalysisTaskJetCore(); | |
75bf77e3 | 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(); | |
4f6d1cc1 | 40 | // Rongrong |
41 | virtual void SetRunAzimuthalCorrelation(Bool_t run) {fRunAnaAzimuthalCorrelation=run;} | |
ea693273 | 42 | Double_t RelativePhi(Double_t angle1,Double_t angle2); |
d5e7475c | 43 | Int_t GetPhiBin(Double_t phi); |
44 | virtual THnSparse* NewTHnSparseF(const char* name, UInt_t entries); | |
da93bb11 | 45 | virtual void GetDimParams(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax); |
75bf77e3 | 46 | virtual AliVEvent::EOfflineTriggerTypes GetOfflineTrgMask() const { return fOfflineTrgMask; } |
47 | virtual void GetBranchNames(TString &branch1, TString &branch2) const { branch1 = fJetBranchName[0]; branch2 = fJetBranchName[1]; } | |
48 | virtual Bool_t GetIsPbPb() const { return fIsPbPb; } | |
49 | virtual Int_t GetMinContribVtx() const { return fMinContribVtx; }; | |
50 | virtual Float_t GetVtxZMin() const { return fVtxZMin; } | |
51 | virtual Float_t GetVtxZMax() const { return fVtxZMax; } | |
52 | virtual Int_t GetEvtClassMin() const { return fEvtClassMin; } | |
53 | virtual Int_t GetEvtClassMax() const { return fEvtClassMax; } | |
54 | virtual Float_t GetCentMin() const { return fCentMin; } | |
55 | virtual Float_t GetCentMax() const { return fCentMax; } | |
56 | virtual Int_t GetNInputTracksMin() const { return fNInputTracksMin; } | |
57 | virtual Int_t GetNInputTracksMax() const { return fNInputTracksMax; } | |
58 | virtual Float_t GetJetEtaMin() const { return fJetEtaMin; } | |
59 | virtual Float_t GetJetEtaMax() const { return fJetEtaMax; } | |
60 | virtual Float_t GetJetPtMin() const { return fJetPtMin; } | |
61 | virtual Float_t GetJetPtFractionMin() const { return fJetPtFractionMin; } | |
62 | virtual Int_t GetNMatchJets() const { return fNMatchJets; } | |
63 | virtual void SetBranchNames(const TString &branch1, const TString &branch2); | |
64 | virtual void SetBackgroundBranch(TString &branch) { fBackgroundBranch = branch;} | |
65 | virtual void SetIsPbPb(Bool_t b=kTRUE) { fIsPbPb = b; } | |
66 | virtual void SetOfflineTrgMask(AliVEvent::EOfflineTriggerTypes mask) { fOfflineTrgMask = mask; } | |
67 | virtual void SetMinContribVtx(Int_t n) { fMinContribVtx = n; } | |
68 | virtual void SetVtxZMin(Float_t z) { fVtxZMin = z; } | |
69 | virtual void SetVtxZMax(Float_t z) { fVtxZMax = z; } | |
70 | virtual void SetEvtClassMin(Int_t evtClass) { fEvtClassMin = evtClass; } | |
71 | virtual void SetEvtClassMax(Int_t evtClass) { fEvtClassMax = evtClass; } | |
8b47ec90 | 72 | virtual void SetFilterMask(UInt_t i){fFilterMask = i;} |
873306cf | 73 | virtual void SetFilterMaskBestPt(UInt_t i){fFilterMaskBestPt = i;} |
ae73f4c9 | 74 | virtual void SetFilterType(Int_t iType){fFilterType=iType;} |
ea693273 | 75 | virtual void SetRadioFrac(Float_t radiofrac) { fRadioFrac = radiofrac; } |
76 | virtual void SetMinDist(Float_t minDist) { fMinDist = minDist; } | |
75bf77e3 | 77 | virtual void SetCentMin(Float_t cent) { fCentMin = cent; } |
78 | virtual void SetCentMax(Float_t cent) { fCentMax = cent; } | |
79 | virtual void SetNInputTracksMin(Int_t nTr) { fNInputTracksMin = nTr; } | |
80 | virtual void SetNInputTracksMax(Int_t nTr) { fNInputTracksMax = nTr; } | |
c18b64ea | 81 | virtual void SetRequireITSRefit(Int_t nref) {fRequireITSRefit=nref;} |
fb5db3fb | 82 | virtual void SetSharedClusterCut(Int_t docut){fApplySharedClusterCut=docut;} |
ea693273 | 83 | virtual void SetAngStructCloseTracks(Int_t yesno){fAngStructCloseTracks=yesno;} |
da93bb11 | 84 | virtual void SetCheckMethods(Int_t yesno){fCheckMethods=yesno;} |
529e2916 | 85 | virtual void SetEventMixing(Int_t yesno){fDoEventMixing=yesno;} |
447d2a5b | 86 | virtual void SetFlagPhiBkg(Int_t yesno){fFlagPhiBkg=yesno;} |
ca1009f1 | 87 | virtual void SetFlagEtaBkg(Int_t yesno){fFlagEtaBkg=yesno;} |
16a4c8e8 | 88 | virtual void SetFlagJetHadron(Int_t yesno){fFlagJetHadron=yesno;} |
4c074aaf | 89 | virtual void SetFlagFrac(Float_t fraction){fFrac=fraction;} |
90 | virtual void SetTTLowRef(Float_t ttlow){fTTLowRef=ttlow;} | |
91 | virtual void SetTTUpRef(Float_t ttup){fTTUpRef=ttup;} | |
92 | virtual void SetTTLowSig(Float_t ttlows){fTTLowSig=ttlows;} | |
93 | virtual void SetTTUpSig(Float_t ttups){fTTUpSig=ttups;} | |
ccf12e54 | 94 | virtual void SetFlagHardest(Int_t yesno){fHardest=yesno;} |
d5e7475c | 95 | virtual void SetFlagRandom(Int_t yesno){fFlagRandom=yesno;} |
85b5b73e | 96 | virtual void SetFlagOnlyRecoil(Int_t yesno){fFlagOnlyRecoil=yesno;} |
e22029ea | 97 | virtual void SetFlagOnlyHardest(Int_t yesno){fFlagOnlyHardest=yesno;} |
85b5b73e | 98 | virtual void SetNRPBins(Int_t bins){fNRPBins=bins;} |
9807c9a1 | 99 | virtual void SetSemigoodCorrect(Int_t yesno){fSemigoodCorrect=yesno;} |
100 | virtual void SetHolePos(Float_t poshole) { fHolePos = poshole; } | |
101 | virtual void SetHoleWidth(Float_t holewidth) { fHoleWidth = holewidth; } | |
85b5b73e | 102 | virtual void SetTrackTypeRec(Int_t i){fTrackTypeRec = i;} |
75bf77e3 | 103 | virtual void SetJetEtaMin(Float_t eta) { fJetEtaMin = eta; } |
104 | virtual void SetJetEtaMax(Float_t eta) { fJetEtaMax = eta; } | |
105 | virtual void SetJetPtMin(Float_t pt) { fJetPtMin = pt; } | |
106 | virtual void SetJetTriggerExclude(UChar_t i) { fJetTriggerExcludeMask = i; } | |
107 | virtual void SetJetPtFractionMin(Float_t frac) { fJetPtFractionMin = frac; } | |
108 | virtual void SetNMatchJets(Int_t n) { fNMatchJets = n; } | |
109 | virtual void SetFillEvent(Bool_t b) { fbEvent = b; } | |
110 | virtual void SetKeepJets(Bool_t b = kTRUE) { fKeepJets = b; } | |
529e2916 | 111 | virtual void SetNonStdFile(char* c){fNonStdFile = c;} |
85b5b73e | 112 | enum {kTrackUndef = 0, kTrackAOD, kTrackKineAll,kTrackKineCharged, kTrackAODMCAll, kTrackAODMCCharged, kTrackAODMCChargedAcceptance}; |
75bf77e3 | 113 | |
114 | private: | |
115 | // ESD/AOD events | |
116 | AliESDEvent *fESD; //! ESD object | |
5bd732d4 | 117 | AliAODEvent *fAODIn; //! AOD event for AOD input tracks |
118 | AliAODEvent *fAODOut; //! AOD event | |
ea693273 | 119 | AliAODExtension *fAODExtension; //! where we take the jets from can be input or output AOD |
85b5b73e | 120 | Int_t GetListOfTracks(TList *list); |
a36ea0f9 | 121 | Int_t SelectTrigger(TList *list,Double_t minT,Double_t maxT,Int_t &number); |
da93bb11 | 122 | Int_t GetHardestTrackBackToJet(AliAODJet *jet); |
ea693273 | 123 | Int_t GetListOfTracksCloseToJet(TList *list,AliAODJet *jet); |
75bf77e3 | 124 | // jets to compare |
125 | TString fJetBranchName[2]; // name of jet branches to compare | |
126 | TList *fListJets[2]; //! jet lists | |
127 | ||
128 | TString fBackgroundBranch; | |
ea693273 | 129 | TString fNonStdFile; // name of delta aod file to catch the extension |
75bf77e3 | 130 | // event selection |
131 | Bool_t fIsPbPb; // is Pb-Pb (fast embedding) or p-p (detector response) | |
132 | AliVEvent::EOfflineTriggerTypes fOfflineTrgMask; // mask of offline triggers to accept | |
133 | Int_t fMinContribVtx; // minimum number of track contributors for primary vertex | |
134 | Float_t fVtxZMin; // lower bound on vertex z | |
135 | Float_t fVtxZMax; // upper bound on vertex z | |
136 | Int_t fEvtClassMin; // lower bound on event class | |
137 | Int_t fEvtClassMax; // upper bound on event class | |
8b47ec90 | 138 | UInt_t fFilterMask; // filter bit for slecected tracks |
873306cf | 139 | UInt_t fFilterMaskBestPt; // filter bit for selected hig pt tracks (best quality) |
140 | UInt_t fFilterType; // type of slected tracks parrallel to filtermask | |
ea693273 | 141 | Float_t fRadioFrac; //!size of the concentric cone |
142 | Float_t fMinDist; | |
75bf77e3 | 143 | Float_t fCentMin; // lower bound on centrality |
144 | Float_t fCentMax; // upper bound on centrality | |
145 | Int_t fNInputTracksMin; // lower bound of nb. of input tracks | |
146 | Int_t fNInputTracksMax; // upper bound of nb. of input tracks | |
c18b64ea | 147 | Int_t fRequireITSRefit; |
fb5db3fb | 148 | Int_t fApplySharedClusterCut; // flag to apply shared cluster cut (needed for some AODs where this cut was not applied in the filtering) |
ea693273 | 149 | Int_t fAngStructCloseTracks;//only constituents or all tracks with R<0.8 for the angular structure |
529e2916 | 150 | Int_t fCheckMethods; //to look into more detail into the core |
151 | Int_t fDoEventMixing; | |
447d2a5b | 152 | Int_t fFlagPhiBkg; |
ca1009f1 | 153 | Int_t fFlagEtaBkg; |
16a4c8e8 | 154 | Int_t fFlagJetHadron; |
4c074aaf | 155 | Float_t fFrac; //fraction of events to evaluate signal |
156 | Float_t fTTLowRef; | |
157 | Float_t fTTUpRef; | |
158 | Float_t fTTLowSig; | |
159 | Float_t fTTUpSig; | |
ccf12e54 | 160 | Int_t fHardest; |
d5e7475c | 161 | Int_t fFlagRandom; |
ae1e07c1 | 162 | Int_t fFlagOnlyRecoil; |
e22029ea | 163 | Int_t fFlagOnlyHardest; |
85b5b73e | 164 | Int_t fTrackTypeRec; |
06b71a3d | 165 | Float_t fRPAngle; |
d5e7475c | 166 | Int_t fNRPBins; |
9807c9a1 | 167 | Int_t fSemigoodCorrect; |
168 | Float_t fHolePos; | |
169 | Float_t fHoleWidth; | |
529e2916 | 170 | Float_t fJetEtaMin; // lower bound on eta for found jets |
171 | Float_t fJetEtaMax; // upper bound on eta for found jets | |
172 | Int_t fNevents; // number of events | |
173 | Int_t fTindex; // index reference | |
174 | Int_t fTrigBufferIndex; //index for the buffering | |
447d2a5b | 175 | Int_t fCountAgain; //index for the buffering |
529e2916 | 176 | Float_t fJetPtMin; // minimum jet pT |
75bf77e3 | 177 | UChar_t fJetTriggerExcludeMask; // mask for jet triggeres to exclude |
178 | Float_t fJetPtFractionMin; // minimum fraction for positiv match of jets | |
179 | Int_t fNMatchJets; // maximal nb. of jets taken for matching | |
180 | Double_t fMatchMaxDist; // maximal distance of matching jets | |
181 | Bool_t fKeepJets; // keep jets with negative pt after background subtraction | |
4f6d1cc1 | 182 | Bool_t fRunAnaAzimuthalCorrelation; // Flag to run azimuthal correlation between trigger track and recoil jets (Rongrong) |
75bf77e3 | 183 | |
184 | // output objects | |
185 | const Int_t fkNbranches; //! number of branches to be read | |
186 | const Int_t fkEvtClasses; //! number of event classes | |
187 | ||
188 | TList *fOutputList; //! output data container | |
189 | Bool_t fbEvent; // fill fhnEvent | |
190 | TH1I *fHistEvtSelection; //! event selection statistic | |
da93bb11 | 191 | THnSparse *fhnDeltaR; //! variables per jet |
529e2916 | 192 | THnSparse *fhnMixedEvents; //!mixed events matrix |
193 | ||
ea693273 | 194 | |
568f8fa2 | 195 | TH2F *fh2JetCoreMethod1C10; //Energy fraction in the core C10 method 1 |
196 | TH2F *fh2JetCoreMethod2C10; //Energy fraction in the core C10 method 2 | |
568f8fa2 | 197 | TH2F *fh2JetCoreMethod1C20; //Energy fraction in the core C20 method 1 |
198 | TH2F *fh2JetCoreMethod2C20; //Energy fraction in the core C20 method 2 | |
568f8fa2 | 199 | TH2F *fh2JetCoreMethod1C30; //Energy fraction in the core C30 method 1 |
200 | TH2F *fh2JetCoreMethod2C30; //Energy fraction in the core C30 method 2 | |
568f8fa2 | 201 | TH2F *fh2JetCoreMethod1C60; //Energy fraction in the core C60 method 1 |
202 | TH2F *fh2JetCoreMethod2C60; //Energy fraction in the core C60 method 2 | |
d5e7475c | 203 | TH3F* fh3JetTrackC3060; //C3060 pt2 |
204 | TH3F* fh3JetTrackC20; //C10 pt2 | |
4e90d948 | 205 | TH2F* fh2AngStructpt1C10; //Average |
568f8fa2 | 206 | TH2F* fh2AngStructpt2C10; //C10 pt2 |
207 | TH2F* fh2AngStructpt3C10; //C10 pt3 | |
208 | TH2F* fh2AngStructpt4C10; //C10 pt4 | |
209 | TH2F* fh2AngStructpt1C20; //C20 pt1 | |
210 | TH2F* fh2AngStructpt2C20; //C20 pt2 | |
211 | TH2F* fh2AngStructpt3C20; //C20 pt3 | |
212 | TH2F* fh2AngStructpt4C20; //C20 pt4 | |
213 | TH2F* fh2AngStructpt1C30; //C30 pt1 | |
214 | TH2F* fh2AngStructpt2C30; //C30 pt2 | |
215 | TH2F* fh2AngStructpt3C30; //C30 pt3 | |
216 | TH2F* fh2AngStructpt4C30; //C30 pt4 | |
217 | TH2F* fh2AngStructpt1C60; //C60 pt1 | |
218 | TH2F* fh2AngStructpt2C60; //C60 pt2 | |
219 | TH2F* fh2AngStructpt3C60; //C60 pt3 | |
220 | TH2F* fh2AngStructpt4C60; //C60 pt4 | |
ba143e7f | 221 | |
a36ea0f9 | 222 | TH1D* fh1TrigRef; //ref multiple triggers |
223 | TH1D* fh1TrigSig; //sig multiple triggers | |
16a4c8e8 | 224 | TH2F* fh2Ntriggers; //triggers |
d90d5d75 | 225 | TH2F* fh2Ntriggers2C10; //centrality bias of triggers |
226 | TH2F* fh2Ntriggers2C20; //centrality bias of triggers | |
ae1e07c1 | 227 | TH3F* fh3JetDensity; //jet density |
228 | TH3F* fh3JetDensityA4; //jet density | |
d90d5d75 | 229 | TH2F* fh2RPJetsC10; //reaction plane Jets |
230 | TH2F* fh2RPJetsC20; | |
231 | TH2F* fh2RPTC10; //reaction plane TT | |
232 | TH2F* fh2RPTC20; | |
4f6d1cc1 | 233 | THnSparse *fHJetSpec; //Recoil jet spectrum |
d5e7475c | 234 | |
529e2916 | 235 | Double_t fTrigBuffer[10][7]; //!buffer for triggers |
4f6d1cc1 | 236 | TH2F *fhTTPt; //! Trigger track pt for normalization (Rongrong) |
237 | THnSparse *fHJetPhiCorr; //! Azimuthal correlation between trigger track and recoil jets (Rongrong) | |
ccf12e54 | 238 | TRandom3* fRandom; // TRandom3 |
239 | ||
75bf77e3 | 240 | AliAnalysisTaskJetCore(const AliAnalysisTaskJetCore&); // not implemented |
241 | AliAnalysisTaskJetCore& operator=(const AliAnalysisTaskJetCore&); // not implemented | |
242 | ||
e22029ea | 243 | ClassDef(AliAnalysisTaskJetCore, 6); |
75bf77e3 | 244 | }; |
245 | ||
246 | #endif | |
247 |