CMS 3D CMS Logo

Counters.h
Go to the documentation of this file.
1 // Class for Block of Counters
2 
3 #ifndef __l1t_emtf_Counters_h__
4 #define __l1t_emtf_Counters_h__
5 
6 #include <boost/cstdint.hpp>
7 
8 namespace l1t {
9  namespace emtf {
10  class Counters {
11  public:
12 
13  explicit Counters(uint64_t dataword);
14 
15  // rpc_counter not yet implemented in FW - AWB 31.01.16
16  Counters() :
17  me1a_1(-99), me1a_2(-99), me1a_3(-99), me1a_4(-99), me1a_5(-99), me1a_6(-99), me1a_7(-99), me1a_8(-99), me1a_9(-99),
18  me1b_1(-99), me1b_2(-99), me1b_3(-99), me1b_4(-99), me1b_5(-99), me1b_6(-99), me1b_7(-99), me1b_8(-99), me1b_9(-99),
19  me2_1(-99), me2_2(-99), me2_3(-99), me2_4(-99), me2_5(-99), me2_6(-99), me2_7(-99), me2_8(-99), me2_9(-99),
20  me3_1(-99), me3_2(-99), me3_3(-99), me3_4(-99), me3_5(-99), me3_6(-99), me3_7(-99), me3_8(-99), me3_9(-99),
21  me4_1(-99), me4_2(-99), me4_3(-99), me4_4(-99), me4_5(-99), me4_6(-99), me4_7(-99), me4_8(-99), me4_9(-99),
22  me1n_3(-99), me1n_6(-99), me1n_9(-99), me2n_3(-99), me2n_9(-99), me3n_3(-99), me3n_9(-99), me4n_3(-99), me4n_9(-99),
23  me1a_all(-99), me1b_all(-99), me2_all(-99), me3_all(-99), me4_all(-99), meN_all(-99), me_all(-99),
24  format_errors(0), dataword(-99)
25  {};
26 
27  Counters(int int_me1a_all, int int_me1b_all, int int_me2_all, int int_me3_all,
28  int int_me4_all, int int_meN_all, int int_me_all) :
29  me1a_all(int_me1a_all), me1b_all(int_me1b_all), me2_all(int_me2_all), me3_all(int_me3_all),
30  me4_all(int_me4_all), meN_all(int_meN_all), me_all(int_me_all), dataword(-99)
31  {};
32 
33  virtual ~Counters() {};
34 
35 
36  void set_me1a_1(int bits) { me1a_1 = bits; }
37  void set_me1a_2(int bits) { me1a_2 = bits; }
38  void set_me1a_3(int bits) { me1a_3 = bits; }
39  void set_me1a_4(int bits) { me1a_4 = bits; }
40  void set_me1a_5(int bits) { me1a_5 = bits; }
41  void set_me1a_6(int bits) { me1a_6 = bits; }
42  void set_me1a_7(int bits) { me1a_7 = bits; }
43  void set_me1a_8(int bits) { me1a_8 = bits; }
44  void set_me1a_9(int bits) { me1a_9 = bits; }
45  void set_me1b_1(int bits) { me1b_1 = bits; }
46  void set_me1b_2(int bits) { me1b_2 = bits; }
47  void set_me1b_3(int bits) { me1b_3 = bits; }
48  void set_me1b_4(int bits) { me1b_4 = bits; }
49  void set_me1b_5(int bits) { me1b_5 = bits; }
50  void set_me1b_6(int bits) { me1b_6 = bits; }
51  void set_me1b_7(int bits) { me1b_7 = bits; }
52  void set_me1b_8(int bits) { me1b_8 = bits; }
53  void set_me1b_9(int bits) { me1b_9 = bits; }
54  void set_me2_1(int bits) { me2_1 = bits; }
55  void set_me2_2(int bits) { me2_2 = bits; }
56  void set_me2_3(int bits) { me2_3 = bits; }
57  void set_me2_4(int bits) { me2_4 = bits; }
58  void set_me2_5(int bits) { me2_5 = bits; }
59  void set_me2_6(int bits) { me2_6 = bits; }
60  void set_me2_7(int bits) { me2_7 = bits; }
61  void set_me2_8(int bits) { me2_8 = bits; }
62  void set_me2_9(int bits) { me2_9 = bits; }
63  void set_me3_1(int bits) { me3_1 = bits; }
64  void set_me3_2(int bits) { me3_2 = bits; }
65  void set_me3_3(int bits) { me3_3 = bits; }
66  void set_me3_4(int bits) { me3_4 = bits; }
67  void set_me3_5(int bits) { me3_5 = bits; }
68  void set_me3_6(int bits) { me3_6 = bits; }
69  void set_me3_7(int bits) { me3_7 = bits; }
70  void set_me3_8(int bits) { me3_8 = bits; }
71  void set_me3_9(int bits) { me3_9 = bits; }
72  void set_me4_1(int bits) { me4_1 = bits; }
73  void set_me4_2(int bits) { me4_2 = bits; }
74  void set_me4_3(int bits) { me4_3 = bits; }
75  void set_me4_4(int bits) { me4_4 = bits; }
76  void set_me4_5(int bits) { me4_5 = bits; }
77  void set_me4_6(int bits) { me4_6 = bits; }
78  void set_me4_7(int bits) { me4_7 = bits; }
79  void set_me4_8(int bits) { me4_8 = bits; }
80  void set_me4_9(int bits) { me4_9 = bits; }
81  void set_me1n_3(int bits) { me1n_3 = bits; }
82  void set_me1n_6(int bits) { me1n_6 = bits; }
83  void set_me1n_9(int bits) { me1n_9 = bits; }
84  void set_me2n_3(int bits) { me2n_3 = bits; }
85  void set_me2n_9(int bits) { me2n_9 = bits; }
86  void set_me3n_3(int bits) { me3n_3 = bits; }
87  void set_me3n_9(int bits) { me3n_9 = bits; }
88  void set_me4n_3(int bits) { me4n_3 = bits; }
89  void set_me4n_9(int bits) { me4n_9 = bits; }
90 
91  void set_me1a_all(int bits) { me1a_all = bits; }
92  void set_me1b_all(int bits) { me1b_all = bits; }
93  void set_me2_all(int bits) { me2_all = bits; }
94  void set_me3_all(int bits) { me3_all = bits; }
95  void set_me4_all(int bits) { me4_all = bits; }
96  void set_meN_all(int bits) { meN_all = bits; }
97  void set_me_all (int bits) { me_all = bits; }
99  void set_dataword(uint64_t bits) { dataword = bits; }
100 
101 
102  int ME1a_1() const { return me1a_1; }
103  int ME1a_2() const { return me1a_2; }
104  int ME1a_3() const { return me1a_3; }
105  int ME1a_4() const { return me1a_4; }
106  int ME1a_5() const { return me1a_5; }
107  int ME1a_6() const { return me1a_6; }
108  int ME1a_7() const { return me1a_7; }
109  int ME1a_8() const { return me1a_8; }
110  int ME1a_9() const { return me1a_9; }
111  int ME1b_1() const { return me1b_1; }
112  int ME1b_2() const { return me1b_2; }
113  int ME1b_3() const { return me1b_3; }
114  int ME1b_4() const { return me1b_4; }
115  int ME1b_5() const { return me1b_5; }
116  int ME1b_6() const { return me1b_6; }
117  int ME1b_7() const { return me1b_7; }
118  int ME1b_8() const { return me1b_8; }
119  int ME1b_9() const { return me1b_9; }
120  int ME2_1() const { return me2_1 ; }
121  int ME2_2() const { return me2_2 ; }
122  int ME2_3() const { return me2_3 ; }
123  int ME2_4() const { return me2_4 ; }
124  int ME2_5() const { return me2_5 ; }
125  int ME2_6() const { return me2_6 ; }
126  int ME2_7() const { return me2_7 ; }
127  int ME2_8() const { return me2_8 ; }
128  int ME2_9() const { return me2_9 ; }
129  int ME3_1() const { return me3_1 ; }
130  int ME3_2() const { return me3_2 ; }
131  int ME3_3() const { return me3_3 ; }
132  int ME3_4() const { return me3_4 ; }
133  int ME3_5() const { return me3_5 ; }
134  int ME3_6() const { return me3_6 ; }
135  int ME3_7() const { return me3_7 ; }
136  int ME3_8() const { return me3_8 ; }
137  int ME3_9() const { return me3_9 ; }
138  int ME4_1() const { return me4_1 ; }
139  int ME4_2() const { return me4_2 ; }
140  int ME4_3() const { return me4_3 ; }
141  int ME4_4() const { return me4_4 ; }
142  int ME4_5() const { return me4_5 ; }
143  int ME4_6() const { return me4_6 ; }
144  int ME4_7() const { return me4_7 ; }
145  int ME4_8() const { return me4_8 ; }
146  int ME4_9() const { return me4_9 ; }
147  int ME1n_3() const { return me1n_3; }
148  int ME1n_6() const { return me1n_6; }
149  int ME1n_9() const { return me1n_9; }
150  int ME2n_3() const { return me2n_3; }
151  int ME2n_9() const { return me2n_9; }
152  int ME3n_3() const { return me3n_3; }
153  int ME3n_9() const { return me3n_9; }
154  int ME4n_3() const { return me4n_3; }
155  int ME4n_9() const { return me4n_9; }
156 
157  int ME1a_all() const { return me1a_all; }
158  int ME1b_all() const { return me1b_all; }
159  int ME2_all() const { return me2_all; }
160  int ME3_all() const { return me3_all; }
161  int ME4_all() const { return me4_all; }
162  int MEN_all() const { return meN_all; }
163  int ME_all() const { return me_all; }
164  int Format_errors() const { return format_errors; }
165  uint64_t Dataword() const { return dataword; }
166 
167  private:
168 
169  int me1a_1; int me1a_2; int me1a_3; int me1a_4; int me1a_5; int me1a_6; int me1a_7; int me1a_8; int me1a_9;
170  int me1b_1; int me1b_2; int me1b_3; int me1b_4; int me1b_5; int me1b_6; int me1b_7; int me1b_8; int me1b_9;
171  int me2_1; int me2_2; int me2_3; int me2_4; int me2_5; int me2_6; int me2_7; int me2_8; int me2_9;
172  int me3_1; int me3_2; int me3_3; int me3_4; int me3_5; int me3_6; int me3_7; int me3_8; int me3_9;
173  int me4_1; int me4_2; int me4_3; int me4_4; int me4_5; int me4_6; int me4_7; int me4_8; int me4_9;
174  int me1n_3; int me1n_6; int me1n_9; int me2n_3; int me2n_9; int me3n_3; int me3n_9; int me4n_3; int me4n_9;
175 
176  int me1a_all;
177  int me1b_all;
178  int me2_all;
179  int me3_all;
180  int me4_all;
181  int meN_all;
182  int me_all;
185 
186  }; // End of class Counters
187 
188  } // End of namespace emtf
189 } // End of namespace l1t
190 
191 #endif /* define __l1t_emtf_Counters_h__ */
int ME1a_3() const
Definition: Counters.h:104
void set_me3n_3(int bits)
Definition: Counters.h:86
void set_me2_7(int bits)
Definition: Counters.h:60
int ME1a_1() const
Definition: Counters.h:102
void set_me1b_2(int bits)
Definition: Counters.h:46
int ME3_5() const
Definition: Counters.h:133
int ME4_9() const
Definition: Counters.h:146
void set_me3_7(int bits)
Definition: Counters.h:69
int ME1b_8() const
Definition: Counters.h:118
int ME4_5() const
Definition: Counters.h:142
uint64_t dataword
Definition: Counters.h:184
void set_me3_2(int bits)
Definition: Counters.h:64
void set_me2_1(int bits)
Definition: Counters.h:54
void set_me4_8(int bits)
Definition: Counters.h:79
uint64_t Dataword() const
Definition: Counters.h:165
int ME_all() const
Definition: Counters.h:163
int ME1b_7() const
Definition: Counters.h:117
int Format_errors() const
Definition: Counters.h:164
void set_me_all(int bits)
Definition: Counters.h:97
void set_me4_6(int bits)
Definition: Counters.h:77
void set_me1b_6(int bits)
Definition: Counters.h:50
void set_me4n_9(int bits)
Definition: Counters.h:89
void set_me1n_9(int bits)
Definition: Counters.h:83
void set_me2_all(int bits)
Definition: Counters.h:93
int ME4_6() const
Definition: Counters.h:143
void set_me2_8(int bits)
Definition: Counters.h:61
void set_me2_2(int bits)
Definition: Counters.h:55
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:157
void set_me4n_3(int bits)
Definition: Counters.h:88
int ME4_2() const
Definition: Counters.h:139
void set_me3_6(int bits)
Definition: Counters.h:68
int ME1a_4() const
Definition: Counters.h:105
void set_me1b_8(int bits)
Definition: Counters.h:52
void set_me3_all(int bits)
Definition: Counters.h:94
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
void set_me4_1(int bits)
Definition: Counters.h:72
void set_me1a_9(int bits)
Definition: Counters.h:44
int ME2_4() const
Definition: Counters.h:123
int ME1b_2() const
Definition: Counters.h:112
void set_me2_4(int bits)
Definition: Counters.h:57
void set_meN_all(int bits)
Definition: Counters.h:96
int ME2_all() const
Definition: Counters.h:159
int ME2n_3() const
Definition: Counters.h:150
void set_me3n_9(int bits)
Definition: Counters.h:87
void set_me4_2(int bits)
Definition: Counters.h:73
int ME3_3() const
Definition: Counters.h:131
int ME4_1() const
Definition: Counters.h:138
int ME3_7() const
Definition: Counters.h:135
int ME1n_3() const
Definition: Counters.h:147
int ME4_all() const
Definition: Counters.h:161
int ME1b_all() const
Definition: Counters.h:158
int ME2_6() const
Definition: Counters.h:125
int ME1a_8() const
Definition: Counters.h:109
void set_me4_5(int bits)
Definition: Counters.h:76
int ME4_8() const
Definition: Counters.h:145
int ME2_2() const
Definition: Counters.h:121
int ME1b_5() const
Definition: Counters.h:115
void set_me1n_3(int bits)
Definition: Counters.h:81
int ME1a_6() const
Definition: Counters.h:107
void add_format_error()
Definition: Counters.h:98
int ME1b_4() const
Definition: Counters.h:114
int ME3_all() const
Definition: Counters.h:160
void set_me1b_4(int bits)
Definition: Counters.h:48
int ME3_1() const
Definition: Counters.h:129
int ME1n_6() const
Definition: Counters.h:148
int ME1a_5() const
Definition: Counters.h:106
void set_me4_9(int bits)
Definition: Counters.h:80
void set_me3_3(int bits)
Definition: Counters.h:65
void set_me1a_all(int bits)
Definition: Counters.h:91
void set_me1a_3(int bits)
Definition: Counters.h:38
int ME4_7() const
Definition: Counters.h:144
void set_me1n_6(int bits)
Definition: Counters.h:82
int ME4_3() const
Definition: Counters.h:140
void set_me1a_6(int bits)
Definition: Counters.h:41
void set_me1b_1(int bits)
Definition: Counters.h:45
void set_me1a_1(int bits)
Definition: Counters.h:36
void set_me4_3(int bits)
Definition: Counters.h:74
void set_me3_4(int bits)
Definition: Counters.h:66
int ME1b_3() const
Definition: Counters.h:113
void set_me4_7(int bits)
Definition: Counters.h:78
void set_me2n_9(int bits)
Definition: Counters.h:85
void set_me1a_4(int bits)
Definition: Counters.h:39
void set_dataword(uint64_t bits)
Definition: Counters.h:99
void set_me2_9(int bits)
Definition: Counters.h:62
int ME3_6() const
Definition: Counters.h:134
int ME1n_9() const
Definition: Counters.h:149
unsigned long long uint64_t
Definition: Time.h:15
int ME1a_9() const
Definition: Counters.h:110
void set_me1a_7(int bits)
Definition: Counters.h:42
void set_me2_5(int bits)
Definition: Counters.h:58
void set_me4_4(int bits)
Definition: Counters.h:75
void set_me1a_8(int bits)
Definition: Counters.h:43
void set_me1a_2(int bits)
Definition: Counters.h:37
void set_me1b_all(int bits)
Definition: Counters.h:92
int ME2n_9() const
Definition: Counters.h:151
int ME2_5() const
Definition: Counters.h:124
int ME3n_9() const
Definition: Counters.h:153
int ME1a_2() const
Definition: Counters.h:103
int ME1b_1() const
Definition: Counters.h:111
int ME2_9() const
Definition: Counters.h:128
int ME3_4() const
Definition: Counters.h:132
int ME3_2() const
Definition: Counters.h:130
void set_me3_1(int bits)
Definition: Counters.h:63
int ME1b_6() const
Definition: Counters.h:116
int ME3n_3() const
Definition: Counters.h:152
int ME3_9() const
Definition: Counters.h:137
int ME4_4() const
Definition: Counters.h:141
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:27
void set_me1a_5(int bits)
Definition: Counters.h:40
void set_me1b_7(int bits)
Definition: Counters.h:51
int ME2_8() const
Definition: Counters.h:127
int ME2_1() const
Definition: Counters.h:120
int ME4n_9() const
Definition: Counters.h:155
int ME2_7() const
Definition: Counters.h:126
int ME1b_9() const
Definition: Counters.h:119
void set_me3_8(int bits)
Definition: Counters.h:70
void set_me2n_3(int bits)
Definition: Counters.h:84
int ME2_3() const
Definition: Counters.h:122
void set_me1b_9(int bits)
Definition: Counters.h:53
void set_me3_5(int bits)
Definition: Counters.h:67
void set_me2_6(int bits)
Definition: Counters.h:59
void set_me3_9(int bits)
Definition: Counters.h:71
int ME4n_3() const
Definition: Counters.h:154
int ME1a_7() const
Definition: Counters.h:108
void set_me1b_5(int bits)
Definition: Counters.h:49
void set_me4_all(int bits)
Definition: Counters.h:95
virtual ~Counters()
Definition: Counters.h:33
int ME3_8() const
Definition: Counters.h:136
int MEN_all() const
Definition: Counters.h:162
void set_me2_3(int bits)
Definition: Counters.h:56
void set_me1b_3(int bits)
Definition: Counters.h:47