Compilation with Root6, lost in the previous commit
authorhristov <Peter.Hristov@cern.ch>
Mon, 27 Oct 2014 17:38:46 +0000 (18:38 +0100)
committerhristov <Peter.Hristov@cern.ch>
Mon, 27 Oct 2014 17:38:46 +0000 (18:38 +0100)
PWGHF/hfe/AliHFEpidTPC.cxx

index 07c985c..819753a 100644 (file)
@@ -400,10 +400,10 @@ Double_t AliHFEpidTPC::GetCorrectedTPCnSigmaJpsi(Double_t eta, Double_t centrali
   //
   Double_t corrtpcNsigma = tpcNsigma;
   if(fkCentralityEtaCorrectionMeanJpsi&&fkCentralityEtaCorrectionWidthJpsi){
-    TAxis *caxis = fkCentralityEtaCorrectionMeanJpsi->GetXaxis();
-    TAxis *eaxis = fkCentralityEtaCorrectionMeanJpsi->GetYaxis();
-    Int_t cbin = caxis->FindBin(centralityEstimator);
-    Int_t ebin = eaxis->FindBin(eta);
+    const TAxis *caxis = fkCentralityEtaCorrectionMeanJpsi->GetXaxis();
+    const TAxis *eaxis = fkCentralityEtaCorrectionMeanJpsi->GetYaxis();
+    Int_t cbin = caxis->FindFixBin(centralityEstimator);
+    Int_t ebin = eaxis->FindFixBin(eta);
     //Double_t cbinlowedge = caxis->GetBinLowEdge(cbin);
     //Double_t cbinupedge = caxis->GetBinUpEdge(cbin);
     //Double_t ebinlowedge = eaxis->GetBinLowEdge(ebin);