]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDdataArrayI.h
Make use of new method AliRawReader::GetNumberOfEvents() - goinf to the last event...
[u/mrichter/AliRoot.git] / TRD / AliTRDdataArrayI.h
index 157efd373ea2ca42899ab8bcfbfbc5b4d7173b86..d756d38c0844871f0777ad70529e8baffd199594 100644 (file)
@@ -27,7 +27,7 @@ class AliTRDdataArrayI : public AliTRDdataArray {
   AliTRDdataArrayI &operator=(const AliTRDdataArrayI &a);
 
   virtual void   Allocate(Int_t nrow, Int_t ncol, Int_t ntime);
-  virtual void   Copy(TObject &a);
+  virtual void   Copy(TObject &a) const;
   virtual void   Compress(Int_t bufferType, Int_t threshold);
   virtual void   Compress(Int_t bufferType); 
   virtual void   Expand();
@@ -36,21 +36,27 @@ class AliTRDdataArrayI : public AliTRDdataArray {
   virtual void   Reset();
 
           void   SetData(Int_t row, Int_t col, Int_t time, Int_t value);
+          void   SetDataUnchecked(Int_t row, Int_t col, Int_t time, Int_t value)
+                                 { SetDataFast(GetIdx1Unchecked(row,col),time,value); };
+
   virtual void   SetThreshold(Int_t threshold) { fThreshold = threshold; };
 
-  virtual Int_t  GetData(Int_t row, Int_t col, Int_t time);
-  virtual Int_t  GetThreshold()                { return fThreshold;  };
+  virtual Int_t  GetData(Int_t row, Int_t col, Int_t time) const;
+          Int_t  GetDataUnchecked(Int_t row, Int_t col, Int_t time) const
+                                 { return GetDataFast(GetIdx1Unchecked(row,col),time); };
+
+  virtual Int_t  GetThreshold() const          { return fThreshold;  };
 
-  virtual Int_t  GetSize();
-  virtual Int_t  GetDataSize(); 
+  virtual Int_t  GetSize() const;
+  virtual Int_t  GetDataSize() const
   virtual Int_t  GetOverThreshold(Int_t threshold);  
 
  protected:
 
-  inline  void   SetDataFast(Int_t idx1, Int_t idx2, Int_t value); 
-  inline  Int_t  GetDataFast(Int_t idx1, Int_t idx2); 
+          void   SetDataFast(Int_t idx1, Int_t idx2, Int_t value);
+          Int_t  GetDataFast(Int_t idx1, Int_t idx2) const;
 
-  Int_t          GetData1(Int_t idx1, Int_t idx2); 
+  Int_t          GetData1(Int_t idx1, Int_t idx2) const
   void           Expand1(); 
   void           Compress1(); 
   void           Expand2();
@@ -69,3 +75,4 @@ class AliTRDdataArrayI : public AliTRDdataArray {
  
 #endif
 
+