CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <boost/cstdint.hpp>
7 
8 namespace l1t {
9  namespace emtf {
10  class SP {
11  public:
12 
13  explicit SP(uint64_t dataword);
14 
15  SP() :
16  hl(-99), c(-99), phi_full(-99), vc(-99), vt(-99), se(-99), bc0(-99),
17  quality_GMT(-99), phi_GMT(-99), bx(-99), mode(-99), eta_GMT(-99), pt_GMT(-99),
18  me1_subsector(-99), me1_CSC_ID(-99), me1_stub_num(-99), me2_CSC_ID(-99),
19  me2_stub_num(-99), me3_CSC_ID(-99), me3_stub_num(-99), me4_CSC_ID(-99),
20  me4_stub_num(-99), tbin(-99), me1_delay(-99), me2_delay(-99), me3_delay(-99),
21  me4_delay(-99), pt_LUT_addr(-99), format_errors(0), dataword(-99)
22  {};
23 
24  virtual ~SP() {};
25 
26  void set_hl (int bits) { hl = bits; }
27  void set_c (int bits) { c = bits; }
28  void set_phi_full (int bits) { phi_full = bits; }
29  void set_vc (int bits) { vc = bits; }
30  void set_vt (int bits) { vt = bits; }
31  void set_se (int bits) { se = bits; }
32  void set_bc0 (int bits) { bc0 = bits; }
34  void set_phi_GMT (int bits) { phi_GMT = bits; }
35  void set_bx (int bits) { bx = bits; }
36  void set_mode (int bits) { mode = bits; }
37  void set_eta_GMT (int bits) { eta_GMT = bits; }
38  void set_pt_GMT (int bits) { pt_GMT = bits; }
40  void set_me1_CSC_ID (int bits) { me1_CSC_ID = bits; }
42  void set_me2_CSC_ID (int bits) { me2_CSC_ID = bits; }
44  void set_me3_CSC_ID (int bits) { me3_CSC_ID = bits; }
46  void set_me4_CSC_ID (int bits) { me4_CSC_ID = bits; }
48  void set_tbin (int bits) { tbin = bits; }
49  void set_me1_delay (int bits) { me1_delay = bits; }
50  void set_me2_delay (int bits) { me2_delay = bits; }
51  void set_me3_delay (int bits) { me3_delay = bits; }
52  void set_me4_delay (int bits) { me4_delay = bits; }
53  void set_pt_LUT_addr(unsigned long bits) { pt_LUT_addr = bits; }
55  void set_dataword(uint64_t bits) { dataword = bits; }
56 
57  int HL() const { return hl; }
58  int C() const { return c; }
59  int Phi_full() const { return phi_full; }
60  int VC() const { return vc; }
61  int VT() const { return vt; }
62  int SE() const { return se; }
63  int BC0() const { return bc0; }
64  int Quality_GMT() const { return quality_GMT; }
65  int Phi_GMT() const { return phi_GMT; }
66  int BX() const { return bx; }
67  int Mode() const { return mode; }
68  int Eta_GMT() const { return eta_GMT; }
69  int Pt_GMT() const { return pt_GMT; }
70  int ME1_subsector() const { return me1_subsector; }
71  int ME1_CSC_ID() const { return me1_CSC_ID; }
72  int ME1_stub_num() const { return me1_stub_num; }
73  int ME2_CSC_ID() const { return me2_CSC_ID; }
74  int ME2_stub_num() const { return me2_stub_num; }
75  int ME3_CSC_ID() const { return me3_CSC_ID; }
76  int ME3_stub_num() const { return me3_stub_num; }
77  int ME4_CSC_ID() const { return me4_CSC_ID; }
78  int ME4_stub_num() const { return me4_stub_num; }
79  int TBIN() const { return tbin; }
80  int ME1_delay() const { return me1_delay; }
81  int ME2_delay() const { return me2_delay; }
82  int ME3_delay() const { return me3_delay; }
83  int ME4_delay() const { return me4_delay; }
84  unsigned long Pt_LUT_addr() const { return pt_LUT_addr; }
85  int Format_Errors() const { return format_errors; }
86  uint64_t Dataword() const { return dataword; }
87 
88  private:
89 
90  int hl;
91  int c;
92  int phi_full;
93  int vc;
94  int vt;
95  int se;
96  int bc0;
98  int phi_GMT;
99  int bx;
100  int mode;
101  int eta_GMT;
102  int pt_GMT;
112  int tbin;
117  unsigned long pt_LUT_addr;
120 
121  }; // End of class SP
122 
123  // Define a vector of SP
124  typedef std::vector<SP> SPCollection;
125 
126  } // End of namespace emtf
127 } // End of namespace l1t
128 
129 #endif /* define __l1t_emtf_SP_h__ */
int ME3_stub_num() const
Definition: SP.h:76
int me3_stub_num
Definition: SP.h:109
void set_me3_stub_num(int bits)
Definition: SP.h:45
int c
Definition: SP.h:91
void set_vt(int bits)
Definition: SP.h:30
int BC0() const
Definition: SP.h:63
int Phi_full() const
Definition: SP.h:59
int quality_GMT
Definition: SP.h:97
uint64_t dataword
Definition: SP.h:119
void set_me2_stub_num(int bits)
Definition: SP.h:43
int vc
Definition: SP.h:93
int ME4_delay() const
Definition: SP.h:83
int bc0
Definition: SP.h:96
void set_me3_CSC_ID(int bits)
Definition: SP.h:44
int me4_CSC_ID
Definition: SP.h:110
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:118
int se
Definition: SP.h:95
void set_bx(int bits)
Definition: SP.h:35
int Mode() const
Definition: SP.h:67
void set_dataword(uint64_t bits)
Definition: SP.h:55
int hl
Definition: SP.h:90
int TBIN() const
Definition: SP.h:79
int vt
Definition: SP.h:94
int ME3_CSC_ID() const
Definition: SP.h:75
void set_se(int bits)
Definition: SP.h:31
void set_me2_CSC_ID(int bits)
Definition: SP.h:42
int me2_delay
Definition: SP.h:114
int ME1_delay() const
Definition: SP.h:80
void set_me1_stub_num(int bits)
Definition: SP.h:41
void set_pt_GMT(int bits)
Definition: SP.h:38
void set_me4_delay(int bits)
Definition: SP.h:52
int ME3_delay() const
Definition: SP.h:82
int phi_GMT
Definition: SP.h:98
void set_phi_GMT(int bits)
Definition: SP.h:34
int me2_CSC_ID
Definition: SP.h:106
void set_me1_delay(int bits)
Definition: SP.h:49
int Phi_GMT() const
Definition: SP.h:65
int ME1_subsector() const
Definition: SP.h:70
int me4_stub_num
Definition: SP.h:111
void set_me2_delay(int bits)
Definition: SP.h:50
void set_hl(int bits)
Definition: SP.h:26
int VC() const
Definition: SP.h:60
void set_tbin(int bits)
Definition: SP.h:48
int ME2_CSC_ID() const
Definition: SP.h:73
int me4_delay
Definition: SP.h:116
virtual ~SP()
Definition: SP.h:24
int ME1_CSC_ID() const
Definition: SP.h:71
int me3_CSC_ID
Definition: SP.h:108
void set_bc0(int bits)
Definition: SP.h:32
int me3_delay
Definition: SP.h:115
void set_eta_GMT(int bits)
Definition: SP.h:37
SP()
Definition: SP.h:15
int VT() const
Definition: SP.h:61
int BX() const
Definition: SP.h:66
int me1_subsector
Definition: SP.h:103
void set_c(int bits)
Definition: SP.h:27
void set_vc(int bits)
Definition: SP.h:29
int bx
Definition: SP.h:99
int ME1_stub_num() const
Definition: SP.h:72
int ME4_CSC_ID() const
Definition: SP.h:77
uint64_t Dataword() const
Definition: SP.h:86
int mode
Definition: SP.h:100
int tbin
Definition: SP.h:112
void set_me4_CSC_ID(int bits)
Definition: SP.h:46
int phi_full
Definition: SP.h:92
int me1_delay
Definition: SP.h:113
void set_me4_stub_num(int bits)
Definition: SP.h:47
unsigned long long uint64_t
Definition: Time.h:15
int Pt_GMT() const
Definition: SP.h:69
int eta_GMT
Definition: SP.h:101
void set_me3_delay(int bits)
Definition: SP.h:51
int ME4_stub_num() const
Definition: SP.h:78
unsigned long pt_LUT_addr
Definition: SP.h:117
int ME2_delay() const
Definition: SP.h:81
int me1_CSC_ID
Definition: SP.h:104
int Format_Errors() const
Definition: SP.h:85
int me1_stub_num
Definition: SP.h:105
int Eta_GMT() const
Definition: SP.h:68
void set_pt_LUT_addr(unsigned long bits)
Definition: SP.h:53
int C() const
Definition: SP.h:58
int pt_GMT
Definition: SP.h:102
void set_me1_CSC_ID(int bits)
Definition: SP.h:40
int ME2_stub_num() const
Definition: SP.h:74
void set_me1_subsector(int bits)
Definition: SP.h:39
unsigned long Pt_LUT_addr() const
Definition: SP.h:84
int HL() const
Definition: SP.h:57
int me2_stub_num
Definition: SP.h:107
std::vector< SP > SPCollection
Definition: SP.h:124
int SE() const
Definition: SP.h:62
int Quality_GMT() const
Definition: SP.h:64
void set_quality_GMT(int bits)
Definition: SP.h:33
void add_format_error()
Definition: SP.h:54
void set_phi_full(int bits)
Definition: SP.h:28
void set_mode(int bits)
Definition: SP.h:36