default constructor and constant for magic word added
[u/mrichter/AliRoot.git] / RAW / AliMiniHeader.h
CommitLineData
6047f886 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
7struct AliMiniHeader {
1d495886 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
6047f886 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