AliPhysics  608b256 (608b256)
AliAnalysisTaskEmcalJetTagger.cxx
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2013, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  ************************************************************************************/
27 #include <TH1F.h>
28 #include <TH2F.h>
29 #include <TH3F.h>
30 #include <THnSparse.h>
31 
32 #include "AliEmcalJet.h"
33 #include "AliLog.h"
34 #include "AliJetContainer.h"
35 #include "AliParticleContainer.h"
36 
38 
40 
42  AliAnalysisTaskEmcalJet("AliAnalysisTaskEmcalJetTagger", kTRUE),
43  fJetTaggingType(kTag),
44  fJetTaggingMethod(kGeo),
45  fContainerBase(0),
46  fContainerTag(1),
47  fSpecPartContTag(-1),
48  fMinFractionShared(0),
49  fUseSumw2(0),
50  fMatchingDone(0),
51  fTypeAcc(3),
52  fMaxDist(0.3),
53  fExtraMarginAccBase(0.1),
54  fExtraMarginAccTag(0.1),
55  fInit(kFALSE),
56  fh3PtJet1VsDeltaEtaDeltaPhi(0),
57  fh2PtJet1VsDeltaR(0),
58  fh2PtJet2VsFraction(0),
59  fh2PtJet1VsLeadPtAllSel(0),
60  fh2PtJet1VsLeadPtTagged(0),
61  fh2PtJet1VsPtJet2(0),
62  fh2PtJet2VsRelPt(0),
63  fh3PtJetDEtaDPhiConst(0),
64  fh3PtJetAreaDRConst(0)
65 {
73 
74  for (Int_t i = 0; i < fNcentBins; i++) {
76  fh2PtJet1VsDeltaR[i] = 0;
77  fh2PtJet2VsFraction[i] = 0;
80  fh2PtJet1VsPtJet2[i] = 0;
81  fh2PtJet2VsRelPt[i] = 0;
82  }
83 
85 }
86 
88  AliAnalysisTaskEmcalJet(name, kTRUE),
91  fContainerBase(0),
92  fContainerTag(1),
93  fSpecPartContTag(-1),
95  fUseSumw2(0),
96  fMatchingDone(0),
97  fTypeAcc(3),
98  fMaxDist(0.3),
100  fExtraMarginAccTag(0.1),
101  fInit(kFALSE),
108  fh2PtJet2VsRelPt(0),
111 {
119 
120  for (Int_t i = 0; i < fNcentBins; i++) {
122  fh2PtJet1VsDeltaR[i] = 0;
123  fh2PtJet2VsFraction[i] = 0;
126  fh2PtJet1VsPtJet2[i] = 0;
127  fh2PtJet2VsRelPt[i] = 0;
128  }
129 
131 
132 }
133 
135 {
136 }
137 
139 {
141 
142  Bool_t oldStatus = TH1::AddDirectoryStatus();
143  TH1::AddDirectory(kFALSE);
144 
145  const Int_t nBinsPt = 40;
146  const Int_t nBinsDPhi = 72;
147  const Int_t nBinsDEta = 100;
148  const Int_t nBinsDR = 50;
149  const Int_t nBinsFraction = 101;
150 
151  const Double_t minPt = -50.;
152  const Double_t maxPt = 150.;
153  const Double_t minDPhi = -0.5;
154  const Double_t maxDPhi = 0.5;
155  const Double_t minDEta = -0.5;
156  const Double_t maxDEta = 0.5;
157  const Double_t minDR = 0.;
158  const Double_t maxDR = 0.5;
159  const Double_t minFraction = -0.005;
160  const Double_t maxFraction = 1.005;
161 
162  TString histName = "";
163  TString histTitle = "";
164  for (Int_t i = 0; i < fNcentBins; i++) {
165 
166  histName = TString::Format("fh3PtJet1VsDeltaEtaDeltaPhi_%d",i);
167  histTitle = TString::Format("%s;#it{p}_{T,jet1};#it{#Delta#eta};#it{#Delta#varphi}",histName.Data());
168  fh3PtJet1VsDeltaEtaDeltaPhi[i] = new TH3F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,nBinsDEta,minDEta,maxDEta,nBinsDPhi,minDPhi,maxDPhi);
169  fOutput->Add(fh3PtJet1VsDeltaEtaDeltaPhi[i]);
170 
171  histName = TString::Format("fh2PtJet1VsDeltaR_%d",i);
172  histTitle = TString::Format("%s;#it{p}_{T,jet1};#it{#Delta R}",histName.Data());
173  fh2PtJet1VsDeltaR[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,nBinsDR,minDR,maxDR);
174  fOutput->Add(fh2PtJet1VsDeltaR[i]);
175 
176  histName = TString::Format("fh2PtJet2VsFraction_%d",i);
177  histTitle = TString::Format("%s;#it{p}_{T,jet2};#it{f}_{shared}",histName.Data());
178  fh2PtJet2VsFraction[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,nBinsFraction,minFraction,maxFraction);
179  fOutput->Add(fh2PtJet2VsFraction[i]);
180 
181  histName = TString::Format("fh2PtJet1VsLeadPtAllSel_%d",i);
182  histTitle = TString::Format("%s;#it{p}_{T,jet1};#it{p}_{T,lead trk}",histName.Data());
183  fh2PtJet1VsLeadPtAllSel[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,20,0.,20.);
184  fOutput->Add(fh2PtJet1VsLeadPtAllSel[i]);
185 
186  histName = TString::Format("fh2PtJet1VsLeadPtTagged_%d",i);
187  histTitle = TString::Format("%s;#it{p}_{T,jet1};#it{p}_{T,lead trk}",histName.Data());
188  fh2PtJet1VsLeadPtTagged[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,20,0.,20.);
189  fOutput->Add(fh2PtJet1VsLeadPtTagged[i]);
190 
191  histName = TString::Format("fh2PtJet1VsPtJet2_%d",i);
192  histTitle = TString::Format("%s;#it{p}_{T,jet1};#it{p}_{T,jet2}",histName.Data());
193  fh2PtJet1VsPtJet2[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,nBinsPt,minPt,maxPt);
194  fOutput->Add(fh2PtJet1VsPtJet2[i]);
195 
196  histName = TString::Format("fh2PtJet2VsRelPt_%d",i);
197  histTitle = TString::Format("%s;#it{p}_{T,jet2};(#it{p}_{T,jet2}-#it{p}_{T,jet1})/#it{p}_{T,jet1}",histName.Data());
198  fh2PtJet2VsRelPt[i] = new TH2F(histName.Data(),histTitle.Data(),nBinsPt,minPt,maxPt,241,-2.41,2.41);
199  fOutput->Add(fh2PtJet2VsRelPt[i]);
200  }
201 
202  fh3PtJetDEtaDPhiConst = new TH3F("fh3PtJetDEtaDPhiConst","fh3PtJetDEtaDPhiConst;pT;#Delta #eta;#Delta #varphi",nBinsPt,minPt,maxPt,nBinsDEta,-1.,1.,nBinsDPhi,-1.,1.);
204 
205  fh3PtJetAreaDRConst = new TH3F("fh3PtJetAreaDRConst","fh3PtJetAreaDRConst;pT;A;#Delta R",nBinsPt,minPt,maxPt,50,0.,1.,50,0.,1.);
207 
208  fNAccJets = new TH1F("fNAccJets","fNAccJets;N/ev",11,-0.5, 9.5);
209  fOutput->Add(fNAccJets);
210 
211  if(fUseSumw2) {
212  // =========== Switch on Sumw2 for all histos ===========
213  for (Int_t i=0; i<fOutput->GetEntries(); ++i) {
214  TH1 *h1 = dynamic_cast<TH1*>(fOutput->At(i));
215  if (h1){
216  h1->Sumw2();
217  continue;
218  }
219  THnSparse *hn = dynamic_cast<THnSparse*>(fOutput->At(i));
220  if(hn)hn->Sumw2();
221  }
222  }
223 
224  TH1::AddDirectory(oldStatus);
225 
226  PostData(1, fOutput); // Post data for ALL output slots > 0 here.
227 }
228 
230 
231  if(fInit) return;
232 
235  if(!cont1 || !cont2) AliError("Missing jet container");
236 
237  // when full azimuth, don't do anything
238  Double_t phiMin1 = cont1->GetJetPhiMin();
239  Double_t phiMin2 = cont2->GetJetPhiMin();
240  Bool_t isZeroTwoPi1 = kFALSE;
241  //check only one side of phi, since the upper bound is not well defined
242  if(phiMin1 > -1.e-6 && phiMin1 < 1.e-6) isZeroTwoPi1 = kTRUE;
243  Bool_t isZeroTwoPi2 = kFALSE;
244  if(phiMin2 > -1.e-6 && phiMin2 < 1.e-6) isZeroTwoPi2 = kTRUE;
245 
246  switch(fTypeAcc) {
247  case 1:
249  break;
250  case 2:
252  if(!isZeroTwoPi2) cont2->SetJetPhiLimits(cont2->GetJetPhiMin()-fExtraMarginAccTag,cont2->GetJetPhiMax()+fExtraMarginAccTag);
253  break;
254  case 3:
256  if(!isZeroTwoPi1) cont1->SetJetPhiLimits(cont1->GetJetPhiMin()-fExtraMarginAccBase,cont1->GetJetPhiMax()+fExtraMarginAccBase);
258  if(!isZeroTwoPi2) cont2->SetJetPhiLimits(cont2->GetJetPhiMin()-fExtraMarginAccTag,cont2->GetJetPhiMax()+fExtraMarginAccTag);
259  break;
260  default:
261  break;
262  };
263 
264  fInit = kTRUE;
265  return;
266 }
268 {
270  return kTRUE;
271 }
272 
274 {
275  // Fill histograms.
276 
277  AliEmcalJet *jet1 = NULL;
279  if(!jetCont) return kFALSE;
280  jetCont->ResetCurrentID();
281  Int_t count = 0;
282  while((jet1 = jetCont->GetNextAcceptJet())) {
283  count++;
284  Double_t ptJet1 = jet1->Pt() - jetCont->GetRhoVal()*jet1->Area();
285  fh2PtJet1VsLeadPtAllSel[fCentBin]->Fill(ptJet1,jet1->MaxTrackPt());
286 
287  //fill histo with angle between jet axis and constituents
288  for(Int_t icc=0; icc<jet1->GetNumberOfTracks(); icc++) {
289  AliVParticle *vp = static_cast<AliVParticle*>(jet1->Track(icc));
290  if(!vp) continue;
291  Double_t dEta = jet1->Eta()-vp->Eta();
292  Double_t dPhi = jet1->Phi()-vp->Phi();
293  if(dPhi<TMath::Pi()) dPhi+=TMath::TwoPi();
294  if(dPhi>TMath::Pi()) dPhi-=TMath::TwoPi();
295  fh3PtJetDEtaDPhiConst->Fill(ptJet1,dEta,dPhi);
296 
297  Double_t dR = TMath::Sqrt(dPhi*dPhi+dEta*dEta);
298  fh3PtJetAreaDRConst->Fill(ptJet1,jet1->Area(),dR);
299  }
300 
301  if(jet1->GetTagStatus()<1 && fJetTaggingType==kTag)
302  continue;
303 
304  AliEmcalJet *jet2 = NULL;
305  if(fJetTaggingType==kTag) jet2 = jet1->GetTaggedJet();
306  if(fJetTaggingType==kClosest) jet2 = jet1->ClosestJet();
307  if(!jet2) continue;
308 
309  Double_t ptJet2 = jet2->Pt() - GetRhoVal(fContainerTag)*jet2->Area();
310 
311  Double_t fraction = -2;
312  if(fSpecPartContTag > -1) fraction = jetCont->GetFractionSharedPt(jet1, GetParticleContainer(fSpecPartContTag));
313  else fraction = jetCont->GetFractionSharedPt(jet1);
314 
315  fh2PtJet2VsFraction[fCentBin]->Fill(ptJet2,fraction);
316  AliDebug(5, Form("Fraction = %f, minimum = %f", fraction, fMinFractionShared));
317  //if(fJetTaggingType==kClosest) Printf("Fraction = %f, minimum = %f", fraction, fMinFractionShared);
319  continue;
320  fh2PtJet1VsLeadPtTagged[fCentBin]->Fill(ptJet1,jet1->MaxTrackPt());
321  fh2PtJet1VsPtJet2[fCentBin]->Fill(ptJet1,ptJet2);
322  if(ptJet2>0.) fh2PtJet2VsRelPt[fCentBin]->Fill(ptJet2,(ptJet1-ptJet2)/ptJet2);
323 
324  Double_t dPhi = GetDeltaPhi(jet1->Phi(),jet2->Phi());
325  if(dPhi>TMath::Pi())
326  dPhi -= TMath::TwoPi();
327  if(dPhi<(-1.*TMath::Pi()))
328  dPhi += TMath::TwoPi();
329 
330  fh3PtJet1VsDeltaEtaDeltaPhi[fCentBin]->Fill(ptJet1,jet1->Eta()-jet2->Eta(),dPhi);
331  fh2PtJet1VsDeltaR[fCentBin]->Fill(ptJet1,jet1->DeltaR(jet2));
332  }
333  fNAccJets->Fill(count);
334  return kTRUE;
335 }
336 
338  for(int i = 0;i<GetNJets(c);i++){
339  AliEmcalJet *jet = static_cast<AliEmcalJet*>(GetJetFromArray(i, c));
340  if(!jet) continue;
342  jet->ResetMatching();
343  else if(fJetTaggingType==kTag) {
344  jet->SetTaggedJet(0x0);
345  jet->SetTagStatus(-1);
346  }
347  }
348 }
349 
351  Int_t iDebug, Float_t maxDist, Int_t type, Bool_t bReset) {
352  if(c1<0) c1 = fContainerBase;
353  if(c2<0) c2 = fContainerTag;
354  Init();
355  const Int_t nJets1 = GetNJets(c1);
356  const Int_t nJets2 = GetNJets(c2);
357 
358  if(nJets1==0 || nJets2==0) return;
359 
360  AliDebugStream(1) << "Jets Base (" << GetJetContainer(c1)->GetNJets() << ", accepted " << GetJetContainer(c1)->GetNAcceptedJets() << "), jets tag("
361  << GetJetContainer(c2)->GetNJets() << ", accepted " << GetJetContainer(c2)->GetNAcceptedJets() << "), max distance " << maxDist << std::endl;
362 
363  if(bReset) {
364  ResetTagging(c1);
365  ResetTagging(c2);
366  }
367  fMatchingDone = kFALSE;
368 
369  TArrayI faMatchIndex1;
370  faMatchIndex1.Set(nJets2+1);
371  faMatchIndex1.Reset(-1);
372 
373  TArrayI faMatchIndex2;
374  faMatchIndex2.Set(nJets1+1);
375  faMatchIndex2.Reset(-1);
376 
377  static TArrayS iFlag(nJets1*nJets2);
378  if(iFlag.GetSize()<(nJets1*nJets2)){
379  iFlag.Set(nJets1*nJets2+1);
380  }
381  iFlag.Reset(0);
382 
383  //AliJetContainer *cont1 = GetJetContainer(c1);
384  //AliJetContainer *cont2 = GetJetContainer(c2);
385  //Printf("eta cont 1 %f - %f", cont1->GetJetEtaMin(), cont1->GetJetEtaMax());
386  //Printf("phi cont 1 %f - %f", cont1->GetJetPhiMin(), cont1->GetJetPhiMax());
387  //if(type==1)
388  // cont2->SetJetEtaLimits(cont2->GetJetEtaMin()-0.1,cont2->GetJetEtaMax()+0.1);
389  //else if(type==2) {
390  // cont2->SetJetEtaLimits(cont2->GetJetEtaMin()-0.1,cont2->GetJetEtaMax()+0.1);
391  // cont2->SetJetPhiLimits(cont2->GetJetPhiMin()-0.1,cont2->GetJetPhiMax()+0.1);
392  //}
393  //else if(type==3) {
394  // cont1->SetJetEtaLimits(cont1->GetJetEtaMin()-0.1,cont1->GetJetEtaMax()+0.1);
395  // cont1->SetJetPhiLimits(cont1->GetJetPhiMin()-0.1,cont1->GetJetPhiMax()+0.1);
396  // cont2->SetJetEtaLimits(cont2->GetJetEtaMin()-0.1,cont2->GetJetEtaMax()+0.1);
397  // cont2->SetJetPhiLimits(cont2->GetJetPhiMin()-0.1,cont2->GetJetPhiMax()+0.1);
398  //}
399 
400  // find the closest distance to the full jet
401  for(int i = 0;i<nJets1;i++){
402 
403  AliEmcalJet *jet1 = static_cast<AliEmcalJet*>(GetAcceptJetFromArray(i, c1));
404  if(!jet1) continue;
405 
406  Float_t dist = maxDist;
407 
408  for(int j = 0;j <nJets2; j++){
409  AliEmcalJet *jet2 = static_cast<AliEmcalJet*>(GetAcceptJetFromArray(j, c2));
410  if(!jet2) continue;
411 
412  Double_t dR = jet1->DeltaR(jet2);
413  if(dR<dist && dR<maxDist){
414  faMatchIndex2[i]=j;
415  dist = dR;
416  }
417  }//j jet loop
418  if(faMatchIndex2[i]>=0) {
419  iFlag[i*nJets2+faMatchIndex2[i]]+=1;//j closest to i
420  if(iDebug>10) Printf("Full Distance (%d)--(%d) %3.3f flag[%d] = %d",i,faMatchIndex2[i],dist,i*nJets2+faMatchIndex2[i],iFlag[i*nJets2+faMatchIndex2[i]]);
421  }
422  }//i jet loop
423 
424  // other way around
425  for(int j = 0;j<nJets2;j++){
426  AliEmcalJet *jet2 = static_cast<AliEmcalJet*>(GetAcceptJetFromArray(j, c2));
427  if(!jet2)
428  continue;
429 
430  Float_t dist = maxDist;
431  for(int i = 0;i<nJets1;i++){
432  AliEmcalJet *jet1 = static_cast<AliEmcalJet*>(GetAcceptJetFromArray(i, c1));
433  if(!jet1) continue;
434 
435  Double_t dR = jet1->DeltaR(jet2);
436  if(dR<dist && dR<maxDist){
437  faMatchIndex1[j]=i;
438  dist = dR;
439  }
440  }
441  if(faMatchIndex1[j]>=0) {
442  iFlag[faMatchIndex1[j]*nJets2+j]+=2;//i closest to j
443  if(iDebug>10) Printf("Other way Distance (%d)--(%d) %3.3f flag[%d] = %d",faMatchIndex1[j],j,dist,faMatchIndex1[j]*nJets2+j,iFlag[faMatchIndex1[j]*nJets2+j]);
444  }
445  }
446 
447  // check for "true" correlations
448  for(int i = 0;i<nJets1;i++){
449  AliEmcalJet *jet1 = static_cast<AliEmcalJet*>(GetJetFromArray(i, c1));
450  for(int j = 0;j<nJets2;j++){
451  AliEmcalJet *jet2 = static_cast<AliEmcalJet*>(GetJetFromArray(j, c2));
452  AliDebug(11,Form("%s: Flag[%d][%d] %d ",GetName(),i,j,iFlag[i*nJets2+j]));
453 
454  // we have a uniqe correlation
455  if(iFlag[i*nJets2+j]==3) {
456  Double_t dR = jet1->DeltaR(jet2);
457  if(iDebug>1) Printf("closest jets %d %d dR = %f",j,i,dR);
458 
459  if(fJetTaggingType==kTag) {
460  jet1->SetTaggedJet(jet2);
461  jet1->SetTagStatus(1);
462 
463  jet2->SetTaggedJet(jet1);
464  jet2->SetTagStatus(1);
465  }
466  else if(fJetTaggingType==kClosest) {
467  jet1->SetClosestJet(jet2,dR);
468  jet2->SetClosestJet(jet1,dR);
469  }
470  }
471  }
472  }
473  fMatchingDone = kTRUE;
474 }
475 
477  return GetDeltaPhi(jet1->Phi(),jet2->Phi());
478 }
479 
481  Double_t dPhi = phi1-phi2;
482  if(dPhi <-0.5*TMath::Pi()) dPhi += TMath::TwoPi();
483  if(dPhi > 1.5*TMath::Pi()) dPhi -= TMath::TwoPi();
484 
485  return dPhi;
486 }
487 
490  return kFALSE;
491 
492  return kTRUE;
493 }
494 
496 {
497 }
498 
void SetTagStatus(Int_t i)
Definition: AliEmcalJet.h:350
Double_t Area() const
Definition: AliEmcalJet.h:130
Double_t GetRhoVal() const
AliEmcalJet * GetJetFromArray(Int_t j, Int_t c=0) const
double Double_t
Definition: External.C:58
AliEmcalJet * GetTaggedJet() const
Definition: AliEmcalJet.h:351
Definition: External.C:260
Definition: External.C:236
Double_t GetJetEtaMin() const
void SetTaggedJet(AliEmcalJet *j)
Definition: AliEmcalJet.h:349
AliEmcalJet * ClosestJet() const
Definition: AliEmcalJet.h:341
AliJetContainer * GetJetContainer(Int_t i=0) const
Int_t GetTagStatus() const
Definition: AliEmcalJet.h:352
Double_t fMaxDist
distance allowed for two jets to match
Double_t Eta() const
Definition: AliEmcalJet.h:121
Double_t GetJetPhiMax() const
Int_t GetNJets(Int_t i=0) const
Double_t Phi() const
Definition: AliEmcalJet.h:117
TH1 * fNAccJets
pt jet vs Area vs delta R of constituents
void MatchJetsGeo(Int_t c1=-1, Int_t c2=-1, Int_t iDebug=0, Float_t maxDist=0.3, Int_t type=2, Bool_t bReset=kTRUE)
Match the full jets to the corresponding charged jets.
TH3F ** fh3PtJet1VsDeltaEtaDeltaPhi
! pt jet 1 vs deta vs dphi
Bool_t fInit
true when the containers are initialized
Double_t GetJetEtaMax() const
Pure geometric tagging (max. distance + acceptance cut)
AliVParticle * Track(Int_t idx) const
TCanvas * c
Definition: TestFitELoss.C:172
Int_t fCentBin
!event centrality bin
TH2F ** fh2PtJet2VsRelPt
! pT of tagged jet vs pt base jet / pt tagged jet
TH2F ** fh2PtJet2VsFraction
! pt jet 1 vs shared fraction
UShort_t GetNumberOfTracks() const
Definition: AliEmcalJet.h:139
Double_t fExtraMarginAccTag
Extra margin to be added to the acceptance for the different acceptance types (tag jet container) ...
AliParticleContainer * GetParticleContainer(Int_t i=0) const
Get particle container attached to this task.
void ResetMatching()
Double_t fMinFractionShared
only fill histos for jets if shared fraction larger than X
Int_t fTypeAcc
acceptance cut for the jet containers, see method MatchJetsGeo in .cxx for possibilities ...
Double_t GetJetPhiMin() const
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
JetTaggingType fJetTaggingType
jet matching type
void SetJetPhiLimits(Float_t min, Float_t max)
Int_t GetNJets() const
Int_t fNcentBins
how many centrality bins
Double_t MaxTrackPt() const
Definition: AliEmcalJet.h:155
AliEmcalJet * GetAcceptJetFromArray(Int_t j, Int_t c=0) const
void Terminate(Option_t *option)
Terminate method - not implemented for the jet tagger task.
AliEmcalJet * GetNextAcceptJet()
JetTaggingMethod fJetTaggingMethod
jet matching method
Bool_t fMatchingDone
flag to indicate if matching is done or not
Double_t DeltaR(const AliVParticle *part) const
TH2F ** fh2PtJet1VsPtJet2
! pT of base jet vs tagged jet
Tagging jets with jet from another source.
Double_t Pt() const
Definition: AliEmcalJet.h:109
Double_t GetRhoVal(Int_t i=0) const
Double_t fExtraMarginAccBase
Extra margin to be added to the acceptance for the different acceptance types (base jet container) ...
AliEmcalList * fOutput
!output list
void SetClosestJet(AliEmcalJet *j, Double_t d)
Definition: AliEmcalJet.h:337
Bool_t FillHistograms()
Filling internal QA histograms of jet tagger task.
void SetMakeGeneralHistograms(Bool_t g)
Enable general histograms.
TH2F ** fh2PtJet1VsLeadPtAllSel
! all jets after std selection
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
Double_t GetFractionSharedPt(const AliEmcalJet *jet, AliParticleContainer *cont2=0x0) const
Only the closest jet in distance is tagged.
Bool_t fUseSumw2
activate sumw2 for output histograms
const char Option_t
Definition: External.C:48
void ResetTagging(const Int_t c)
Remove tag status of all jets in a given jet container.
void UserCreateOutputObjects()
Main initialization function on the worker.
Double_t GetDeltaPhi(const AliEmcalJet *jet1, const AliEmcalJet *jet2)
Calculate azimuthal angle between the axises of the jets.
bool Bool_t
Definition: External.C:53
All jets within a maximum distance are tagged.
TH3F * fh3PtJetAreaDRConst
pt jet vs delta eta vs delta phi of constituents
void SetJetEtaLimits(Float_t min, Float_t max)
void ResetCurrentID(Int_t i=-1)
Reset the iterator to a given index.
Int_t fContainerTag
jets used for tagging
Container for jet within the EMCAL jet framework.
void UserCreateOutputObjects()
Creating interal QA histograms of the jet tagger task.
Definition: External.C:196
Bool_t RetrieveEventObjects()
Retrieving event objects.
Int_t fSpecPartContTag
particle container optionally used in AliJetContainer::GetFractionSharedPt(). Set only if needed...