11 #include <TClonesArray.h>
14 #include "AliAnalysisManager.h"
26 fPionMassClusters(kFALSE),
37 fPionMassClusters(kFALSE),
74 Int_t maxJetIds[] = {-1, -1};
78 for (
Int_t ij = 0; ij < Njets; ++ij) {
81 AliError(Form(
"%s: Could not receive jet %d", GetName(), ij));
88 if (jet->
Pt() > maxJetPts[0]) {
89 maxJetPts[1] = maxJetPts[0];
90 maxJetIds[1] = maxJetIds[0];
91 maxJetPts[0] = jet->
Pt();
93 }
else if (jet->
Pt() > maxJetPts[1]) {
94 maxJetPts[1] = jet->
Pt();
110 for (
Int_t iJets = 0; iJets < Njets; ++iJets) {
113 if (iJets == maxJetIds[0] || iJets == maxJetIds[1])
118 AliError(Form(
"%s: Could not receive jet %d", GetName(), iJets));
130 rhomvec[NjetAcc] =
GetMd(jet) / jet->
Area();
132 Evec[NjetAcc] = jet->
E();
133 Mvec[NjetAcc] = jet->
M();
140 Double_t rhom = TMath::Median(NjetAcc, rhomvec);
144 Double_t meanM = TMath::Mean(NjetAcc, Mvec);
145 Double_t meanE = TMath::Mean(NjetAcc, Evec);
147 if(meanM>0.) gamma = meanE/meanM;
201 if(
fJetRhoMassType==
kMd) sum += TMath::Sqrt(vp->M()*vp->M() + vp->Pt()*vp->Pt()) - vp->Pt();
202 else if(
fJetRhoMassType==
kMdP) sum += TMath::Sqrt(vp->M()*vp->M() + vp->P()*vp->P()) - vp->P();
217 TLorentzVector nPart;
218 vp->GetMomentum(nPart,
fVertex);
221 if(
fJetRhoMassType==
kMd) sum += TMath::Sqrt(m*m + nPart.Pt()*nPart.Pt()) - nPart.Pt();
222 else if(
fJetRhoMassType==
kMdP) sum += TMath::Sqrt(nPart.M()*nPart.M() + nPart.P()*nPart.P()) - nPart.P();
233 Double_t pt = TMath::Sqrt(px*px + py*py);
235 sum = TMath::Sqrt(m2 + pt*pt) - pt;
Double_t GetSumMConstituents(AliEmcalJet *jet)
JetRhoMassType fJetRhoMassType
Double_t fMinBinPt
min pt in histograms
virtual Double_t GetScaleFactor(Double_t cent)
AliRhoParameter * fOutRhoMassScaled
output rho object
Double_t GetSumPtConstituents(AliEmcalJet *jet)
UShort_t GetNumberOfTracks() const
TClonesArray * fCaloClusters
!clusters
Short_t ClusterAt(Int_t idx) const
UShort_t GetNumberOfClusters() const
Double_t GetMd(AliEmcalJet *jet)
Double_t fCent
!event centrality
void UserCreateOutputObjects()
TH2F * fHistGammaVsNtrack
rho mass scaled vs. no. of clusters
TClonesArray * fJets
! jets
void UserCreateOutputObjects()
AliEmcalList * fOutput
!output list
Double_t fMaxBinPt
max pt in histograms
TClonesArray * fTracks
!tracks
Short_t TrackAt(Int_t idx) const
Double_t fVertex[3]
!event vertex
AliRhoParameter * fOutRhoMass
Bool_t fCreateHisto
whether or not create histograms
ClassImp(AliAnalysisTaskRhoMass) AliAnalysisTaskRhoMass
Represent a jet reconstructed using the EMCal jet framework.
virtual Bool_t AcceptJet(AliEmcalJet *jet, Int_t c=0)
Int_t fNbins
no. of pt bins