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