CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MTF7Header.h
Go to the documentation of this file.
1 // Class for AMC to AMC13 Header
2 
3 #ifndef __l1t_emtf_MTF7Header_h__
4 #define __l1t_emtf_MTF7Header_h__
5 
6 #include <vector>
7 #include <boost/cstdint.hpp>
8 
9 namespace l1t {
10  namespace emtf {
11  class MTF7Header {
12 
13  public:
14  explicit MTF7Header(uint64_t dataword);
15 
16  // Empty constructor
18  amc_number(-99), bx_id(-99), orbit_number(-99), board_id(-99), lv1_id(-99),
19  data_length(-99), user_id(-99), format_errors(0), dataword(-99)
20  {};
21 
22  // Fill constructor
23  MTF7Header(int int_amc_number, int int_bx_id, int int_orbit_number, int int_board_id, int int_lv1_id,
24  int int_data_length, int int_user_id) :
25  amc_number(int_amc_number), bx_id(int_bx_id), orbit_number(int_orbit_number), board_id(int_board_id), lv1_id(int_lv1_id),
26  data_length(int_data_length), user_id(int_user_id), format_errors(0), dataword(-99)
27  {};
28 
29  virtual ~MTF7Header() {};
30 
32  void set_bx_id(int bits) { bx_id = bits; }
34  void set_board_id(int bits) { board_id = bits; }
35  void set_lv1_id(int bits) { lv1_id = bits; }
37  void set_user_id(int bits) { user_id = bits; }
39  void set_dataword(uint64_t bits) { dataword = bits; }
40 
41  int AMC_number() const { return amc_number; }
42  int BX_id() const { return bx_id; }
43  int Orbit_number() const { return orbit_number; }
44  int Board_id() const { return board_id; }
45  int LV1_id() const { return lv1_id; }
46  int Data_length() const { return data_length; }
47  int User_id() const { return user_id; }
48  int Format_Errors() const { return format_errors; }
49  uint64_t Dataword() const { return dataword; }
50 
51  private:
53  int bx_id;
55  int board_id;
56  int lv1_id;
58  int user_id;
61 
62  }; // End class MTF7Header
63  } // End namespace emtf
64 } // End namespace l1t
65 
66 #endif /* define __l1t_emtf_MTF7Header_h__ */
void set_lv1_id(int bits)
Definition: MTF7Header.h:35
int Data_length() const
Definition: MTF7Header.h:46
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
void set_orbit_number(int bits)
Definition: MTF7Header.h:33
void set_amc_number(int bits)
Definition: MTF7Header.h:31
int User_id() const
Definition: MTF7Header.h:47
void set_data_length(int bits)
Definition: MTF7Header.h:36
void set_bx_id(int bits)
Definition: MTF7Header.h:32
void set_board_id(int bits)
Definition: MTF7Header.h:34
void set_user_id(int bits)
Definition: MTF7Header.h:37
uint64_t Dataword() const
Definition: MTF7Header.h:49
void set_dataword(uint64_t bits)
Definition: MTF7Header.h:39
MTF7Header(int int_amc_number, int int_bx_id, int int_orbit_number, int int_board_id, int int_lv1_id, int int_data_length, int int_user_id)
Definition: MTF7Header.h:23
unsigned long long uint64_t
Definition: Time.h:15
int Format_Errors() const
Definition: MTF7Header.h:48
int Orbit_number() const
Definition: MTF7Header.h:43
int BX_id() const
Definition: MTF7Header.h:42
int LV1_id() const
Definition: MTF7Header.h:45
int Board_id() const
Definition: MTF7Header.h:44
int AMC_number() const
Definition: MTF7Header.h:41
virtual ~MTF7Header()
Definition: MTF7Header.h:29