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  mode(-99),
27  eta_GMT(-99),
28  pt_GMT(-99),
29  me1_subsector(-99),
30  me1_CSC_ID(-99),
31  me1_stub_num(-99),
32  me2_CSC_ID(-99),
33  me2_stub_num(-99),
34  me3_CSC_ID(-99),
35  me3_stub_num(-99),
36  me4_CSC_ID(-99),
37  me4_stub_num(-99),
38  tbin(-99),
39  me1_delay(-99),
40  me2_delay(-99),
41  me3_delay(-99),
42  me4_delay(-99),
43  pt_LUT_addr(-99),
44  format_errors(0),
45  dataword(-99){};
46 
47  virtual ~SP(){};
48 
49  void set_hl(int bits) { hl = bits; }
50  void set_c(int bits) { c = bits; }
51  void set_phi_full(int bits) { phi_full = bits; }
52  void set_vc(int bits) { vc = bits; }
53  void set_vt(int bits) { vt = bits; }
54  void set_se(int bits) { se = bits; }
55  void set_bc0(int bits) { bc0 = bits; }
56  void set_quality_GMT(int bits) { quality_GMT = bits; }
57  void set_phi_GMT(int bits) { phi_GMT = bits; }
58  void set_bx(int bits) { bx = bits; }
59  void set_mode(int bits) { mode = bits; }
60  void set_eta_GMT(int bits) { eta_GMT = bits; }
61  void set_pt_GMT(int bits) { pt_GMT = bits; }
62  void set_me1_subsector(int bits) { me1_subsector = bits; }
63  void set_me1_CSC_ID(int bits) { me1_CSC_ID = bits; }
64  void set_me1_stub_num(int bits) { me1_stub_num = bits; }
65  void set_me2_CSC_ID(int bits) { me2_CSC_ID = bits; }
66  void set_me2_stub_num(int bits) { me2_stub_num = bits; }
67  void set_me3_CSC_ID(int bits) { me3_CSC_ID = bits; }
68  void set_me3_stub_num(int bits) { me3_stub_num = bits; }
69  void set_me4_CSC_ID(int bits) { me4_CSC_ID = bits; }
70  void set_me4_stub_num(int bits) { me4_stub_num = bits; }
71  void set_tbin(int bits) { tbin = bits; }
72  void set_me1_delay(int bits) { me1_delay = bits; }
73  void set_me2_delay(int bits) { me2_delay = bits; }
74  void set_me3_delay(int bits) { me3_delay = bits; }
75  void set_me4_delay(int bits) { me4_delay = bits; }
76  void set_pt_LUT_addr(unsigned long bits) { pt_LUT_addr = bits; }
78  void set_dataword(uint64_t bits) { dataword = bits; }
79 
80  int HL() const { return hl; }
81  int C() const { return c; }
82  int Phi_full() const { return phi_full; }
83  int VC() const { return vc; }
84  int VT() const { return vt; }
85  int SE() const { return se; }
86  int BC0() const { return bc0; }
87  int Quality_GMT() const { return quality_GMT; }
88  int Phi_GMT() const { return phi_GMT; }
89  int BX() const { return bx; }
90  int Mode() const { return mode; }
91  int Eta_GMT() const { return eta_GMT; }
92  int Pt_GMT() const { return pt_GMT; }
93  int ME1_subsector() const { return me1_subsector; }
94  int ME1_CSC_ID() const { return me1_CSC_ID; }
95  int ME1_stub_num() const { return me1_stub_num; }
96  int ME2_CSC_ID() const { return me2_CSC_ID; }
97  int ME2_stub_num() const { return me2_stub_num; }
98  int ME3_CSC_ID() const { return me3_CSC_ID; }
99  int ME3_stub_num() const { return me3_stub_num; }
100  int ME4_CSC_ID() const { return me4_CSC_ID; }
101  int ME4_stub_num() const { return me4_stub_num; }
102  int TBIN() const { return tbin; }
103  int ME1_delay() const { return me1_delay; }
104  int ME2_delay() const { return me2_delay; }
105  int ME3_delay() const { return me3_delay; }
106  int ME4_delay() const { return me4_delay; }
107  unsigned long Pt_LUT_addr() const { return pt_LUT_addr; }
108  int Format_errors() const { return format_errors; }
109  uint64_t Dataword() const { return dataword; }
110 
111  private:
112  int hl;
113  int c;
114  int phi_full;
115  int vc;
116  int vt;
117  int se;
118  int bc0;
120  int phi_GMT;
121  int bx;
122  int mode;
123  int eta_GMT;
124  int pt_GMT;
134  int tbin;
139  unsigned long pt_LUT_addr;
142 
143  }; // End of class SP
144 
145  // Define a vector of SP
146  typedef std::vector<SP> SPCollection;
147 
148  } // End of namespace emtf
149 } // End of namespace l1t
150 
151 #endif /* define __l1t_emtf_SP_h__ */
l1t::emtf::SP::set_phi_full
void set_phi_full(int bits)
Definition: SP.h:51
l1t::emtf::SP::ME3_stub_num
int ME3_stub_num() const
Definition: SP.h:99
l1t::emtf::SP::set_bx
void set_bx(int bits)
Definition: SP.h:58
l1t::emtf::SP::Pt_LUT_addr
unsigned long Pt_LUT_addr() const
Definition: SP.h:107
l1t::emtf::SP::BX
int BX() const
Definition: SP.h:89
l1t::emtf::SP::set_me1_subsector
void set_me1_subsector(int bits)
Definition: SP.h:62
l1t::emtf::SP::VT
int VT() const
Definition: SP.h:84
l1t::emtf::SP::Quality_GMT
int Quality_GMT() const
Definition: SP.h:87
l1t::emtf::SP::hl
int hl
Definition: SP.h:112
l1t::emtf::SP::c
int c
Definition: SP.h:113
l1t::emtf::SP::me4_CSC_ID
int me4_CSC_ID
Definition: SP.h:132
l1t::emtf::SP::ME1_stub_num
int ME1_stub_num() const
Definition: SP.h:95
l1t::emtf::SP::set_me2_stub_num
void set_me2_stub_num(int bits)
Definition: SP.h:66
l1t::emtf::SP::set_mode
void set_mode(int bits)
Definition: SP.h:59
l1t::emtf::SP::bc0
int bc0
Definition: SP.h:118
l1t::emtf::SP::Dataword
uint64_t Dataword() const
Definition: SP.h:109
l1t::emtf::SP::me3_stub_num
int me3_stub_num
Definition: SP.h:131
l1t::emtf::SP::set_se
void set_se(int bits)
Definition: SP.h:54
l1t::emtf::SP::set_me2_CSC_ID
void set_me2_CSC_ID(int bits)
Definition: SP.h:65
l1t::emtf::SP::Pt_GMT
int Pt_GMT() const
Definition: SP.h:92
l1t::emtf::SP::set_vt
void set_vt(int bits)
Definition: SP.h:53
l1t::emtf::SP::set_pt_GMT
void set_pt_GMT(int bits)
Definition: SP.h:61
l1t::emtf::SP::quality_GMT
int quality_GMT
Definition: SP.h:119
l1t::emtf::SP::dataword
uint64_t dataword
Definition: SP.h:141
l1t::emtf::SP::set_phi_GMT
void set_phi_GMT(int bits)
Definition: SP.h:57
l1t::emtf::SP::format_errors
int format_errors
Definition: SP.h:140
l1t::emtf::SP::se
int se
Definition: SP.h:117
l1t::emtf::SP::set_me4_delay
void set_me4_delay(int bits)
Definition: SP.h:75
l1t::emtf::SP::set_dataword
void set_dataword(uint64_t bits)
Definition: SP.h:78
l1t::emtf::SP::Phi_full
int Phi_full() const
Definition: SP.h:82
l1t::emtf::SP::vt
int vt
Definition: SP.h:116
l1t::emtf::SP::set_me1_stub_num
void set_me1_stub_num(int bits)
Definition: SP.h:64
l1t::emtf::SP::ME2_delay
int ME2_delay() const
Definition: SP.h:104
l1t::emtf::SP::me4_stub_num
int me4_stub_num
Definition: SP.h:133
l1t::emtf::SP
Definition: SP.h:11
l1t::emtf::SP::set_me2_delay
void set_me2_delay(int bits)
Definition: SP.h:73
l1t::emtf::SP::me2_delay
int me2_delay
Definition: SP.h:136
emtf
Definition: Event.h:15
l1t::emtf::SP::set_c
void set_c(int bits)
Definition: SP.h:50
l1t::emtf::SP::~SP
virtual ~SP()
Definition: SP.h:47
l1t::emtf::SP::Phi_GMT
int Phi_GMT() const
Definition: SP.h:88
l1t::emtf::SP::me2_CSC_ID
int me2_CSC_ID
Definition: SP.h:128
l1t::emtf::SP::set_bc0
void set_bc0(int bits)
Definition: SP.h:55
l1t::emtf::SP::set_hl
void set_hl(int bits)
Definition: SP.h:49
l1t::emtf::SP::tbin
int tbin
Definition: SP.h:134
l1t::emtf::SP::BC0
int BC0() const
Definition: SP.h:86
l1t::emtf::SP::me1_delay
int me1_delay
Definition: SP.h:135
l1t::emtf::SP::C
int C() const
Definition: SP.h:81
l1t::emtf::SP::Eta_GMT
int Eta_GMT() const
Definition: SP.h:91
l1t::emtf::SP::VC
int VC() const
Definition: SP.h:83
l1t::emtf::SP::phi_GMT
int phi_GMT
Definition: SP.h:120
l1t::emtf::SP::set_me1_delay
void set_me1_delay(int bits)
Definition: SP.h:72
l1t::emtf::SP::me3_CSC_ID
int me3_CSC_ID
Definition: SP.h:130
l1t::emtf::SP::pt_LUT_addr
unsigned long pt_LUT_addr
Definition: SP.h:139
l1t
delete x;
Definition: CaloConfig.h:22
l1t::emtf::SP::me1_CSC_ID
int me1_CSC_ID
Definition: SP.h:126
l1t::emtf::SP::me3_delay
int me3_delay
Definition: SP.h:137
l1t::emtf::SP::Mode
int Mode() const
Definition: SP.h:90
l1t::emtf::SP::set_me4_CSC_ID
void set_me4_CSC_ID(int bits)
Definition: SP.h:69
l1t::emtf::SP::SP
SP()
Definition: SP.h:15
l1t::emtf::SP::SE
int SE() const
Definition: SP.h:85
l1t::emtf::SP::ME2_CSC_ID
int ME2_CSC_ID() const
Definition: SP.h:96
l1t::emtf::SP::me1_subsector
int me1_subsector
Definition: SP.h:125
l1t::emtf::SP::phi_full
int phi_full
Definition: SP.h:114
l1t::emtf::SP::set_tbin
void set_tbin(int bits)
Definition: SP.h:71
l1t::emtf::SP::me4_delay
int me4_delay
Definition: SP.h:138
l1t::emtf::SP::set_me4_stub_num
void set_me4_stub_num(int bits)
Definition: SP.h:70
l1t::emtf::SP::bx
int bx
Definition: SP.h:121
l1t::emtf::SP::set_me3_delay
void set_me3_delay(int bits)
Definition: SP.h:74
l1t::emtf::SP::ME4_CSC_ID
int ME4_CSC_ID() const
Definition: SP.h:100
l1t::emtf::SP::pt_GMT
int pt_GMT
Definition: SP.h:124
l1t::emtf::SP::set_me1_CSC_ID
void set_me1_CSC_ID(int bits)
Definition: SP.h:63
l1t::emtf::SP::mode
int mode
Definition: SP.h:122
l1t::emtf::SP::set_eta_GMT
void set_eta_GMT(int bits)
Definition: SP.h:60
l1t::emtf::SP::ME2_stub_num
int ME2_stub_num() const
Definition: SP.h:97
l1t::emtf::SP::set_vc
void set_vc(int bits)
Definition: SP.h:52
l1t::emtf::SP::ME3_delay
int ME3_delay() const
Definition: SP.h:105
l1t::emtf::SP::ME3_CSC_ID
int ME3_CSC_ID() const
Definition: SP.h:98
l1t::emtf::SPCollection
std::vector< SP > SPCollection
Definition: SP.h:146
l1t::emtf::SP::eta_GMT
int eta_GMT
Definition: SP.h:123
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::emtf::SP::ME1_subsector
int ME1_subsector() const
Definition: SP.h:93
l1t::emtf::SP::set_quality_GMT
void set_quality_GMT(int bits)
Definition: SP.h:56
l1t::emtf::SP::TBIN
int TBIN() const
Definition: SP.h:102
l1t::emtf::SP::me1_stub_num
int me1_stub_num
Definition: SP.h:127
l1t::emtf::SP::Format_errors
int Format_errors() const
Definition: SP.h:108
l1t::emtf::SP::add_format_error
void add_format_error()
Definition: SP.h:77
l1t::emtf::SP::ME4_stub_num
int ME4_stub_num() const
Definition: SP.h:101
l1t::emtf::SP::vc
int vc
Definition: SP.h:115
l1t::emtf::SP::ME1_delay
int ME1_delay() const
Definition: SP.h:103
l1t::emtf::SP::set_pt_LUT_addr
void set_pt_LUT_addr(unsigned long bits)
Definition: SP.h:76
l1t::emtf::SP::ME1_CSC_ID
int ME1_CSC_ID() const
Definition: SP.h:94
l1t::emtf::SP::ME4_delay
int ME4_delay() const
Definition: SP.h:106
l1t::emtf::SP::HL
int HL() const
Definition: SP.h:80
l1t::emtf::SP::set_me3_CSC_ID
void set_me3_CSC_ID(int bits)
Definition: SP.h:67
l1t::emtf::SP::set_me3_stub_num
void set_me3_stub_num(int bits)
Definition: SP.h:68
l1t::emtf::SP::me2_stub_num
int me2_stub_num
Definition: SP.h:129