X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=CONTAINERS%2FAliDigits.h;h=3ddfaee2140184c5cec6e780d1c6395a88e6596d;hb=3aaecde62baaf9c0218cec87ff982d65b36669c5;hp=a4aa29f06003c550562e42a1694f9bfebfa1f60b;hpb=a46e9031e02f10b859b42c7f8701b910961e91e3;p=u%2Fmrichter%2FAliRoot.git diff --git a/CONTAINERS/AliDigits.h b/CONTAINERS/AliDigits.h index a4aa29f0600..3ddfaee2140 100644 --- a/CONTAINERS/AliDigits.h +++ b/CONTAINERS/AliDigits.h @@ -21,6 +21,7 @@ public: AliDigits(const AliDigits &digits); //copy constructor AliDigits &operator = (const AliDigits & digits); //assignment operator virtual ~AliDigits(); + Short_t * GetDigits(){return fElements->GetArray();} //return row pointer to the array digits Short_t GetDigitFast(Int_t row, Int_t column); //return value at given row and collumn void SetDigitFast(Short_t value,Int_t row, Int_t column); //set value at given row and collumn Bool_t BoundsOK(const char *where, Int_t row, Int_t col) ; //Check If Bound Ok @@ -95,7 +96,7 @@ inline void AliDigits::SetDigitFast(Short_t value, Int_t row, Int_t column) // //set digit // - if ( (row<0) || (row>=fNrows) || (column<0) || (column>=fNrows) ) + if ( (row<0) || (row>=fNrows) || (column<0) || (column>=fNcols) ) Error("AliDigits::SetDigitFast", "row %d col %d out of bounds (size: %d x %d, this: 0x%08x)", row, column, fNrows, fNcols, this); (*fElements)[fIndex->At(column)+row]=value;