CMS 3D CMS Logo

HGCalRawDataDefinitions.h
Go to the documentation of this file.
1 #ifndef EventFilter_HGCalRawToDigi_HGCalRawDataDefinitions_h
2 #define EventFilter_HGCalRawToDigi_HGCalRawDataDefinitions_h
3 
4 namespace hgcal {
5  namespace econd {
7  }
8  enum ECOND_FRAME {
9  HEADER_POS = 23,
10  HEADER_MASK = 0x1ff,
12  PAYLOAD_MASK = 0x1ff,
13  BITP_POS = 13,
14  BITE_POS = 12,
15  HT_MASK = 0x3,
16  HT_POS = 10,
17  EBO_MASK = 0x3,
18  EBO_POS = 8,
19  BITM_POS = 7,
20  BITT_POS = 6,
21  EHHAM_MASK = 0x3f,
22  EHHAM_POS = 0,
23  BX_POS = 20,
24  BX_MASK = 0xfff,
25  L1A_POS = 14,
26  L1A_MASK = 0x3f,
27  ORBIT_POS = 11,
28  ORBIT_MASK = 0x7,
29  BITS_POS = 10,
30  RR_MASK = 0x3,
31  RR_POS = 8,
32  EHCRC_MASK = 0xff,
33  EHCRC_POS = 0,
35  ERXSTAT_MASK = 0x7,
36  ERXHAM_POS = 26,
37  ERXHAM_MASK = 0x7,
45  CHMAP32_MASK = 0x1f,
47  CHMAP0_MASK = 0xffffffff,
48  ERX_E_POS = 4,
50  };
51 
63  SLINK_V_MASK = 0xf,
65  SLINK_R8_MASK = 0xff,
71  SLINK_R6_MASK = 0x3f,
73  SLINK_CONTENTID_MASK = 0x3FFFFFF,
75  SLINK_SOURCEID_MASK = 0xffffffff,
85  SLINK_BXID_MASK = 0xfff,
87  SLINK_ORBID_MASK = 0xffffffff,
89  SLINK_CRC_MASK = 0xffff,
93  };
94 } // namespace hgcal
95 
96 #endif