CMS 3D CMS Logo

Counters.h
Go to the documentation of this file.
1 #include <cstdint>
2 // Class for Block of Counters
3 
4 #ifndef __l1t_emtf_Counters_h__
5 #define __l1t_emtf_Counters_h__
6 
7 namespace l1t {
8  namespace emtf {
9  class Counters {
10  public:
11  explicit Counters(uint64_t dataword);
12 
13  // TODO: rpc_counter not yet implemented in FW - AWB 31.01.16
14  // TODO: gem_counter not yet implemented in FW - JS 01.07.20
15  // Autogenerate this class?
17  : me1a_1(-99),
18  me1a_2(-99),
19  me1a_3(-99),
20  me1a_4(-99),
21  me1a_5(-99),
22  me1a_6(-99),
23  me1a_7(-99),
24  me1a_8(-99),
25  me1a_9(-99),
26  me1b_1(-99),
27  me1b_2(-99),
28  me1b_3(-99),
29  me1b_4(-99),
30  me1b_5(-99),
31  me1b_6(-99),
32  me1b_7(-99),
33  me1b_8(-99),
34  me1b_9(-99),
35  me2_1(-99),
36  me2_2(-99),
37  me2_3(-99),
38  me2_4(-99),
39  me2_5(-99),
40  me2_6(-99),
41  me2_7(-99),
42  me2_8(-99),
43  me2_9(-99),
44  me3_1(-99),
45  me3_2(-99),
46  me3_3(-99),
47  me3_4(-99),
48  me3_5(-99),
49  me3_6(-99),
50  me3_7(-99),
51  me3_8(-99),
52  me3_9(-99),
53  me4_1(-99),
54  me4_2(-99),
55  me4_3(-99),
56  me4_4(-99),
57  me4_5(-99),
58  me4_6(-99),
59  me4_7(-99),
60  me4_8(-99),
61  me4_9(-99),
62  me1n_3(-99),
63  me1n_6(-99),
64  me1n_9(-99),
65  me2n_3(-99),
66  me2n_9(-99),
67  me3n_3(-99),
68  me3n_9(-99),
69  me4n_3(-99),
70  me4n_9(-99),
71  me1a_all(-99),
72  me1b_all(-99),
73  me2_all(-99),
74  me3_all(-99),
75  me4_all(-99),
76  meN_all(-99),
77  me_all(-99),
78  format_errors(0),
79  dataword(-99){};
80 
81  Counters(int int_me1a_all,
82  int int_me1b_all,
83  int int_me2_all,
84  int int_me3_all,
85  int int_me4_all,
86  int int_meN_all,
87  int int_me_all)
88  : me1a_all(int_me1a_all),
89  me1b_all(int_me1b_all),
90  me2_all(int_me2_all),
91  me3_all(int_me3_all),
92  me4_all(int_me4_all),
93  meN_all(int_meN_all),
94  me_all(int_me_all),
95  dataword(-99){};
96 
97  virtual ~Counters(){};
98 
99  void set_me1a_1(int bits) { me1a_1 = bits; }
100  void set_me1a_2(int bits) { me1a_2 = bits; }
101  void set_me1a_3(int bits) { me1a_3 = bits; }
102  void set_me1a_4(int bits) { me1a_4 = bits; }
103  void set_me1a_5(int bits) { me1a_5 = bits; }
104  void set_me1a_6(int bits) { me1a_6 = bits; }
105  void set_me1a_7(int bits) { me1a_7 = bits; }
106  void set_me1a_8(int bits) { me1a_8 = bits; }
107  void set_me1a_9(int bits) { me1a_9 = bits; }
108  void set_me1b_1(int bits) { me1b_1 = bits; }
109  void set_me1b_2(int bits) { me1b_2 = bits; }
110  void set_me1b_3(int bits) { me1b_3 = bits; }
111  void set_me1b_4(int bits) { me1b_4 = bits; }
112  void set_me1b_5(int bits) { me1b_5 = bits; }
113  void set_me1b_6(int bits) { me1b_6 = bits; }
114  void set_me1b_7(int bits) { me1b_7 = bits; }
115  void set_me1b_8(int bits) { me1b_8 = bits; }
116  void set_me1b_9(int bits) { me1b_9 = bits; }
117  void set_me2_1(int bits) { me2_1 = bits; }
118  void set_me2_2(int bits) { me2_2 = bits; }
119  void set_me2_3(int bits) { me2_3 = bits; }
120  void set_me2_4(int bits) { me2_4 = bits; }
121  void set_me2_5(int bits) { me2_5 = bits; }
122  void set_me2_6(int bits) { me2_6 = bits; }
123  void set_me2_7(int bits) { me2_7 = bits; }
124  void set_me2_8(int bits) { me2_8 = bits; }
125  void set_me2_9(int bits) { me2_9 = bits; }
126  void set_me3_1(int bits) { me3_1 = bits; }
127  void set_me3_2(int bits) { me3_2 = bits; }
128  void set_me3_3(int bits) { me3_3 = bits; }
129  void set_me3_4(int bits) { me3_4 = bits; }
130  void set_me3_5(int bits) { me3_5 = bits; }
131  void set_me3_6(int bits) { me3_6 = bits; }
132  void set_me3_7(int bits) { me3_7 = bits; }
133  void set_me3_8(int bits) { me3_8 = bits; }
134  void set_me3_9(int bits) { me3_9 = bits; }
135  void set_me4_1(int bits) { me4_1 = bits; }
136  void set_me4_2(int bits) { me4_2 = bits; }
137  void set_me4_3(int bits) { me4_3 = bits; }
138  void set_me4_4(int bits) { me4_4 = bits; }
139  void set_me4_5(int bits) { me4_5 = bits; }
140  void set_me4_6(int bits) { me4_6 = bits; }
141  void set_me4_7(int bits) { me4_7 = bits; }
142  void set_me4_8(int bits) { me4_8 = bits; }
143  void set_me4_9(int bits) { me4_9 = bits; }
144  void set_me1n_3(int bits) { me1n_3 = bits; }
145  void set_me1n_6(int bits) { me1n_6 = bits; }
146  void set_me1n_9(int bits) { me1n_9 = bits; }
147  void set_me2n_3(int bits) { me2n_3 = bits; }
148  void set_me2n_9(int bits) { me2n_9 = bits; }
149  void set_me3n_3(int bits) { me3n_3 = bits; }
150  void set_me3n_9(int bits) { me3n_9 = bits; }
151  void set_me4n_3(int bits) { me4n_3 = bits; }
152  void set_me4n_9(int bits) { me4n_9 = bits; }
153 
154  void set_me1a_all(int bits) { me1a_all = bits; }
155  void set_me1b_all(int bits) { me1b_all = bits; }
156  void set_me2_all(int bits) { me2_all = bits; }
157  void set_me3_all(int bits) { me3_all = bits; }
158  void set_me4_all(int bits) { me4_all = bits; }
159  void set_meN_all(int bits) { meN_all = bits; }
160  void set_me_all(int bits) { me_all = bits; }
163 
164  int ME1a_1() const { return me1a_1; }
165  int ME1a_2() const { return me1a_2; }
166  int ME1a_3() const { return me1a_3; }
167  int ME1a_4() const { return me1a_4; }
168  int ME1a_5() const { return me1a_5; }
169  int ME1a_6() const { return me1a_6; }
170  int ME1a_7() const { return me1a_7; }
171  int ME1a_8() const { return me1a_8; }
172  int ME1a_9() const { return me1a_9; }
173  int ME1b_1() const { return me1b_1; }
174  int ME1b_2() const { return me1b_2; }
175  int ME1b_3() const { return me1b_3; }
176  int ME1b_4() const { return me1b_4; }
177  int ME1b_5() const { return me1b_5; }
178  int ME1b_6() const { return me1b_6; }
179  int ME1b_7() const { return me1b_7; }
180  int ME1b_8() const { return me1b_8; }
181  int ME1b_9() const { return me1b_9; }
182  int ME2_1() const { return me2_1; }
183  int ME2_2() const { return me2_2; }
184  int ME2_3() const { return me2_3; }
185  int ME2_4() const { return me2_4; }
186  int ME2_5() const { return me2_5; }
187  int ME2_6() const { return me2_6; }
188  int ME2_7() const { return me2_7; }
189  int ME2_8() const { return me2_8; }
190  int ME2_9() const { return me2_9; }
191  int ME3_1() const { return me3_1; }
192  int ME3_2() const { return me3_2; }
193  int ME3_3() const { return me3_3; }
194  int ME3_4() const { return me3_4; }
195  int ME3_5() const { return me3_5; }
196  int ME3_6() const { return me3_6; }
197  int ME3_7() const { return me3_7; }
198  int ME3_8() const { return me3_8; }
199  int ME3_9() const { return me3_9; }
200  int ME4_1() const { return me4_1; }
201  int ME4_2() const { return me4_2; }
202  int ME4_3() const { return me4_3; }
203  int ME4_4() const { return me4_4; }
204  int ME4_5() const { return me4_5; }
205  int ME4_6() const { return me4_6; }
206  int ME4_7() const { return me4_7; }
207  int ME4_8() const { return me4_8; }
208  int ME4_9() const { return me4_9; }
209  int ME1n_3() const { return me1n_3; }
210  int ME1n_6() const { return me1n_6; }
211  int ME1n_9() const { return me1n_9; }
212  int ME2n_3() const { return me2n_3; }
213  int ME2n_9() const { return me2n_9; }
214  int ME3n_3() const { return me3n_3; }
215  int ME3n_9() const { return me3n_9; }
216  int ME4n_3() const { return me4n_3; }
217  int ME4n_9() const { return me4n_9; }
218 
219  int ME1a_all() const { return me1a_all; }
220  int ME1b_all() const { return me1b_all; }
221  int ME2_all() const { return me2_all; }
222  int ME3_all() const { return me3_all; }
223  int ME4_all() const { return me4_all; }
224  int MEN_all() const { return meN_all; }
225  int ME_all() const { return me_all; }
226  int Format_errors() const { return format_errors; }
227  uint64_t Dataword() const { return dataword; }
228 
229  private:
230  int me1a_1;
231  int me1a_2;
232  int me1a_3;
233  int me1a_4;
234  int me1a_5;
235  int me1a_6;
236  int me1a_7;
237  int me1a_8;
238  int me1a_9;
239  int me1b_1;
240  int me1b_2;
241  int me1b_3;
242  int me1b_4;
243  int me1b_5;
244  int me1b_6;
245  int me1b_7;
246  int me1b_8;
247  int me1b_9;
248  int me2_1;
249  int me2_2;
250  int me2_3;
251  int me2_4;
252  int me2_5;
253  int me2_6;
254  int me2_7;
255  int me2_8;
256  int me2_9;
257  int me3_1;
258  int me3_2;
259  int me3_3;
260  int me3_4;
261  int me3_5;
262  int me3_6;
263  int me3_7;
264  int me3_8;
265  int me3_9;
266  int me4_1;
267  int me4_2;
268  int me4_3;
269  int me4_4;
270  int me4_5;
271  int me4_6;
272  int me4_7;
273  int me4_8;
274  int me4_9;
275  int me1n_3;
276  int me1n_6;
277  int me1n_9;
278  int me2n_3;
279  int me2n_9;
280  int me3n_3;
281  int me3n_9;
282  int me4n_3;
283  int me4n_9;
284 
285  int me1a_all;
286  int me1b_all;
287  int me2_all;
288  int me3_all;
289  int me4_all;
290  int meN_all;
291  int me_all;
294 
295  }; // End of class Counters
296 
297  } // End of namespace emtf
298 } // End of namespace l1t
299 
300 #endif /* define __l1t_emtf_Counters_h__ */
void set_me3n_3(int bits)
Definition: Counters.h:149
int ME3_3() const
Definition: Counters.h:193
void set_me2_7(int bits)
Definition: Counters.h:123
int ME1b_6() const
Definition: Counters.h:178
int ME4_4() const
Definition: Counters.h:203
void set_me1b_2(int bits)
Definition: Counters.h:109
void set_me3_7(int bits)
Definition: Counters.h:132
uint64_t dataword
Definition: Counters.h:293
int ME1a_1() const
Definition: Counters.h:164
void set_me3_2(int bits)
Definition: Counters.h:127
void set_me2_1(int bits)
Definition: Counters.h:117
void set_me4_8(int bits)
Definition: Counters.h:142
int ME1n_6() const
Definition: Counters.h:210
void set_me_all(int bits)
Definition: Counters.h:160
int ME2_5() const
Definition: Counters.h:186
int ME3_2() const
Definition: Counters.h:192
void set_me4_6(int bits)
Definition: Counters.h:140
void set_me1b_6(int bits)
Definition: Counters.h:113
int ME2n_9() const
Definition: Counters.h:213
int ME1a_7() const
Definition: Counters.h:170
void set_me4n_9(int bits)
Definition: Counters.h:152
void set_me1n_9(int bits)
Definition: Counters.h:146
void set_me2_all(int bits)
Definition: Counters.h:156
int ME3_8() const
Definition: Counters.h:198
void set_me2_8(int bits)
Definition: Counters.h:124
void set_me2_2(int bits)
Definition: Counters.h:118
int ME1n_9() const
Definition: Counters.h:211
int ME1b_2() const
Definition: Counters.h:174
void set_me4n_3(int bits)
Definition: Counters.h:151
constexpr uint32_t bits
Definition: gpuClustering.h:23
void set_me3_6(int bits)
Definition: Counters.h:131
int ME2_9() const
Definition: Counters.h:190
void set_me1b_8(int bits)
Definition: Counters.h:115
int ME2_8() const
Definition: Counters.h:189
int ME1a_3() const
Definition: Counters.h:166
void set_me3_all(int bits)
Definition: Counters.h:157
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
void set_me4_1(int bits)
Definition: Counters.h:135
void set_me1a_9(int bits)
Definition: Counters.h:107
int ME1a_4() const
Definition: Counters.h:167
void set_me2_4(int bits)
Definition: Counters.h:120
int MEN_all() const
Definition: Counters.h:224
void set_meN_all(int bits)
Definition: Counters.h:159
int ME1b_1() const
Definition: Counters.h:173
int ME4_all() const
Definition: Counters.h:223
void set_me3n_9(int bits)
Definition: Counters.h:150
int ME2_4() const
Definition: Counters.h:185
void set_me4_2(int bits)
Definition: Counters.h:136
int ME4_6() const
Definition: Counters.h:205
void set_me4_5(int bits)
Definition: Counters.h:139
void set_me1n_3(int bits)
Definition: Counters.h:144
void add_format_error()
Definition: Counters.h:161
int ME2_2() const
Definition: Counters.h:183
int ME3_9() const
Definition: Counters.h:199
int ME3_6() const
Definition: Counters.h:196
void set_me1b_4(int bits)
Definition: Counters.h:111
int ME1a_9() const
Definition: Counters.h:172
int ME2_1() const
Definition: Counters.h:182
int ME3n_3() const
Definition: Counters.h:214
void set_me4_9(int bits)
Definition: Counters.h:143
void set_me3_3(int bits)
Definition: Counters.h:128
int ME1b_3() const
Definition: Counters.h:175
int ME4n_9() const
Definition: Counters.h:217
void set_me1a_all(int bits)
Definition: Counters.h:154
void set_me1a_3(int bits)
Definition: Counters.h:101
int ME4_1() const
Definition: Counters.h:200
int ME3_all() const
Definition: Counters.h:222
int ME1n_3() const
Definition: Counters.h:209
int ME2_6() const
Definition: Counters.h:187
void set_me1n_6(int bits)
Definition: Counters.h:145
int ME_all() const
Definition: Counters.h:225
int ME4_9() const
Definition: Counters.h:208
int ME1a_5() const
Definition: Counters.h:168
int ME2_7() const
Definition: Counters.h:188
int ME2n_3() const
Definition: Counters.h:212
int ME1b_all() const
Definition: Counters.h:220
void set_me1a_6(int bits)
Definition: Counters.h:104
void set_me1b_1(int bits)
Definition: Counters.h:108
int ME4_5() const
Definition: Counters.h:204
void set_me1a_1(int bits)
Definition: Counters.h:99
int ME1b_4() const
Definition: Counters.h:176
int ME1a_all() const
Definition: Counters.h:219
void set_me4_3(int bits)
Definition: Counters.h:137
void set_me3_4(int bits)
Definition: Counters.h:129
int ME1b_7() const
Definition: Counters.h:179
int ME1b_5() const
Definition: Counters.h:177
void set_me4_7(int bits)
Definition: Counters.h:141
void set_me2n_9(int bits)
Definition: Counters.h:148
void set_me1a_4(int bits)
Definition: Counters.h:102
void set_dataword(uint64_t bits)
Definition: Counters.h:162
void set_me2_9(int bits)
Definition: Counters.h:125
int ME4_8() const
Definition: Counters.h:207
int ME2_all() const
Definition: Counters.h:221
int ME3_7() const
Definition: Counters.h:197
unsigned long long uint64_t
Definition: Time.h:13
void set_me1a_7(int bits)
Definition: Counters.h:105
void set_me2_5(int bits)
Definition: Counters.h:121
int Format_errors() const
Definition: Counters.h:226
void set_me4_4(int bits)
Definition: Counters.h:138
void set_me1a_8(int bits)
Definition: Counters.h:106
int ME1a_8() const
Definition: Counters.h:171
int ME4n_3() const
Definition: Counters.h:216
void set_me1a_2(int bits)
Definition: Counters.h:100
void set_me1b_all(int bits)
Definition: Counters.h:155
uint64_t Dataword() const
Definition: Counters.h:227
int ME3_4() const
Definition: Counters.h:194
int ME3_1() const
Definition: Counters.h:191
int ME3n_9() const
Definition: Counters.h:215
int ME4_7() const
Definition: Counters.h:206
void set_me3_1(int bits)
Definition: Counters.h:126
int ME1a_6() const
Definition: Counters.h:169
int ME4_2() const
Definition: Counters.h:201
Counters(int int_me1a_all, int int_me1b_all, int int_me2_all, int int_me3_all, int int_me4_all, int int_meN_all, int int_me_all)
Definition: Counters.h:81
void set_me1a_5(int bits)
Definition: Counters.h:103
int ME1a_2() const
Definition: Counters.h:165
int ME1b_8() const
Definition: Counters.h:180
void set_me1b_7(int bits)
Definition: Counters.h:114
int ME4_3() const
Definition: Counters.h:202
int ME3_5() const
Definition: Counters.h:195
void set_me3_8(int bits)
Definition: Counters.h:133
void set_me2n_3(int bits)
Definition: Counters.h:147
void set_me1b_9(int bits)
Definition: Counters.h:116
void set_me3_5(int bits)
Definition: Counters.h:130
void set_me2_6(int bits)
Definition: Counters.h:122
void set_me3_9(int bits)
Definition: Counters.h:134
void set_me1b_5(int bits)
Definition: Counters.h:112
void set_me4_all(int bits)
Definition: Counters.h:158
virtual ~Counters()
Definition: Counters.h:97
int ME2_3() const
Definition: Counters.h:184
void set_me2_3(int bits)
Definition: Counters.h:119
void set_me1b_3(int bits)
Definition: Counters.h:110
int ME1b_9() const
Definition: Counters.h:181