fOutputList->Add(fh2JetEntries);
fh2Circularity=new TH2F("Circcularity","",10,0,1,150,0,150);
fOutputList->Add(fh2Circularity);
- Int_t nbinsJet[9]={10,9,7,9,36,10,2,10,10};
+ fh2JetAxisPhi=new TH2F("JetAxisSmearPhi","",9,0,TMath::Pi(),10,-0.5,9.5);
+ fOutputList->Add(fh2JetAxisPhi);
+
+
+ Int_t nbinsJet[9]={3,9,7,9,36,10,2,10,20};
Double_t binlowJet[9]= {0,0, 0, 0,-0.5*TMath::Pi(),0,0,-0.5,0};
- Double_t binupJet[9]= {100,0.9, 150,150,1.5*TMath::Pi(),1,200,9.5,20};
+ Double_t binupJet[9]= {100,0.9, 150,150,1.5*TMath::Pi(),1,200,9.5,200};
fhnJetTM = new THnSparseF("fhnJetTM", "fhnJetTM; cent;dr;pt_jet;pt_track;phi;circ;nc;pthard",9,nbinsJet,binlowJet,binupJet);
- Double_t *xPt3=new Double_t[10];
+
+ Double_t *xPt3=new Double_t[10];
xPt3[0] = 0.;
for(Int_t i = 1;i<=9;i++){
if(xPt3[i-1]<2)xPt3[i] = xPt3[i-1] + 0.4; // 1 - 5
xPt2[7]=150;
fhnJetTM->SetBinEdges(2,xPt2);
- fOutputList->Add(fhnJetTM);
+
+
+ Double_t *xPt4=new Double_t[4];
+ xPt4[0] = 0.;
+ xPt4[1]=10;
+ xPt4[2]=30;
+ xPt4[3]=50;
+
+
+ fhnJetTM->SetBinEdges(0,xPt4);
+
+
+ fOutputList->Add(fhnJetTM);
delete [] xPt3;
delete [] xPt2;
+ delete [] xPt4;
// =========== Switch on Sumw2 for all histos ===========
for (Int_t i=0; i<fOutputList->GetEntries(); ++i) {
TH1 *h1 = dynamic_cast<TH1*>(fOutputList->At(i));
Double_t areabig=0;
Double_t phibig=0.;
Double_t pxbig,pybig,pzbig;
-
+ Double_t phitrue=0;
+ Double_t etatrue=0;
+ Double_t smearphi=0;
AliAODJet* jetbig = (AliAODJet*)(fListJets[0]->At(i));
etabig = jetbig->Eta();
phibig = jetbig->Phi();
+ phitrue=phibig;
+ etatrue=etabig;
ptbig = jetbig->Pt();
if(ptbig==0) continue;
areabig = jetbig->EffectiveAreaCharged();
}
if(!jetAccepted) continue;
+ etabig=jetmatched->Eta();
+ phibig=jetmatched->Phi();
pxbig=jetmatched->Px();
pybig=jetmatched->Py();
pzbig=jetmatched->Pz();
- ptbig=jetmatched->Pt()-rho*jetmatched->EffectiveAreaCharged();}
+ ptbig=jetmatched->Pt()-rho*jetmatched->EffectiveAreaCharged();
+
+
+
+
+
+ smearphi=RelativePhi(phitrue,jetmatched->Phi());
+ smearphi=TMath::Abs(smearphi);
+
+
+}
fh2Circularity->Fill(circ,ptbig);
fh2JetEntries->Fill(ptbig,pthardbin);
+
+ if(fDoMatching) fh2JetAxisPhi->Fill(smearphi,pthardbin);
+
+
for (Int_t ip = 0; ip < ParticleList.GetEntries(); ip++) {
AliVParticle *track = (AliVParticle*)ParticleList.At(ip);