From 11c7b54895cbd1b16c9a0c628f0e081e783d7c9f Mon Sep 17 00:00:00 2001 From: kowal2 Date: Mon, 13 May 2002 07:33:52 +0000 Subject: [PATCH] Added protection in Int_t AliTPCtracker::AliTPCRow::Find(Double_t y) const in the case of defined region of interests. --- TPC/AliTPCtracker.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TPC/AliTPCtracker.cxx b/TPC/AliTPCtracker.cxx index e090a96ab15..e101184c904 100644 --- a/TPC/AliTPCtracker.cxx +++ b/TPC/AliTPCtracker.cxx @@ -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; -- 2.31.1