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), data_length(-99), user_id(-99), dataword(-99)
19  {};
20 
21  // Fill constructor
22  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) :
23  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), data_length(int_data_length), user_id(int_user_id), dataword(-99)
24  {};
25 
26  virtual ~MTF7Header() {};
27 
28  void set_amc_number(int bits) { amc_number = bits; };
29  void set_bx_id(int bits) { bx_id = bits; };
31  void set_board_id(int bits) { board_id = bits; };
32  void set_lv1_id(int bits) { lv1_id = bits; };
34  void set_user_id(int bits) { user_id = bits; };
35  void set_dataword(uint64_t bits) { dataword = bits; };
36 
37  const int AMC_number() const { return amc_number ; };
38  const int BX_id() const { return bx_id ; };
39  const int Orbit_number() const { return orbit_number ; };
40  const int Board_id() const { return board_id ; };
41  const int LV1_id() const { return lv1_id ; };
42  const int Data_length() const { return data_length ; };
43  const int User_id() const { return user_id ; };
44  const uint64_t Dataword() const { return dataword; };
45 
46  private:
47  int amc_number;
48  int bx_id;
50  int board_id;
51  int lv1_id;
53  int user_id;
55 
56  }; // End class MTF7Header
57  } // End namespace emtf
58 } // End namespace l1t
59 
60 #endif /* define __l1t_emtf_MTF7Header_h__ */
const int Data_length() const
Definition: MTF7Header.h:42
void set_lv1_id(int bits)
Definition: MTF7Header.h:32
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:30
void set_amc_number(int bits)
Definition: MTF7Header.h:28
void set_data_length(int bits)
Definition: MTF7Header.h:33
void set_bx_id(int bits)
Definition: MTF7Header.h:29
void set_board_id(int bits)
Definition: MTF7Header.h:31
const int AMC_number() const
Definition: MTF7Header.h:37
const uint64_t Dataword() const
Definition: MTF7Header.h:44
void set_user_id(int bits)
Definition: MTF7Header.h:34
void set_dataword(uint64_t bits)
Definition: MTF7Header.h:35
const int LV1_id() const
Definition: MTF7Header.h:41
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:22
unsigned long long uint64_t
Definition: Time.h:15
const int Orbit_number() const
Definition: MTF7Header.h:39
const int User_id() const
Definition: MTF7Header.h:43
const int BX_id() const
Definition: MTF7Header.h:38
const int Board_id() const
Definition: MTF7Header.h:40
virtual ~MTF7Header()
Definition: MTF7Header.h:26