11 #include <TClonesArray.h> 14 #include "AliAnalysisManager.h" 52 Int_t maxJetIds[] = {-1, -1};
56 for (
Int_t ij = 0; ij < Njets; ++ij) {
59 AliError(Form(
"%s: Could not receive jet %d", GetName(), ij));
66 if (jet->
Pt() > maxJetPts[0]) {
67 maxJetPts[1] = maxJetPts[0];
68 maxJetIds[1] = maxJetIds[0];
69 maxJetPts[0] = jet->
Pt();
71 }
else if (jet->
Pt() > maxJetPts[1]) {
72 maxJetPts[1] = jet->
Pt();
86 for (
Int_t iJets = 0; iJets < Njets; ++iJets) {
89 if (iJets == maxJetIds[0] || iJets == maxJetIds[1])
94 AliError(Form(
"%s: Could not receive jet %d", GetName(), iJets));
101 rhovec[NjetAcc] = jet->
Pt() / jet->
Area();
108 Double_t rho = TMath::Median(NjetAcc, rhovec);
AliRhoParameter * fOutRhoScaled
output rho object
Double_t fCent
!event centrality
TClonesArray * fJets
! jets
virtual Double_t GetScaleFactor(Double_t cent)
Represent a jet reconstructed using the EMCal jet framework.
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
virtual Bool_t AcceptJet(AliEmcalJet *jet, Int_t c=0)
AliRhoParameter * fOutRho