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  pt_lut_address(-99), phi_full(-99), phi_GMT(-99), eta_GMT(-99), pt(-99), quality(-99), bx(-99), me4_ID(-99), me3_ID(-99), me2_ID(-99), me1_ID(-99), me4_TBIN(-99), me3_TBIN(-99), me2_TBIN(-99), me1_TBIN(-99), tbin_num(-99), hl(-99), c(-99), vc(-99), vt(-99), se(-99), bc0(-99), dataword(-99)
17  {};
18 
19  SP(int int_pt_lut_address, int int_phi_full, int int_phi_GMT, int int_eta_GMT, int int_pt, int int_quality, int int_bx, int int_me4_ID, int int_me3_ID, int int_me2_ID, int int_me1_ID, int int_me4_TBIN, int int_me3_TBIN, int int_me2_TBIN, int int_me1_TBIN, int int_TBIN_num, int int_hl, int int_c, int int_vc, int int_vt, int int_se, int int_bc0) :
20  pt_lut_address(int_pt_lut_address), phi_full(int_phi_full), phi_GMT(int_phi_GMT), eta_GMT(int_eta_GMT), pt(int_pt), quality(int_quality), bx(int_bx), me4_ID(int_me4_ID), me3_ID(int_me3_ID), me2_ID(int_me2_ID), me1_ID(int_me1_ID), me4_TBIN(int_me4_TBIN), me3_TBIN(int_me3_TBIN), me2_TBIN(int_me2_TBIN), me1_TBIN(int_me1_TBIN), tbin_num(int_TBIN_num), hl(int_hl), c(int_c), vc(int_vc), vt(int_vt), se(int_se), bc0(int_bc0), dataword(-99)
21  {};
22 
23  virtual ~SP() {};
24 
26  void set_phi_full (int bits) { phi_full = bits; };
27  void set_phi_GMT (int bits) { phi_GMT = bits; };
28  void set_eta_GMT (int bits) { eta_GMT = bits; };
29  void set_pt (int bits) { pt = bits; };
30  void set_quality (int bits) { quality = bits; };
31  void set_bx (int bits) { bx = bits; };
32  void set_me4_ID (int bits) { me4_ID = bits; };
33  void set_me3_ID (int bits) { me3_ID = bits; };
34  void set_me2_ID (int bits) { me2_ID = bits; };
35  void set_me1_ID (int bits) { me1_ID = bits; };
36  void set_me4_TBIN (int bits) { me4_TBIN = bits; };
37  void set_me3_TBIN (int bits) { me3_TBIN = bits; };
38  void set_me2_TBIN (int bits) { me2_TBIN = bits; };
39  void set_me1_TBIN (int bits) { me1_TBIN = bits; };
40  void set_TBIN_num (int bits) { tbin_num = bits; };
41  void set_hl (int bits) { hl = bits; };
42  void set_c (int bits) { c = bits; };
43  void set_vc (int bits) { vc = bits; };
44  void set_vt (int bits) { vt = bits; };
45  void set_se (int bits) { se = bits; };
46  void set_bc0 (int bits) { bc0 = bits; };
47  void set_dataword(uint64_t bits) { dataword = bits; };
48 
49  const int Pt_lut_address() const { return pt_lut_address; };
50  const int Phi_full() const { return phi_full ; };
51  const int Phi_GMT() const { return phi_GMT ; };
52  const int Eta_GMT() const { return eta_GMT ; };
53  const int Pt() const { return pt ; };
54  const int Quality() const { return quality ; };
55  const int BX() const { return bx ; };
56  const int ME4_ID() const { return me4_ID ; };
57  const int ME3_ID() const { return me3_ID ; };
58  const int ME2_ID() const { return me2_ID ; };
59  const int ME1_ID() const { return me1_ID ; };
60  const int ME4_TBIN() const { return me4_TBIN ; };
61  const int ME3_TBIN() const { return me3_TBIN ; };
62  const int ME2_TBIN() const { return me2_TBIN ; };
63  const int ME1_TBIN() const { return me1_TBIN ; };
64  const int TBIN_num() const { return tbin_num ; };
65  const int HL() const { return hl ; };
66  const int C() const { return c ; };
67  const int VC() const { return vc ; };
68  const int VT() const { return vt ; };
69  const int SE() const { return se ; };
70  const int BC0() const { return bc0 ; };
71  const uint64_t Dataword() const { return dataword; };
72 
73 
74  private:
75  int pt_lut_address;
76  int phi_full ;
77  int phi_GMT ;
78  int eta_GMT ;
79  int pt ;
80  int quality ;
81  int bx ;
82  int me4_ID ;
83  int me3_ID ;
84  int me2_ID ;
85  int me1_ID ;
86  int me4_TBIN ;
87  int me3_TBIN ;
88  int me2_TBIN ;
89  int me1_TBIN ;
90  int tbin_num ;
91  int hl ;
92  int c ;
93  int vc ;
94  int vt ;
95  int se ;
96  int bc0 ;
98 
99  }; // End of class SP
100 
101  // Define a vector of SP
102  typedef std::vector<SP> SPCollection;
103 
104  } // End of namespace emtf
105 } // End of namespace l1t
106 
107 #endif /* define __l1t_emtf_SP_h__ */
int c
Definition: SP.h:92
const int VT() const
Definition: SP.h:68
void set_vt(int bits)
Definition: SP.h:44
uint64_t dataword
Definition: SP.h:97
int pt_lut_address
Definition: SP.h:71
int vc
Definition: SP.h:93
void set_pt_lut_address(int bits)
Definition: SP.h:25
int bc0
Definition: SP.h:96
int me2_ID
Definition: SP.h:84
const uint64_t Dataword() const
Definition: SP.h:71
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
const int BC0() const
Definition: SP.h:70
int se
Definition: SP.h:95
void set_bx(int bits)
Definition: SP.h:31
void set_dataword(uint64_t bits)
Definition: SP.h:47
int hl
Definition: SP.h:91
int quality
Definition: SP.h:80
int vt
Definition: SP.h:94
const int TBIN_num() const
Definition: SP.h:64
int me4_ID
Definition: SP.h:82
const int ME4_ID() const
Definition: SP.h:56
const int BX() const
Definition: SP.h:55
const int ME3_ID() const
Definition: SP.h:57
void set_me1_ID(int bits)
Definition: SP.h:35
void set_me2_ID(int bits)
Definition: SP.h:34
void set_me4_TBIN(int bits)
Definition: SP.h:36
void set_se(int bits)
Definition: SP.h:45
const int ME1_ID() const
Definition: SP.h:59
int phi_GMT
Definition: SP.h:77
void set_phi_GMT(int bits)
Definition: SP.h:27
void set_me3_ID(int bits)
Definition: SP.h:33
void set_hl(int bits)
Definition: SP.h:41
const int ME2_ID() const
Definition: SP.h:58
const int VC() const
Definition: SP.h:67
virtual ~SP()
Definition: SP.h:23
const int Phi_full() const
Definition: SP.h:50
void set_me3_TBIN(int bits)
Definition: SP.h:37
void set_me4_ID(int bits)
Definition: SP.h:32
int me4_TBIN
Definition: SP.h:86
int me3_TBIN
Definition: SP.h:87
void set_bc0(int bits)
Definition: SP.h:46
void set_pt(int bits)
Definition: SP.h:29
void set_eta_GMT(int bits)
Definition: SP.h:28
SP()
Definition: SP.h:15
void set_me2_TBIN(int bits)
Definition: SP.h:38
void set_c(int bits)
Definition: SP.h:42
int me1_ID
Definition: SP.h:85
void set_vc(int bits)
Definition: SP.h:43
const int ME4_TBIN() const
Definition: SP.h:60
int bx
Definition: SP.h:81
const int ME2_TBIN() const
Definition: SP.h:62
const int C() const
Definition: SP.h:66
int phi_full
Definition: SP.h:76
void set_quality(int bits)
Definition: SP.h:30
const int Phi_GMT() const
Definition: SP.h:51
int me3_ID
Definition: SP.h:83
unsigned long long uint64_t
Definition: Time.h:15
int eta_GMT
Definition: SP.h:78
const int Pt() const
Definition: SP.h:53
void set_TBIN_num(int bits)
Definition: SP.h:40
const int Eta_GMT() const
Definition: SP.h:52
SP(int int_pt_lut_address, int int_phi_full, int int_phi_GMT, int int_eta_GMT, int int_pt, int int_quality, int int_bx, int int_me4_ID, int int_me3_ID, int int_me2_ID, int int_me1_ID, int int_me4_TBIN, int int_me3_TBIN, int int_me2_TBIN, int int_me1_TBIN, int int_TBIN_num, int int_hl, int int_c, int int_vc, int int_vt, int int_se, int int_bc0)
Definition: SP.h:19
const int ME1_TBIN() const
Definition: SP.h:63
int me1_TBIN
Definition: SP.h:89
int pt
Definition: SP.h:79
const int SE() const
Definition: SP.h:69
const int Quality() const
Definition: SP.h:54
int tbin_num
Definition: SP.h:90
const int Pt_lut_address() const
Definition: SP.h:49
void set_me1_TBIN(int bits)
Definition: SP.h:39
std::vector< SP > SPCollection
Definition: SP.h:102
void set_phi_full(int bits)
Definition: SP.h:26
int me2_TBIN
Definition: SP.h:88
const int HL() const
Definition: SP.h:65
const int ME3_TBIN() const
Definition: SP.h:61