Int_t GetSize();//return total size of object in bytes
Int_t GetDigitSize(); //return total size of pure digits
Int_t GetOverTh(Float_t threshold,Float_t x1=-1, Float_t x2=-1, Float_t y1=-1, Float_t y2=-1); //return number of digits over threshold
+
+ inline Short_t * GetDigitsColumn(Int_t row); //return row pointer to the array digits
+
protected:
virtual void Invalidate();
void ExpandBuffer1(); //expand buffer of type to twodimensional array
return fElements->fArray[fIndex->fArray[column]+row];
}
+inline Short_t * AliDigits::GetDigitsColumn(Int_t column){
+ //
+ //return row pointer to the array digits
+ //
+ return &(fElements->fArray[fIndex->fArray[column]]);
+}
+
+
inline void AliDigits::SetDigitFast(Short_t value, Int_t row, Int_t column)
{
//
//set digit
//
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);
+ Error("AliDigits::SetDigitFast", "row %d col %d out of bounds (size: %d x %d, this: 0x%08lx)",
+ row, column, fNrows, fNcols, (ULong_t)this);
(*fElements)[fIndex->At(column)+row]=value;
}