]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDdataArray.h
Geometry and hit structure update
[u/mrichter/AliRoot.git] / TRD / AliTRDdataArray.h
index b00ffb2f34e408a4c3b065adcf955b8bfc25d166..b47990f495dac3cbff09fafdc7c2d2700254f100 100644 (file)
@@ -29,14 +29,20 @@ class AliTRDdataArray : public AliTRDsegmentID {
   virtual void   Allocate(Int_t nrow, Int_t ncol,Int_t ntime);
   virtual void   Reset();
 
-  virtual Int_t  GetNRow() const               { return fNrow;       };
-  virtual Int_t  GetNCol() const               { return fNcol;       };
+  virtual Int_t  GetNrow() const               { return fNrow;       };
+  virtual Int_t  GetNcol() const               { return fNcol;       };
   virtual Int_t  GetNtime() const              { return fNtime;      };
           Int_t  GetIndex(Int_t row, Int_t col, Int_t time) const;
+          Int_t  GetIndexUnchecked(Int_t row, Int_t col, Int_t time) const
+           { return time * fNrow*fNcol + GetIdx1Unchecked(row,col); };
+          Int_t  GetBufType() const            { return fBufType;    };
+  virtual Int_t  GetNelems() const             { return fNelems;     };
 
  protected:
 
           Int_t  GetIdx1(Int_t row, Int_t col) const;
+  inline  Int_t  GetIdx1Unchecked(Int_t row, Int_t col) const
+                                               { return row + col * fNrow; };
   inline  Bool_t CheckBounds(const char *where, Int_t idx1, Int_t idx2);
   inline  Bool_t OutOfBoundsError(const char *where, Int_t idx1, Int_t idx2);