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