Added protection in Int_t AliTPCtracker::AliTPCRow::Find(Double_t y) const
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 13 May 2002 07:33:52 +0000 (07:33 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 13 May 2002 07:33:52 +0000 (07:33 +0000)
in the case of defined region of interests.

TPC/AliTPCtracker.cxx

index e090a96ab150dbaffbdab87e5275cc431a392310..e101184c904da368242b80186e252d0c475a94c0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  2002/03/18 17:59:13  kowal2
+Chnges in the pad geometry - 3 pad lengths introduced.
+
 Revision 1.16  2001/11/08 16:39:03  hristov
 Additional protection (M.Masera)
 
@@ -960,6 +963,7 @@ Int_t AliTPCtracker::AliTPCRow::Find(Double_t y) const {
   //-----------------------------------------------------------------------
   // Return the index of the nearest cluster 
   //-----------------------------------------------------------------------
+  if(fN<=0) return 0;
   if (y <= fClusters[0]->GetY()) return 0;
   if (y > fClusters[fN-1]->GetY()) return fN;
   Int_t b=0, e=fN-1, m=(b+e)/2;