Main Page
Namespaces
Classes
Package Documentation
EventFilter
EcalRawToDigi
interface
DCCRawDataDefinitions.h
Go to the documentation of this file.
1
#ifndef DCCRAWDATADEFINITIONS_
2
#define DCCRAWDATADEFINITIONS_
3
4
5
enum
globalFieds
{
6
7
BLOCK_UNPACKED
= 0,
8
SKIP_BLOCK_UNPACKING
=1,
9
STOP_EVENT_UNPACKING
=2,
10
11
12
B_MASK
= 1,
13
HEADERLENGTH
= 9,
14
HEADERSIZE
= 72,
15
EMPTYEVENTSIZE
= 32,
16
17
PHYSICTRIGGER
= 1,
18
CALIBRATIONTRIGGER
= 2,
19
TESTTRIGGER
= 3,
20
TECHNICALTRIGGER
= 4,
21
22
CH_ENABLED
= 0,
23
CH_DISABLED
= 1,
24
CH_TIMEOUT
= 2,
25
CH_HEADERERR
= 3,
26
CH_LINKERR
= 5,
27
CH_LENGTHERR
= 6,
28
CH_SUPPRESS
= 7,
29
CH_IFIFOFULL
= 8,
30
CH_L1AIFIFOFULL
= 0xC,
31
CH_FORCEDZS1
= 0xF,
32
33
34
35
SRP_NUMBFLAGS
= 68,
36
SRP_BLOCKLENGTH
= 6,
37
SRP_EB_NUMBFLAGS
= 68,
38
39
BOEVALUE
= 0x5,
40
ERROR_EMPTYEVENT
= 0x1,
41
TOWERH_SIZE
= 8,
42
TRAILER_SIZE
= 8,
43
TCC_EB_NUMBTTS
= 68,
44
TCCID_SMID_SHIFT_EB
= 27,
45
46
NUMB_SM
= 54,
47
NUMB_FE
= 68,
48
NUMB_TCC
= 108,
49
NUMB_XTAL
= 5,
50
NUMB_STRIP
= 5,
51
NUMB_PSEUDOSTRIPS
= 30,
// input1 and input2 of TCC board has at most 30 PS_input (12 of which are duplicated)
52
NUMB_TTS_TPG2_DUPL
= 12,
//
53
NUMB_TTS_TPG1
= 16,
// input1 of TCC board has at most 16 TP's
54
NUMB_TTS_TPG2
= 12,
// input2 of TCC board has at most 12 TP's
55
56
NUMB_SM_EE_MIN_MIN
= 1,
57
NUMB_SM_EE_MIN_MAX
= 9,
58
NUMB_SM_EB_MIN_MIN
= 10,
59
NUMB_SM_EB_MIN_MAX
= 27,
60
NUMB_SM_EB_PLU_MIN
= 28,
61
NUMB_SM_EB_PLU_MAX
= 45,
62
NUMB_SM_EE_PLU_MIN
= 46,
63
NUMB_SM_EE_PLU_MAX
= 54,
64
65
// two DCC have a missing interval in the CCU_id's
66
SECTOR_EEM_CCU_JUMP
= 8,
67
SECTOR_EEP_CCU_JUMP
= 53,
68
MIN_CCUID_JUMP
= 18,
69
MAX_CCUID_JUMP
= 24,
70
71
NUMB_TCC_EE_MIN_EXT_MIN
= 19,
// outer TCC's in EE-
72
NUMB_TCC_EE_MIN_EXT_MAX
= 36,
73
NUMB_TCC_EE_PLU_EXT_MIN
= 73,
// outer TCC's in EE+
74
NUMB_TCC_EE_PLU_EXT_MAX
= 90
75
76
};
77
78
79
80
enum
headerFields
{
81
82
H_FEDID_B
= 8,
83
H_FEDID_MASK
= 0xFFF,
84
85
H_BX_B
= 20,
86
H_BX_MASK
= 0xFFF,
87
88
H_L1_B
= 32,
89
H_L1_MASK
= 0xFFFFFF,
90
91
H_TTYPE_B
= 56,
92
H_TTYPE_MASK
= 0xF,
93
94
H_EVLENGTH_MASK
= 0xFFFFFF,
95
96
H_ERRORS_B
= 24,
97
H_ERRORS_MASK
= 0xFF,
98
99
H_RNUMB_B
= 32,
100
H_RNUMB_MASK
= 0xFFFFFF,
101
102
H_RTYPE_MASK
= 0xFFFFFFFF,
// bits 0.. 31 of the 3rd DCC header word
103
104
H_DET_TTYPE_B
= 32,
105
H_DET_TTYPE_MASK
= 0xFFFF,
// for bits 32.. 47 of the 3rd DCC header word
106
107
108
H_FOV_B
= 48,
109
H_FOV_MASK
= 0xF,
110
111
112
H_ORBITCOUNTER_B
= 0,
113
H_ORBITCOUNTER_MASK
= 0xFFFFFFFF,
// bits 0.. 31 of the 4th DCC header word
114
115
H_SR_B
= 32,
116
H_ZS_B
= 33,
117
H_TZS_B
= 34,
118
H_MEM_B
= 35,
119
120
H_SRCHSTATUS_B
= 36,
121
H_CHSTATUS_MASK
= 0xF,
122
123
H_TCC1CHSTATUS_B
= 40,
124
H_TCC2CHSTATUS_B
= 44,
125
H_TCC3CHSTATUS_B
= 48,
126
H_TCC4CHSTATUS_B
= 52
127
128
129
};
130
131
132
/* 1st TTC Command */
133
/* Half : 1 bits: 7 1st Half (0), 2nd Half (1) */
134
/* TE 1 bit : 6 Test Enable Identifier */
135
/* Type 2 bits: 5-4 Laser (00), LED (01) Test pulse (10), Pedestal (11) */
136
/* Color 2 bits: 3-2 Blue (00), Red(01), Infrared (10), Green (11) */
137
138
/* 2nd TCC Command */
139
/* DCC #: 6 bits: 5-0. DCC 1 to 54. Zero means all DCC */
140
141
142
enum
detailedTriggerTypeFields
{
143
144
H_DCCID_B
= 0,
145
H_DCCID_MASK
= 0x3F,
146
147
H_WAVEL_B
= 6,
148
H_WAVEL_MASK
= 0x3,
149
150
H_TR_TYPE_B
= 8,
151
H_TR_TYPE_MASK
= 0x7,
152
153
H_HALF_B
= 11,
154
H_HALF_MASK
= 0x1
155
156
};
157
158
159
enum
towerFields
{
160
161
TOWER_ID_MASK
= 0x7F,
162
163
TOWER_NSAMP_MASK
= 0x7F,
164
TOWER_NSAMP_B
= 8,
165
166
TOWER_BX_MASK
= 0xFFF,
167
TOWER_BX_B
= 16,
168
169
TOWER_L1_MASK
= 0xFFF,
170
TOWER_L1_B
= 32,
171
172
TOWER_ADC_MASK
= 0xFFF,
173
TOWER_DIGI_MASK
= 0x3FFF,
174
175
TOWER_STRIPID_MASK
= 0x7,
176
177
TOWER_XTALID_MASK
= 0x7,
178
TOWER_XTALID_B
= 4,
179
180
181
TOWER_LENGTH_MASK
= 0x1FF,
182
TOWER_LENGTH_B
= 48
183
184
};
185
186
187
enum
tccFields
{
188
189
TCC_ID_MASK
= 0xFF,
190
191
TCC_PS_B
= 11,
192
193
TCC_BX_MASK
= 0xFFF,
194
TCC_BX_B
= 16,
195
196
TCC_L1_MASK
= 0xFFF,
197
TCC_L1_B
= 32,
198
199
TCC_TT_MASK
= 0x7F,
200
TCC_TT_B
= 48,
201
202
TCC_TS_MASK
= 0xF,
203
TCC_TS_B
= 55
204
205
};
206
207
208
enum
srpFields
{
209
210
SRP_NREAD
= 0,
211
SRP_FULLREADOUT
= 3,
212
213
214
SRP_ID_MASK
= 0xFF,
215
216
SRP_BX_MASK
= 0xFFF,
217
SRP_BX_B
= 16,
218
219
SRP_L1_MASK
= 0xFFF,
220
SRP_L1_B
= 32,
221
222
SRP_NFLAGS_MASK
= 0x7F,
223
SRP_NFLAGS_B
= 48,
224
225
SRP_SRFLAG_MASK
= 0x7,
226
SRP_SRVAL_MASK
= 0x3
227
228
};
229
230
enum
dccFOVs
{
231
// MC raw data based on CMS NOTE 2005/021
232
// (and raw data when FOV was unassigned, earlier than mid 2008)
233
dcc_FOV_0
= 0,
234
235
// real data since ever FOV was initialized; only 2 used >= June 09
236
dcc_FOV_1
= 1,
237
dcc_FOV_2
= 2
238
239
};
240
241
242
#endif
PHYSICTRIGGER
Definition:
DCCRawDataDefinitions.h:17
TRAILER_SIZE
Definition:
DCCRawDataDefinitions.h:42
H_WAVEL_B
Definition:
DCCRawDataDefinitions.h:147
NUMB_TCC_EE_PLU_EXT_MAX
Definition:
DCCRawDataDefinitions.h:74
NUMB_SM_EE_PLU_MIN
Definition:
DCCRawDataDefinitions.h:62
SRP_SRVAL_MASK
Definition:
DCCRawDataDefinitions.h:226
H_TCC1CHSTATUS_B
Definition:
DCCRawDataDefinitions.h:123
H_L1_MASK
Definition:
DCCRawDataDefinitions.h:89
TOWER_DIGI_MASK
Definition:
DCCRawDataDefinitions.h:173
SRP_BX_B
Definition:
DCCRawDataDefinitions.h:217
H_TCC4CHSTATUS_B
Definition:
DCCRawDataDefinitions.h:126
TCC_PS_B
Definition:
DCCRawDataDefinitions.h:191
SRP_L1_MASK
Definition:
DCCRawDataDefinitions.h:219
H_TTYPE_B
Definition:
DCCRawDataDefinitions.h:91
TOWER_ADC_MASK
Definition:
DCCRawDataDefinitions.h:172
TCC_L1_B
Definition:
DCCRawDataDefinitions.h:197
TOWER_BX_B
Definition:
DCCRawDataDefinitions.h:167
H_DET_TTYPE_B
Definition:
DCCRawDataDefinitions.h:104
H_BX_B
Definition:
DCCRawDataDefinitions.h:85
TOWER_LENGTH_MASK
Definition:
DCCRawDataDefinitions.h:181
BOEVALUE
Definition:
DCCRawDataDefinitions.h:39
H_RNUMB_MASK
Definition:
DCCRawDataDefinitions.h:100
SRP_L1_B
Definition:
DCCRawDataDefinitions.h:220
MAX_CCUID_JUMP
Definition:
DCCRawDataDefinitions.h:69
CH_TIMEOUT
Definition:
DCCRawDataDefinitions.h:24
TOWER_NSAMP_MASK
Definition:
DCCRawDataDefinitions.h:163
H_ERRORS_B
Definition:
DCCRawDataDefinitions.h:96
H_CHSTATUS_MASK
Definition:
DCCRawDataDefinitions.h:121
CH_HEADERERR
Definition:
DCCRawDataDefinitions.h:25
H_ORBITCOUNTER_MASK
Definition:
DCCRawDataDefinitions.h:113
H_SRCHSTATUS_B
Definition:
DCCRawDataDefinitions.h:120
NUMB_TCC_EE_PLU_EXT_MIN
Definition:
DCCRawDataDefinitions.h:73
HEADERLENGTH
Definition:
DCCRawDataDefinitions.h:13
TOWER_STRIPID_MASK
Definition:
DCCRawDataDefinitions.h:175
TCC_TT_B
Definition:
DCCRawDataDefinitions.h:200
H_ORBITCOUNTER_B
Definition:
DCCRawDataDefinitions.h:112
CALIBRATIONTRIGGER
Definition:
DCCRawDataDefinitions.h:18
NUMB_SM
Definition:
DCCRawDataDefinitions.h:46
H_TR_TYPE_MASK
Definition:
DCCRawDataDefinitions.h:151
NUMB_SM_EB_MIN_MAX
Definition:
DCCRawDataDefinitions.h:59
NUMB_TTS_TPG2
Definition:
DCCRawDataDefinitions.h:54
TOWER_LENGTH_B
Definition:
DCCRawDataDefinitions.h:182
tccFields
tccFields
Definition:
DCCRawDataDefinitions.h:187
SECTOR_EEP_CCU_JUMP
Definition:
DCCRawDataDefinitions.h:67
TECHNICALTRIGGER
Definition:
DCCRawDataDefinitions.h:20
NUMB_TCC
Definition:
DCCRawDataDefinitions.h:48
TCC_L1_MASK
Definition:
DCCRawDataDefinitions.h:196
CH_LENGTHERR
Definition:
DCCRawDataDefinitions.h:27
SRP_NUMBFLAGS
Definition:
DCCRawDataDefinitions.h:35
TOWER_BX_MASK
Definition:
DCCRawDataDefinitions.h:166
towerFields
towerFields
Definition:
DCCRawDataDefinitions.h:159
TCC_TS_MASK
Definition:
DCCRawDataDefinitions.h:202
BLOCK_UNPACKED
Definition:
DCCRawDataDefinitions.h:7
SECTOR_EEM_CCU_JUMP
Definition:
DCCRawDataDefinitions.h:66
H_TCC3CHSTATUS_B
Definition:
DCCRawDataDefinitions.h:125
H_L1_B
Definition:
DCCRawDataDefinitions.h:88
srpFields
srpFields
Definition:
DCCRawDataDefinitions.h:208
SRP_EB_NUMBFLAGS
Definition:
DCCRawDataDefinitions.h:37
H_FEDID_MASK
Definition:
DCCRawDataDefinitions.h:83
SKIP_BLOCK_UNPACKING
Definition:
DCCRawDataDefinitions.h:8
H_RTYPE_MASK
Definition:
DCCRawDataDefinitions.h:102
dcc_FOV_2
Definition:
DCCRawDataDefinitions.h:237
NUMB_PSEUDOSTRIPS
Definition:
DCCRawDataDefinitions.h:51
H_HALF_MASK
Definition:
DCCRawDataDefinitions.h:154
NUMB_SM_EE_MIN_MAX
Definition:
DCCRawDataDefinitions.h:57
H_TZS_B
Definition:
DCCRawDataDefinitions.h:117
H_TTYPE_MASK
Definition:
DCCRawDataDefinitions.h:92
TOWER_XTALID_B
Definition:
DCCRawDataDefinitions.h:178
TESTTRIGGER
Definition:
DCCRawDataDefinitions.h:19
SRP_ID_MASK
Definition:
DCCRawDataDefinitions.h:214
H_TR_TYPE_B
Definition:
DCCRawDataDefinitions.h:150
MIN_CCUID_JUMP
Definition:
DCCRawDataDefinitions.h:68
NUMB_SM_EE_MIN_MIN
Definition:
DCCRawDataDefinitions.h:56
NUMB_SM_EB_MIN_MIN
Definition:
DCCRawDataDefinitions.h:58
TCC_TS_B
Definition:
DCCRawDataDefinitions.h:203
dccFOVs
dccFOVs
Definition:
DCCRawDataDefinitions.h:230
NUMB_TTS_TPG1
Definition:
DCCRawDataDefinitions.h:53
headerFields
headerFields
Definition:
DCCRawDataDefinitions.h:80
SRP_SRFLAG_MASK
Definition:
DCCRawDataDefinitions.h:225
SRP_NFLAGS_MASK
Definition:
DCCRawDataDefinitions.h:222
TCC_ID_MASK
Definition:
DCCRawDataDefinitions.h:189
H_BX_MASK
Definition:
DCCRawDataDefinitions.h:86
H_ZS_B
Definition:
DCCRawDataDefinitions.h:116
detailedTriggerTypeFields
detailedTriggerTypeFields
Definition:
DCCRawDataDefinitions.h:142
H_TCC2CHSTATUS_B
Definition:
DCCRawDataDefinitions.h:124
NUMB_STRIP
Definition:
DCCRawDataDefinitions.h:50
H_SR_B
Definition:
DCCRawDataDefinitions.h:115
NUMB_TCC_EE_MIN_EXT_MAX
Definition:
DCCRawDataDefinitions.h:72
H_FEDID_B
Definition:
DCCRawDataDefinitions.h:82
NUMB_TTS_TPG2_DUPL
Definition:
DCCRawDataDefinitions.h:52
NUMB_FE
Definition:
DCCRawDataDefinitions.h:47
TOWERH_SIZE
Definition:
DCCRawDataDefinitions.h:41
CH_LINKERR
Definition:
DCCRawDataDefinitions.h:26
TOWER_NSAMP_B
Definition:
DCCRawDataDefinitions.h:164
dcc_FOV_0
Definition:
DCCRawDataDefinitions.h:233
SRP_NREAD
Definition:
DCCRawDataDefinitions.h:210
H_MEM_B
Definition:
DCCRawDataDefinitions.h:118
TCCID_SMID_SHIFT_EB
Definition:
DCCRawDataDefinitions.h:44
H_DCCID_MASK
Definition:
DCCRawDataDefinitions.h:145
TOWER_L1_B
Definition:
DCCRawDataDefinitions.h:170
H_HALF_B
Definition:
DCCRawDataDefinitions.h:153
NUMB_TCC_EE_MIN_EXT_MIN
Definition:
DCCRawDataDefinitions.h:71
EMPTYEVENTSIZE
Definition:
DCCRawDataDefinitions.h:15
CH_IFIFOFULL
Definition:
DCCRawDataDefinitions.h:29
HEADERSIZE
Definition:
DCCRawDataDefinitions.h:14
SRP_NFLAGS_B
Definition:
DCCRawDataDefinitions.h:223
B_MASK
Definition:
DCCRawDataDefinitions.h:12
CH_FORCEDZS1
Definition:
DCCRawDataDefinitions.h:31
SRP_BX_MASK
Definition:
DCCRawDataDefinitions.h:216
H_DET_TTYPE_MASK
Definition:
DCCRawDataDefinitions.h:105
TOWER_ID_MASK
Definition:
DCCRawDataDefinitions.h:161
SRP_BLOCKLENGTH
Definition:
DCCRawDataDefinitions.h:36
TOWER_XTALID_MASK
Definition:
DCCRawDataDefinitions.h:177
NUMB_SM_EE_PLU_MAX
Definition:
DCCRawDataDefinitions.h:63
TCC_EB_NUMBTTS
Definition:
DCCRawDataDefinitions.h:43
H_DCCID_B
Definition:
DCCRawDataDefinitions.h:144
NUMB_SM_EB_PLU_MIN
Definition:
DCCRawDataDefinitions.h:60
STOP_EVENT_UNPACKING
Definition:
DCCRawDataDefinitions.h:9
TCC_TT_MASK
Definition:
DCCRawDataDefinitions.h:199
CH_ENABLED
Definition:
DCCRawDataDefinitions.h:22
ERROR_EMPTYEVENT
Definition:
DCCRawDataDefinitions.h:40
NUMB_XTAL
Definition:
DCCRawDataDefinitions.h:49
CH_DISABLED
Definition:
DCCRawDataDefinitions.h:23
NUMB_SM_EB_PLU_MAX
Definition:
DCCRawDataDefinitions.h:61
TCC_BX_B
Definition:
DCCRawDataDefinitions.h:194
CH_L1AIFIFOFULL
Definition:
DCCRawDataDefinitions.h:30
H_FOV_MASK
Definition:
DCCRawDataDefinitions.h:109
globalFieds
globalFieds
Definition:
DCCRawDataDefinitions.h:5
H_WAVEL_MASK
Definition:
DCCRawDataDefinitions.h:148
H_RNUMB_B
Definition:
DCCRawDataDefinitions.h:99
CH_SUPPRESS
Definition:
DCCRawDataDefinitions.h:28
H_EVLENGTH_MASK
Definition:
DCCRawDataDefinitions.h:94
TOWER_L1_MASK
Definition:
DCCRawDataDefinitions.h:169
TCC_BX_MASK
Definition:
DCCRawDataDefinitions.h:193
dcc_FOV_1
Definition:
DCCRawDataDefinitions.h:236
H_ERRORS_MASK
Definition:
DCCRawDataDefinitions.h:97
H_FOV_B
Definition:
DCCRawDataDefinitions.h:108
SRP_FULLREADOUT
Definition:
DCCRawDataDefinitions.h:211
Generated for CMSSW Reference Manual by
1.8.11