CMS 3D CMS Logo

DCCRawDataDefinitions.h
Go to the documentation of this file.
1 #ifndef DCCRAWDATADEFINITIONS_
2 #define DCCRAWDATADEFINITIONS_
3 
4 enum globalFieds {
5 
9 
10  B_MASK = 1,
12  HEADERSIZE = 72,
14 
19 
29  CH_FORCEDZS1 = 0xF,
30 
34 
35  BOEVALUE = 0x5,
41 
42  NUMB_SM = 54,
43  NUMB_FE = 68,
44  NUMB_TCC = 108,
45  NUMB_XTAL = 5,
47  NUMB_PSEUDOSTRIPS = 30, // input1 and input2 of TCC board has at most 30 PS_input (12 of which are duplicated)
49  NUMB_TTS_TPG1 = 16, // input1 of TCC board has at most 16 TP's
50  NUMB_TTS_TPG2 = 12, // input2 of TCC board has at most 12 TP's
51 
60 
61  // two DCC have a missing interval in the CCU_id's
66 
67  NUMB_TCC_EE_MIN_EXT_MIN = 19, // outer TCC's in EE-
69  NUMB_TCC_EE_PLU_EXT_MIN = 73, // outer TCC's in EE+
71 
72 };
73 
75 
76  H_FEDID_B = 8,
77  H_FEDID_MASK = 0xFFF,
78 
79  H_BX_B = 20,
80  H_BX_MASK = 0xFFF,
81 
82  H_L1_B = 32,
83  H_L1_MASK = 0xFFFFFF,
84 
85  H_TTYPE_B = 56,
86  H_TTYPE_MASK = 0xF,
87 
88  H_EVLENGTH_MASK = 0xFFFFFF,
89 
90  H_ERRORS_B = 24,
91  H_ERRORS_MASK = 0xFF,
92 
93  H_RNUMB_B = 32,
94  H_RNUMB_MASK = 0xFFFFFF,
95 
96  H_RTYPE_MASK = 0xFFFFFFFF, // bits 0.. 31 of the 3rd DCC header word
97 
99  H_DET_TTYPE_MASK = 0xFFFF, // for bits 32.. 47 of the 3rd DCC header word
100 
101  H_FOV_B = 48,
102  H_FOV_MASK = 0xF,
103 
105  H_ORBITCOUNTER_MASK = 0xFFFFFFFF, // bits 0.. 31 of the 4th DCC header word
106 
107  H_SR_B = 32,
108  H_ZS_B = 33,
109  H_TZS_B = 34,
110  H_MEM_B = 35,
111 
114 
119 
120 };
121 
122 /* 1st TTC Command */
123 /* Half : 1 bits: 7 1st Half (0), 2nd Half (1) */
124 /* TE 1 bit : 6 Test Enable Identifier */
125 /* Type 2 bits: 5-4 Laser (00), LED (01) Test pulse (10), Pedestal (11) */
126 /* Color 2 bits: 3-2 Blue (00), Red(01), Infrared (10), Green (11) */
127 
128 /* 2nd TCC Command */
129 /* DCC #: 6 bits: 5-0. DCC 1 to 54. Zero means all DCC */
130 
132 
134  H_DCCID_MASK = 0x3F,
135 
138 
141 
142  H_HALF_B = 11,
144 
145 };
146 
148 
150 
153 
154  TOWER_BX_MASK = 0xFFF,
156 
157  TOWER_L1_MASK = 0xFFF,
159 
160  TOWER_ADC_MASK = 0xFFF,
161  TOWER_DIGI_MASK = 0x3FFF,
162 
164 
167 
170 
171 };
172 
173 enum tccFields {
174 
175  TCC_ID_MASK = 0xFF,
176 
177  TCC_PS_B = 11,
178 
179  TCC_BX_MASK = 0xFFF,
180  TCC_BX_B = 16,
181 
182  TCC_L1_MASK = 0xFFF,
183  TCC_L1_B = 32,
184 
185  TCC_TT_MASK = 0x7F,
186  TCC_TT_B = 48,
187 
188  TCC_TS_MASK = 0xF,
189  TCC_TS_B = 55
190 
191 };
192 
193 enum srpFields {
194 
197 
198  SRP_ID_MASK = 0xFF,
199 
200  SRP_BX_MASK = 0xFFF,
201  SRP_BX_B = 16,
202 
203  SRP_L1_MASK = 0xFFF,
204  SRP_L1_B = 32,
205 
208 
211 
212 };
213 
214 enum dccFOVs {
215  // MC raw data based on CMS NOTE 2005/021
216  // (and raw data when FOV was unassigned, earlier than mid 2008)
218 
219  // real data since ever FOV was initialized; only 2 used >= June 09
222 
223 };
224 
225 #endif
detailedTriggerTypeFields