]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
added warning when the index goes out of range.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Aug 2002 22:07:16 +0000 (22:07 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Aug 2002 22:07:16 +0000 (22:07 +0000)
ITS/AliITSpList.h

index ec1b948b32f8c55f1f8152ac97084086cf0c4ae9..10d0e5e23b8d08de6f121663d9d9b16a22cde005 100644 (file)
@@ -102,7 +102,11 @@ class AliITSpList: public AliITSMap {
  private:
     // returns the TObjArray index for a give set of map indecies.
     Int_t GetIndex(Int_t i,Int_t j){
-       if(i<0||i>=fNi || j<0||j>=fNj) return -1;
+       if(i<0||i>=fNi || j<0||j>=fNj){
+           Warning("GetIndex","Index out of range 0<i=%d<%d and 0<0j=%d<%d",
+                   i,fNi,j,fNj);
+           return -1;
+       } // end if
        return fNj*i+j;
     }