]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReaderMemory.h
Method to set the equipment id in case of memory raw data reading. It is needed in...
[u/mrichter/AliRoot.git] / RAW / AliRawReaderMemory.h
index fb1373d1b08dbeb4e9ec7f5b105646f70ec47104..50e8d9643b1b52198bb1a1acb9f57ac5f01efeb8 100644 (file)
@@ -40,27 +40,29 @@ class AliRawReaderMemory: public AliRawReader {
 
     virtual Int_t    GetEquipmentSize() const {return 0;};
     virtual Int_t    GetEquipmentType() const {return 0;};
-    virtual Int_t    GetEquipmentId() const {return 0;};
+    virtual Int_t    GetEquipmentId() const {return fEquipmentId;};
     virtual const UInt_t* GetEquipmentAttributes() const {return NULL;};
     virtual Int_t    GetEquipmentElementSize() const {return 0;};
 
     virtual Bool_t   ReadHeader();
     virtual Bool_t   ReadNextData(UChar_t*& data);
+    virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
 
     virtual Bool_t   Reset();
 
     virtual Bool_t   NextEvent();
     virtual Bool_t   RewindEvents();
 
-    virtual Bool_t SetMemory( UChar_t* memory, ULong_t size );
+    virtual Bool_t   SetMemory( UChar_t* memory, ULong_t size );
+
+    void             SetEquipmentID(Int_t id) { fEquipmentId = id; }
 
   protected :
 
     UChar_t*         fBuffer;      // buffer for payload
-    UInt_t            fBufferSize;  // size of fBuffer in bytes
-    UInt_t          fPosition;    // Current position in memory
-
-    virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
+    UInt_t           fBufferSize;  // size of fBuffer in bytes
+    UInt_t           fPosition;    // Current position in memory
+    Int_t            fEquipmentId;  // Equipment id provided by the user
 
     ClassDef(AliRawReaderMemory, 0) // class for reading raw digits from a memory block