CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
fed_trailer.h
Go to the documentation of this file.
1 /* NOTE: this file temporarily stolen from the XDAQ project
2  *
3  * fed_trailer.h
4  *
5  * $Header: /local/reps/CMSSW/CMSSW/DataFormats/FEDRawData/src/fed_trailer.h,v 1.2 2005/10/06 18:25:22 namapane Exp $
6  *
7  * This file contains the struct definition of the FED-trailer.
8  * The FED-trailer is inserted by the FED at the bottom of a data fragment
9  */
10 
11 
12 #ifndef _FED_TRAILER_H
13 #define _FED_TRAILER_H
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
20 /*************************************************************************
21  *
22  * data structures and associated typedefs
23  *
24  *************************************************************************/
25 
26 
27 /*
28  * FED trailer - at the end of each FED block
29  */
30 
31 typedef struct fedt_struct {
32  unsigned int conscheck;
33  unsigned int eventsize;
34 } fedt_t ;
35 
36 
37 #define FED_TCTRLID_MASK 0xF0000000
38 #define FED_EVSZ_MASK 0x00FFFFFF
39 
40 #define FED_CRCS_MASK 0xFFFF0000
41 #define FED_STAT_MASK 0x00000F00
42 #define FED_TTSI_MASK 0x000000F0
43 #define FED_MORE_TRAILERS 0x00000008
44 
45 
46 #define FED_TCTRLID 0xA0000000
47 
48 
49 #define FED_EVSZ_SHIFT 0
50 
51 #define FED_CRCS_SHIFT 16
52 #define FED_STAT_SHIFT 8
53 #define FED_TTSI_SHIFT 4
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* _FED_TRAILER_H */
60 
61 
struct fedt_struct fedt_t
unsigned int conscheck
Definition: fed_trailer.h:32
unsigned int eventsize
Definition: fed_trailer.h:33