CMS 3D CMS Logo

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 <cstdint>
8 
9 namespace l1t {
10  namespace emtf {
11  class MTF7Header {
12  public:
13  explicit MTF7Header(uint64_t dataword);
14 
16  : amc_number(-99),
17  bx_id(-99),
18  orbit_number(-99),
19  board_id(-99),
20  lv1_id(-99),
21  data_length(-99),
22  user_id(-99),
23  format_errors(0),
24  dataword(-99){};
25 
26  virtual ~MTF7Header(){};
27 
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; }
37 
38  int AMC_number() const { return amc_number; }
39  int BX_id() const { return bx_id; }
40  int Orbit_number() const { return orbit_number; }
41  int Board_id() const { return board_id; }
42  int LV1_id() const { return lv1_id; }
43  int Data_length() const { return data_length; }
44  int User_id() const { return user_id; }
45  int Format_errors() const { return format_errors; }
46  uint64_t Dataword() const { return dataword; }
47 
48  private:
50  int bx_id;
52  int board_id;
53  int lv1_id;
55  int user_id;
58 
59  }; // End class MTF7Header
60  } // End namespace emtf
61 } // End namespace l1t
62 
63 #endif /* define __l1t_emtf_MTF7Header_h__ */
void set_lv1_id(int bits)
Definition: MTF7Header.h:32
int Data_length() const
Definition: MTF7Header.h:43
void set_orbit_number(int bits)
Definition: MTF7Header.h:30
constexpr uint32_t bits
Definition: gpuClustering.h:23
void set_amc_number(int bits)
Definition: MTF7Header.h:28
Definition: Event.h:15
int AMC_number() const
Definition: MTF7Header.h:38
delete x;
Definition: CaloConfig.h:22
int LV1_id() const
Definition: MTF7Header.h:42
int User_id() const
Definition: MTF7Header.h:44
void set_data_length(int bits)
Definition: MTF7Header.h:33
int BX_id() const
Definition: MTF7Header.h:39
void set_bx_id(int bits)
Definition: MTF7Header.h:29
void set_board_id(int bits)
Definition: MTF7Header.h:31
void set_user_id(int bits)
Definition: MTF7Header.h:34
void set_dataword(uint64_t bits)
Definition: MTF7Header.h:36
unsigned long long uint64_t
Definition: Time.h:13
int Orbit_number() const
Definition: MTF7Header.h:40
int Format_errors() const
Definition: MTF7Header.h:45
virtual ~MTF7Header()
Definition: MTF7Header.h:26
int Board_id() const
Definition: MTF7Header.h:41
uint64_t Dataword() const
Definition: MTF7Header.h:46