]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackerSA.cxx
test script
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.cxx
index 198d9ab0b7a114fbad37ce6bf05f566b9d45450d..f575e94c39ddead6fc53b169fb2427b402103feb 100644 (file)
@@ -1045,9 +1045,9 @@ void AliITStrackerSA::GetCoorErrors(AliITSRecPoint* cl,Double_t &sx,Double_t &sy
 Int_t AliITStrackerSA::FindIndex(Int_t lay, Double_t lamVal) const {
   // Find the cluster at limit of lambda window 
 
-
   Int_t base = 0;
   Int_t last = fCluCoord[lay]->GetEntriesFast()-1;
+  if(last<0) return 0;
   Int_t position;
   Double_t lamfirst=((AliITSclusterTable*)fCluCoord[lay]->At(base))->GetLambda();
   if(lamfirst>lamVal) return base;
@@ -1061,6 +1061,6 @@ Int_t AliITStrackerSA::FindIndex(Int_t lay, Double_t lamVal) const {
     if(a>0) last = position;
     else  base = position;
   }
-  return -1;
+  return 0;
 }