1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Artur Szostak
4 // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
6 ////////////////////////////////////////////////////////////////////////////////
8 #ifndef dHLT_DDL_RAW_DATA_FORMAT_HPP
9 #define dHLT_DDL_RAW_DATA_FORMAT_HPP
11 #include "BasicTypes.hpp"
18 ////////////////////////////////////////////////////////////////////////////////
19 // Common DDL header structure.
22 ALICE-INT-2002-010 v 2.0
28 UInt blocklength : 32;
30 UInt L2bunchcross : 12;
31 UInt reserved1 : 4; // Must be zero.
32 UInt L1triggertype : 8;
33 UInt formatversion : 8;
36 UInt reserved2 : 8; // Must be zero.
38 UInt subdetectors : 24;
39 UInt blockattribs : 8;
41 UInt TTCbunchcross : 12;
42 UInt statuserror : 16;
43 UInt reserved3 : 4; // Must be zero.
45 UInt triggerclasslow : 32;
47 UInt triggerclasshigh : 18;
48 UInt reserved4 : 10; // Must be zero.
55 ////////////////////////////////////////////////////////////////////////////////
56 // Data structures for Tracking chamber DDL streams.
59 http://aliweb.cern.ch/people/tkuhr/Rawdata.html
67 UInt triggercounter[4];
68 UInt padding; // Must be zero.
76 UInt triggercounter[4];
78 UInt eventflag; // 1 for odd 0 for even number of 32-bit words.
105 ////////////////////////////////////////////////////////////////////////////////
106 // Data structures for L0 trigger DDL streams.
109 http://aliweb.cern.ch/people/tkuhr/Rawdata.html
132 UInt address : 4; // Board address
133 UInt reserved : 9; // Must be zero.
139 // Regional header word.
142 UInt reserved : 14; // Must be zero.
144 UInt id : 5; // regional ID.
145 UInt serialnumber : 5;
148 LocalData localcard[16]; // 16 * 5 words of local card data.
150 // 2, 32-bit words of regional input data.
172 UInt output; // regional card output.
176 struct EnhancedHeader
180 UInt reserved : 14; // Must be zero.
182 UInt serialnumber : 4;
186 UChar globalinput[16];
193 EnhancedHeader header;
194 RegionalData regionalcard[8];
195 UInt endmarker[2]; // 2 words indicating end of data. Each word must = 0xDEADFACE
202 #endif // dHLT_DDL_RAW_DATA_FORMAT_HPP