]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDUShortMap.h
Bug fix + keeping the clusters in the TClonesArrays (Ruben)
[u/mrichter/AliRoot.git] / FMD / AliFMDUShortMap.h
index 48d4398d1b2b86499c8c2ef6071d2ad091fdee42..cd67642b2cb0697d78bbdfb30267d2321fd16420 100644 (file)
@@ -67,8 +67,21 @@ public:
                                     Char_t   ring, 
                                     UShort_t sector, 
                                     UShort_t strip) const;
- protected:
+  /** 
+   * Get the raw data pointer. 
+   * 
+   * @return Pointer to the data 
+   */
+  UShort_t* Data() const { return fData; }
+  /** 
+   * The total number of entries in the data array 
+   * 
+   * @return Total number of entries in the data array 
+   */
+  Int_t     Total() const { return fTotal; }
+  void*     Ptr() const { return reinterpret_cast<void*>(fData); }
   Int_t     MaxIndex()            const { return fTotal; }
+ protected:
   UShort_t  AtAsUShort(Int_t idx) const { return fData[idx]; }
   UShort_t& AtAsUShort(Int_t idx)       { return fData[idx]; }
   Int_t     AtAsInt(Int_t idx)    const { return fData[idx]; }