11 #include <TClonesArray.h>
14 #include "AliAnalysisManager.h"
62 if (jet1Track == jet2Track)
97 if (sigjets) NjetsSig = sigjets->
GetNJets();
99 Int_t maxJetIds[] = {-1, -1};
103 for (
Int_t ij = 0; ij < Njets; ++ij) {
106 AliError(Form(
"%s: Could not receive jet %d", GetName(), ij));
113 if (jet->
Pt() > maxJetPts[0]) {
114 maxJetPts[1] = maxJetPts[0];
115 maxJetIds[1] = maxJetIds[0];
116 maxJetPts[0] = jet->
Pt();
118 }
else if (jet->
Pt() > maxJetPts[1]) {
119 maxJetPts[1] = jet->
Pt();
135 for (
Int_t iJets = 0; iJets < Njets; ++iJets) {
138 if (iJets == maxJetIds[0] || iJets == maxJetIds[1])
143 AliError(Form(
"%s: Could not receive jet %d", GetName(), iJets));
147 TotaljetArea+=jet->
Area();
150 TotaljetAreaPhys+=jet->
Area();
157 Bool_t isOverlapping = kFALSE;
159 for(
Int_t j=0;j<NjetsSig;j++)
169 isOverlapping = kTRUE;
179 rhovec[NjetAcc] = jet->
Pt() / jet->
Area();
185 if(TotaljetArea>0) OccCorr=TotaljetAreaPhys/TotaljetArea;
192 Double_t rho = TMath::Median(NjetAcc, rhovec);
TH2F * fHistOccCorrvsCent
void UserCreateOutputObjects()
ClassImp(AliAnalysisTaskRhoSparse) AliAnalysisTaskRhoSparse
AliAnalysisTaskRhoSparse()
void UserCreateOutputObjects()
UShort_t GetNumberOfTracks() const
Bool_t IsJetOverlapping(AliEmcalJet *jet1, AliEmcalJet *jet2)
AliRhoParameter * fOutRhoScaled
output rho object
Double_t fCent
!event centrality
TObjArray fJetCollArray
jet collection array
TClonesArray * fJets
! jets
virtual Double_t GetScaleFactor(Double_t cent)
AliEmcalList * fOutput
!output list
Short_t TrackAt(Int_t idx) const
Bool_t fCreateHisto
whether or not create histograms
AliEmcalJet * GetAcceptJet(Int_t i) const
Represent a jet reconstructed using the EMCal jet framework.
virtual Bool_t AcceptJet(AliEmcalJet *jet, Int_t c=0)
AliRhoParameter * fOutRho
Bool_t IsJetSignal(AliEmcalJet *jet1)
Container for jet within the EMCAL jet framework.