]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliMiniHeader.h
d9cd657769ab2d401a1fdfc6f0e3e23ce2766214
[u/mrichter/AliRoot.git] / RAW / AliMiniHeader.h
1 #ifndef ALIMINIHEADER_H
2 #define ALIMINIHEADER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 struct AliMiniHeader {
8   AliMiniHeader() {
9     fMagicWord[0] = (kMagicWord >> 0) & 0xFF;
10     fMagicWord[1] = (kMagicWord >> 8) & 0xFF;
11     fMagicWord[2] = (kMagicWord >> 16) & 0xFF;
12     fVersion = 1;
13   }
14
15   enum {kMagicWord = 0x123456};
16
17   UInt_t    fSize;              // size of the raw data in bytes
18   UChar_t   fDetectorID;        // unique detector number
19   UChar_t   fMagicWord[3];      // hexadecimal word 123456 (used to detect byte swapping)
20   UChar_t   fVersion;           // mini header version
21   UChar_t   fCompressionFlag;   // compressed (=1) or uncompressed (=0)
22   UShort_t  fDDLID;             // unique DDL number
23 };
24
25 #endif