Make the graph also in case of one point
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 2010 12:22:20 +0000 (12:22 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 2010 12:22:20 +0000 (12:22 +0000)
(Marian)

TPC/AliTPCcalibBase.cxx

index 2514c9a..79fffbb 100644 (file)
@@ -277,7 +277,7 @@ TGraphErrors * AliTPCcalibBase::FitSlices(THnSparse *h, Int_t axisDim1, Int_t ax
   TH1D * projectionHist =0;
   //
 
-  for(Int_t i=1; i < hist->GetNbinsX(); i++) {
+  for(Int_t i=1; i <= hist->GetNbinsX(); i++) {
     Int_t nsum=0;
     Int_t imin   =  i;
     Int_t imax   =  i;