]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
minor bug fix
authorhansena <hansena@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jun 2012 14:51:53 +0000 (14:51 +0000)
committerhansena <hansena@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 5 Jun 2012 14:51:53 +0000 (14:51 +0000)
PWGLF/FORWARD/analysis2/AliForwardFlowTaskQC.cxx
PWGLF/FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx

index 43fa9e01822e7d3327bb8fc5d1dc69cfa7d3af9f..c6c4cd56e997b5b016c5c6286178096d1a6bcbc5 100644 (file)
@@ -150,10 +150,10 @@ void AliForwardFlowTaskQC::InitVertexBins()
   for(UShort_t n = 2; n <= 6; n++) {
     if (!fv[n]) continue;
     for (Int_t v = 1; v <= fVtxAxis->GetNbins(); v++) {
-      fBinsFMD.Add(new VertexBin(fVtxAxis->GetBinLowEdge(v), fVtxAxis->GetBinUpEdge(v), n, 
-                   "FMD", (fgDispVtx ? kFALSE : kTRUE), fFMDCut));
-      fBinsSPD.Add(new VertexBin(fVtxAxis->GetBinLowEdge(v), fVtxAxis->GetBinUpEdge(v), n, 
-                   "SPD", kFALSE, fSPDCut));
+      Int_t vL = Int_t(fVtxAxis->GetBinLowEdge(v));
+      Int_t vH = Int_t(fVtxAxis->GetBinUpEdge(v));
+      fBinsFMD.Add(new VertexBin(vL, vH, n, "FMD", (fgDispVtx ? kFALSE : kTRUE), fFMDCut));
+      fBinsSPD.Add(new VertexBin(vL, vH, n, "SPD", kFALSE, fSPDCut));
     }
   }
 
index 6947d1db50eb71d2955f7f04c2c85f43f8ad864a..25899a160a8b9af3aedaf48a09726d24d0e67036 100644 (file)
@@ -121,11 +121,11 @@ void AliForwardMCFlowTaskQC::InitVertexBins()
   for(UShort_t n = 2; n <= 6; n++) {
     if (!fv[n]) continue;
       for (Int_t v = 1; v <= fVtxAxis->GetNbins(); v++) {
-      fBinsFMDTR.Add(new VertexBin(fVtxAxis->GetBinLowEdge(v), fVtxAxis->GetBinUpEdge(v), n, 
-      "FMDTR", (fgDispVtx ? kFALSE : kTRUE), fFMDCut));
-      fBinsSPDTR.Add(new VertexBin(fVtxAxis->GetBinLowEdge(v), fVtxAxis->GetBinUpEdge(v), n, 
-      "SPDTR", kTRUE, fSPDCut));
-      fBinsMC.Add(new VertexBin(fVtxAxis->GetBinLowEdge(v), fVtxAxis->GetBinUpEdge(v), n, "MC"));
+      Int_t vL = Int_t(fVtxAxis->GetBinLowEdge(v));
+      Int_t vH = Int_t(fVtxAxis->GetBinUpEdge(v));
+      fBinsFMDTR.Add(new VertexBin(vL, vH, n, "FMDTR", (fgDispVtx ? kFALSE : kTRUE), fFMDCut));
+      fBinsSPDTR.Add(new VertexBin(vL, vH, n, "SPDTR", kTRUE, fSPDCut));
+      fBinsMC.Add(new VertexBin(vL, vH, n, "MC"));
     }
   }
 }