1 #ifndef ALIRAWEQUIPMENTHEADER_H
2 #define ALIRAWEQUIPMENTHEADER_H
4 // Author: Fons Rademakers 26/11/99
6 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 //////////////////////////////////////////////////////////////////////////
11 // AliRawEquipmentHeader //
13 //////////////////////////////////////////////////////////////////////////
20 class AliRawEquipmentHeader : public TObject {
23 AliRawEquipmentHeader();
24 ~AliRawEquipmentHeader() { }
26 void *HeaderBegin() { return (void *) &fSize; }
27 Int_t HeaderSize() const { return (Long_t) &fBasicElementSizeType - (Long_t) &fSize + sizeof(fBasicElementSizeType); }
28 UInt_t SwapWord(UInt_t x) const;
31 UInt_t GetEquipmentSize() const { return fSize; }
32 UInt_t GetEquipmentType() const { return fEquipmentType; }
33 UInt_t GetId() const { return fEquipmentID; }
34 const UInt_t *GetTypeAttribute() const { return fTypeAttribute; }
35 UInt_t GetBasicSizeType() const { return fBasicElementSizeType; }
39 void Print( const Option_t* opt ="" ) const;
46 UInt_t fSize; // number of raw data bytes
47 UInt_t fEquipmentType; // equipment type
48 UInt_t fEquipmentID; // equipment ID
49 UInt_t fTypeAttribute[kAttributeWords]; // system (0,1) and user (2) attributes
50 UInt_t fBasicElementSizeType; // basic element size type
52 ClassDef(AliRawEquipmentHeader,2) //Alice equipment header