CMS 3D CMS Logo

SP.h
Go to the documentation of this file.
1 // Class for Sector Processor (SP) Output Data Record
2 
3 #ifndef __l1t_emtf_SP_h__
4 #define __l1t_emtf_SP_h__
5 
6 #include <vector>
7 #include <cstdint>
8 
9 namespace l1t {
10  namespace emtf {
11  class SP {
12  public:
13  explicit SP(uint64_t dataword);
14 
15  SP()
16  : hl(-99),
17  c(-99),
18  phi_full(-99),
19  vc(-99),
20  vt(-99),
21  se(-99),
22  bc0(-99),
23  quality_GMT(-99),
24  phi_GMT(-99),
25  bx(-99),
26  mus(-99),
27  mode(-99),
28  eta_GMT(-99),
29  pt_GMT(-99),
30  pt_dxy_GMT(-99),
31  dxy_GMT(-99),
32  me1_subsector(-99),
33  me1_CSC_ID(-99),
34  me1_stub_num(-99),
35  me2_CSC_ID(-99),
36  me2_stub_num(-99),
37  me3_CSC_ID(-99),
38  me3_stub_num(-99),
39  me4_CSC_ID(-99),
40  me4_stub_num(-99),
41  tbin(-99),
42  me1_delay(-99),
43  me2_delay(-99),
44  me3_delay(-99),
45  me4_delay(-99),
46  nn_pt_valid(-99),
47  pt_LUT_addr(-99),
48  format_errors(0),
49  dataword(-99){};
50 
51  virtual ~SP(){};
52 
53  void set_hl(int bits) { hl = bits; }
54  void set_c(int bits) { c = bits; }
55  void set_phi_full(int bits) { phi_full = bits; }
56  void set_vc(int bits) { vc = bits; }
57  void set_vt(int bits) { vt = bits; }
58  void set_se(int bits) { se = bits; }
59  void set_bc0(int bits) { bc0 = bits; }
61  void set_phi_GMT(int bits) { phi_GMT = bits; }
62  void set_bx(int bits) { bx = bits; }
63  void set_mus(int bits) { mus = bits; }
64  void set_mode(int bits) { mode = bits; }
65  void set_eta_GMT(int bits) { eta_GMT = bits; }
66  void set_pt_GMT(int bits) { pt_GMT = bits; }
68  void set_dxy_GMT(int bits) { dxy_GMT = bits; }
78  void set_tbin(int bits) { tbin = bits; }
79  void set_me1_delay(int bits) { me1_delay = bits; }
80  void set_me2_delay(int bits) { me2_delay = bits; }
81  void set_me3_delay(int bits) { me3_delay = bits; }
82  void set_me4_delay(int bits) { me4_delay = bits; }
84  void set_pt_LUT_addr(unsigned long bits) { pt_LUT_addr = bits; }
87 
88  int HL() const { return hl; }
89  int C() const { return c; }
90  int Phi_full() const { return phi_full; }
91  int VC() const { return vc; }
92  int VT() const { return vt; }
93  int SE() const { return se; }
94  int BC0() const { return bc0; }
95  int Quality_GMT() const { return quality_GMT; }
96  int Phi_GMT() const { return phi_GMT; }
97  int BX() const { return bx; }
98  int Mode() const { return mode; }
99  int Eta_GMT() const { return eta_GMT; }
100  int Pt_GMT() const { return pt_GMT; }
101  int Pt_dxy_GMT() const { return pt_dxy_GMT; }
102  int Dxy_GMT() const { return dxy_GMT; }
103  int ME1_subsector() const { return me1_subsector; }
104  int ME1_CSC_ID() const { return me1_CSC_ID; }
105  int ME1_stub_num() const { return me1_stub_num; }
106  int ME2_CSC_ID() const { return me2_CSC_ID; }
107  int ME2_stub_num() const { return me2_stub_num; }
108  int ME3_CSC_ID() const { return me3_CSC_ID; }
109  int ME3_stub_num() const { return me3_stub_num; }
110  int ME4_CSC_ID() const { return me4_CSC_ID; }
111  int ME4_stub_num() const { return me4_stub_num; }
112  int TBIN() const { return tbin; }
113  int ME1_delay() const { return me1_delay; }
114  int ME2_delay() const { return me2_delay; }
115  int ME3_delay() const { return me3_delay; }
116  int ME4_delay() const { return me4_delay; }
117  int NN_pt_valid() const { return nn_pt_valid; }
118  unsigned long Pt_LUT_addr() const { return pt_LUT_addr; }
119  int Format_errors() const { return format_errors; }
120  uint64_t Dataword() const { return dataword; }
121  int MUS() const { return mus; }
122 
123  private:
124  int hl;
125  int c;
126  int phi_full;
127  int vc;
128  int vt;
129  int se;
130  int bc0;
132  int phi_GMT;
133  int bx;
134  int mus;
135  int mode;
136  int eta_GMT;
137  int pt_GMT;
139  int dxy_GMT;
149  int tbin;
155  unsigned long pt_LUT_addr;
158 
159  }; // End of class SP
160 
161  // Define a vector of SP
162  typedef std::vector<SP> SPCollection;
163 
164  } // End of namespace emtf
165 } // End of namespace l1t
166 
167 #endif /* define __l1t_emtf_SP_h__ */
int ME3_stub_num() const
Definition: SP.h:109
int Quality_GMT() const
Definition: SP.h:95
int me3_stub_num
Definition: SP.h:146
void set_me3_stub_num(int bits)
Definition: SP.h:75
int c
Definition: SP.h:125
void set_vt(int bits)
Definition: SP.h:57
void set_mus(int bits)
Definition: SP.h:63
int quality_GMT
Definition: SP.h:131
uint64_t dataword
Definition: SP.h:157
void set_me2_stub_num(int bits)
Definition: SP.h:73
int vc
Definition: SP.h:127
void set_pt_dxy_GMT(int bits)
Definition: SP.h:67
int ME4_stub_num() const
Definition: SP.h:111
int bc0
Definition: SP.h:130
int ME1_CSC_ID() const
Definition: SP.h:104
unsigned long Pt_LUT_addr() const
Definition: SP.h:118
void set_me3_CSC_ID(int bits)
Definition: SP.h:74
int HL() const
Definition: SP.h:88
int VT() const
Definition: SP.h:92
int me4_CSC_ID
Definition: SP.h:147
int ME1_stub_num() const
Definition: SP.h:105
int MUS() const
Definition: SP.h:121
int format_errors
Definition: SP.h:156
int se
Definition: SP.h:129
constexpr uint32_t bits
Definition: gpuClustering.h:25
void set_bx(int bits)
Definition: SP.h:62
void set_dataword(uint64_t bits)
Definition: SP.h:86
int hl
Definition: SP.h:124
int Pt_dxy_GMT() const
Definition: SP.h:101
Definition: Event.h:15
int vt
Definition: SP.h:128
delete x;
Definition: CaloConfig.h:22
int ME2_delay() const
Definition: SP.h:114
uint64_t Dataword() const
Definition: SP.h:120
int mus
Definition: SP.h:134
void set_se(int bits)
Definition: SP.h:58
void set_me2_CSC_ID(int bits)
Definition: SP.h:72
int Phi_full() const
Definition: SP.h:90
int Pt_GMT() const
Definition: SP.h:100
int me2_delay
Definition: SP.h:151
int BC0() const
Definition: SP.h:94
void set_me1_stub_num(int bits)
Definition: SP.h:71
void set_pt_GMT(int bits)
Definition: SP.h:66
void set_me4_delay(int bits)
Definition: SP.h:82
int phi_GMT
Definition: SP.h:132
void set_phi_GMT(int bits)
Definition: SP.h:61
int VC() const
Definition: SP.h:91
int me2_CSC_ID
Definition: SP.h:143
int pt_dxy_GMT
Definition: SP.h:138
void set_me1_delay(int bits)
Definition: SP.h:79
int me4_stub_num
Definition: SP.h:148
void set_me2_delay(int bits)
Definition: SP.h:80
void set_hl(int bits)
Definition: SP.h:53
void set_tbin(int bits)
Definition: SP.h:78
int me4_delay
Definition: SP.h:153
virtual ~SP()
Definition: SP.h:51
int Eta_GMT() const
Definition: SP.h:99
int Phi_GMT() const
Definition: SP.h:96
int ME4_CSC_ID() const
Definition: SP.h:110
int me3_CSC_ID
Definition: SP.h:145
void set_bc0(int bits)
Definition: SP.h:59
int me3_delay
Definition: SP.h:152
int dxy_GMT
Definition: SP.h:139
void set_eta_GMT(int bits)
Definition: SP.h:65
SP()
Definition: SP.h:15
int SE() const
Definition: SP.h:93
int ME2_CSC_ID() const
Definition: SP.h:106
int me1_subsector
Definition: SP.h:140
int C() const
Definition: SP.h:89
void set_c(int bits)
Definition: SP.h:54
int nn_pt_valid
Definition: SP.h:154
void set_vc(int bits)
Definition: SP.h:56
int bx
Definition: SP.h:133
int mode
Definition: SP.h:135
int Mode() const
Definition: SP.h:98
int tbin
Definition: SP.h:149
void set_me4_CSC_ID(int bits)
Definition: SP.h:76
int phi_full
Definition: SP.h:126
int me1_delay
Definition: SP.h:150
int NN_pt_valid() const
Definition: SP.h:117
void set_me4_stub_num(int bits)
Definition: SP.h:77
unsigned long long uint64_t
Definition: Time.h:13
int eta_GMT
Definition: SP.h:136
void set_me3_delay(int bits)
Definition: SP.h:81
void set_dxy_GMT(int bits)
Definition: SP.h:68
int ME3_delay() const
Definition: SP.h:115
unsigned long pt_LUT_addr
Definition: SP.h:155
int ME1_subsector() const
Definition: SP.h:103
int me1_CSC_ID
Definition: SP.h:141
int me1_stub_num
Definition: SP.h:142
int ME3_CSC_ID() const
Definition: SP.h:108
int ME1_delay() const
Definition: SP.h:113
void set_pt_LUT_addr(unsigned long bits)
Definition: SP.h:84
int ME4_delay() const
Definition: SP.h:116
int pt_GMT
Definition: SP.h:137
void set_me1_CSC_ID(int bits)
Definition: SP.h:70
int Format_errors() const
Definition: SP.h:119
int TBIN() const
Definition: SP.h:112
int ME2_stub_num() const
Definition: SP.h:107
void set_me1_subsector(int bits)
Definition: SP.h:69
int BX() const
Definition: SP.h:97
int me2_stub_num
Definition: SP.h:144
std::vector< SP > SPCollection
Definition: SP.h:162
void set_quality_GMT(int bits)
Definition: SP.h:60
void add_format_error()
Definition: SP.h:85
void set_phi_full(int bits)
Definition: SP.h:55
void set_mode(int bits)
Definition: SP.h:64
int Dxy_GMT() const
Definition: SP.h:102
void set_nn_pt_valid(int bits)
Definition: SP.h:83