- Int_t GetDataSize() const {return fMiniHeader->fSize;};
- Int_t GetDetectorID() const {return fMiniHeader->fDetectorID;};
- Int_t GetDDLID() const {return fMiniHeader->fDDLID;};
- Int_t GetVersion() const {return fMiniHeader->fVersion;};
- Bool_t IsCompressed() const {return fMiniHeader->fCompressionFlag != 0;};
-
- virtual Bool_t ReadMiniHeader() = 0;
+ virtual Int_t GetEquipmentSize() const = 0;
+ virtual Int_t GetEquipmentType() const = 0;
+ virtual Int_t GetEquipmentId() const = 0;
+ virtual const UInt_t* GetEquipmentAttributes() const = 0;
+ virtual Int_t GetEquipmentElementSize() const = 0;
+
+ Int_t GetDetectorID() const
+ {if (GetEquipmentId() >= 0) return (GetEquipmentId() >> 8); else return -1;};
+ Int_t GetDDLID() const
+ {if (GetEquipmentId() >= 0) return (GetEquipmentId() & 0xFF); else return -1;};
+
+ Int_t GetDataSize() const
+ {if (fHeader) return fHeader->fSize - sizeof(AliRawDataHeader);
+ else return GetEquipmentSize();};
+
+ Int_t GetVersion() const
+ {if (fHeader) return fHeader->fVersion; else return -1;};
+ Bool_t IsValid() const
+ {if (fHeader) return fHeader->TestAttribute(0);
+ else return kFALSE;};
+ Bool_t IsCompressed() const
+ {if (fHeader) return fHeader->TestAttribute(1);
+ else return kFALSE;};
+ Bool_t TestBlockAttribute(Int_t index) const
+ {if (fHeader) return fHeader->TestAttribute(index);
+ else return kFALSE;};
+ UChar_t GetBlockAttributes() const
+ {if (fHeader) return fHeader->GetAttributes();
+ else return 0;};
+ UInt_t GetStatusBits() const
+ {if (fHeader) return fHeader->GetStatus();
+ else return 0;};
+ const AliRawDataHeader* GetDataHeader() const
+ {return fHeader;}
+
+ virtual Bool_t ReadHeader() = 0;