]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/hough/AliL3HoughMaxFinder.cxx
Some changes in AliL3Hough::Evaluate. Comments have been added in the code.
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughMaxFinder.cxx
index 3a93770f5b4673a435e4896ff712814ec8896b4b..477f5b19d3c36ae1cafca98b5df65bd9c0b1f17f 100644 (file)
@@ -258,19 +258,19 @@ void AliL3HoughMaxFinder::FindMaxima(Double_t grad_x,Double_t grad_y)
              Float_t max_x = fCurrentHisto->GetBinCenterX(xbin);
              Float_t max_y = fCurrentHisto->GetBinCenterY(ybin);
              
-             cout<<"Checking for threshols "<<value[4]<<" "<<fThreshold<<endl;
              if((Int_t)value[4] <= fThreshold) continue;//central bin below threshold
              
-             if(fNPeaks > fNMax)
+             if(fNPeaks >= fNMax)
                {
                  cerr<<"AliL3HoughMaxFinder::FindMaxima : Array out of range "<<fNPeaks<<endl;
                  return;
                }
-             
+             /*
              //Check the gradient:
              if(value[4]/value[3] < grad_x || value[4]/value[5] < grad_x ||
                 value[4]/value[1] < grad_y || value[4]/value[7] < grad_y)
                continue;
+             */
              
              fXPeaks[fNPeaks] = max_x;
              fYPeaks[fNPeaks] = max_y;