fix variable cast
authorzconesa <zaida.conesa.del.valle@cern.ch>
Fri, 17 Oct 2014 12:28:46 +0000 (14:28 +0200)
committerzconesa <zaida.conesa.del.valle@cern.ch>
Fri, 17 Oct 2014 12:36:44 +0000 (14:36 +0200)
PWGHF/vertexingHF/AliAnalysisTaskSELc2V0bachelor.cxx

index 49ad675..70818a8 100644 (file)
@@ -1049,7 +1049,7 @@ void AliAnalysisTaskSELc2V0bachelor::DefineK0SHistos()
     fOutputPIDBachTR->Add(hNormRotatedBkg);
     fOutputPIDBachTR->Add(hNormRotatedOfflineBkg);
 
-    Int_t nMassBins=fMaxMass*1000.-fMinMass*1000.;
+    Int_t nMassBins=static_cast<Int_t>(fMaxMass*1000.-fMinMass*1000.);
     Double_t maxm=fMinMass+nMassBins*0.001;
     TH3F *hMassVsPtVsY=new TH3F("hMassVsPtVsY","",nMassBins,fMinMass,maxm,20,0.,10.,20,-1.,1.);
     TH3F *hMassVsPtVsYOffline=new TH3F("hMassVsPtVsYOffline","",nMassBins,fMinMass,maxm,20,0.,10.,20,-1.,1.);