}
//________________________________________________________________________
-Int_t AliHadCorrTask::GetMomBin(Double_t p) const
+UInt_t AliHadCorrTask::GetMomBin(Double_t p) const
{
// Get momenum bin.
- Int_t pbin=-1;
+ UInt_t pbin=0;
if (p<0.5)
pbin=0;
else if (p>=0.5 && p<1.0)
AliPicoTrack::GetEtaPhiDiff(track, cluster, phidiff, etadiff);
Double_t mom = track->P();
- Int_t mombin = GetMomBin(mom);
+ UInt_t mombin = GetMomBin(mom);
Int_t centbinch = fCentBin;
if (track->Charge()<0)
centbinch += fNcentBins;
totalTrkP += track->P();
if (fCreateHisto) {
- if (fHadCorr > 1 && mombin > -1) {
+ if (fHadCorr > 1) {
fHistMatchdRvsEP[fCentBin]->Fill(dR, energyclus / mom);
}
}
Double_t dPhiMin = 1e9;
AliPicoTrack::GetEtaPhiDiff(track, cluster, dPhiMin, dEtaMin);
- Int_t mombin = GetMomBin(mom);
+ UInt_t mombin = GetMomBin(mom);
Int_t centbinch = fCentBin;
if (track->Charge()<0)
centbinch += fNcentBins;
void DoMatchedTracksLoop(AliEmcalParticle *emccluster, Double_t &totalTrkP, Int_t &Nmatches, Double_t &trkPMCfrac, Int_t &NMCmatches);
void DoTrackLoop();
Double_t GetEtaSigma(Int_t pbin) const;
- Int_t GetMomBin(Double_t pt) const;
+ UInt_t GetMomBin(Double_t pt) const;
Double_t GetPhiMean(Int_t pbin, Int_t centbin) const;
Double_t GetPhiSigma(Int_t pbin, Int_t centbin) const;
Bool_t Run() ;