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