Fixed missing initialization for some variables at the edges of the hough space
[u/mrichter/AliRoot.git] / HLT / hough / AliL3Histogram.cxx
index 06db92748ecfb7ef4364b0fa59ab9e703e5e59c4..0d72439b120f4ac9c3e0971da0c2d91b4c49c168 100644 (file)
@@ -349,7 +349,7 @@ Double_t AliL3Histogram::GetBinCenterY(Int_t ybin) const
 Double_t AliL3Histogram::GetPreciseBinCenterX(Float_t xbin) const
 {
   // Returns the position of the center of a bin using precise values inside the bin
-  if(xbin < (fFirstXbin-0.5) || xbin > (fLastXbin+0.5))
+  if(xbin < (fFirstXbin-1.5) || xbin > (fLastXbin+1.5))
     {
       LOG(AliL3Log::kError,"AliL3Histogram::GetBinCenterX","xbin")
        <<"Bin-value out of range "<<xbin<<ENDLOG;
@@ -362,7 +362,7 @@ Double_t AliL3Histogram::GetPreciseBinCenterX(Float_t xbin) const
 Double_t AliL3Histogram::GetPreciseBinCenterY(Float_t ybin) const
 {
   // Returns the position of the center of a bin using precise values inside the bin
-  if(ybin < (fFirstYbin-0.5) || ybin > (fLastYbin+0.5))
+  if(ybin < (fFirstYbin-1.5) || ybin > (fLastYbin+1.5))
     {
       LOG(AliL3Log::kError,"AliL3Histogram::GetBinCenterY","ybin")
        <<"Bin-value out of range "<<ybin<<ENDLOG;