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