CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DCCRawDataDefinitions.h
Go to the documentation of this file.
1 #ifndef DCCRAWDATADEFINITIONS_
2 #define DCCRAWDATADEFINITIONS_
3 
4 
6 
10 
11 
12  B_MASK = 1,
14  HEADERSIZE = 72,
16 
21 
31  CH_FORCEDZS1 = 0xF,
32 
33 
34 
38 
39  BOEVALUE = 0x5,
45 
46  NUMB_SM = 54,
47  NUMB_FE = 68,
48  NUMB_TCC = 108,
49  NUMB_XTAL = 5,
51  NUMB_PSEUDOSTRIPS = 30, // input1 and input2 of TCC board has at most 30 PS_input (12 of which are duplicated)
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 
64 
65  // two DCC have a missing interval in the CCU_id's
70 
71  NUMB_TCC_EE_MIN_EXT_MIN = 19, // outer TCC's in EE-
73  NUMB_TCC_EE_PLU_EXT_MIN = 73, // outer TCC's in EE+
75 
76 };
77 
78 
79 
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 
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 
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 
122 
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 
143 
145  H_DCCID_MASK = 0x3F,
146 
149 
152 
153  H_HALF_B = 11,
155 
156 };
157 
158 
160 
162 
165 
166  TOWER_BX_MASK = 0xFFF,
167  TOWER_BX_B = 16,
168 
169  TOWER_L1_MASK = 0xFFF,
171 
172  TOWER_ADC_MASK = 0xFFF,
173  TOWER_DIGI_MASK = 0x3FFF,
174 
176 
179 
180 
183 
184 };
185 
186 
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 
209 
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 
224 
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)
234 
235  // real data since ever FOV was initialized; only 2 used >= June 09
238 
239 };
240 
241 
242 #endif
detailedTriggerTypeFields