CMS 3D CMS Logo

MTF7Trailer.h
Go to the documentation of this file.
1 // Class for AMC to AMC13 Trailer
2 
3 #ifndef __l1t_emtf_MTF7Trailer_h__
4 #define __l1t_emtf_MTF7Trailer_h__
5 
6 #include <vector>
7 #include <cstdint>
8 
9 namespace l1t {
10  namespace emtf {
11  class MTF7Trailer {
12  public:
13  explicit MTF7Trailer(uint64_t dataword);
14 
15  MTF7Trailer() : crc_32(-99), lv1_id(-99), data_length(-99), format_errors(0), dataword(-99){};
16 
17  virtual ~MTF7Trailer(){};
18 
19  void set_crc_32(int bits) { crc_32 = bits; }
20  void set_lv1_id(int bits) { lv1_id = bits; }
24 
25  int CRC_32() const { return crc_32; }
26  int LV1_id() const { return lv1_id; }
27  int Data_length() const { return data_length; }
28  int Format_errors() const { return format_errors; }
29  uint64_t Dataword() const { return dataword; }
30 
31  private:
32  int crc_32;
33  int lv1_id;
37 
38  }; // End class MTF7Trailer
39  } // End namespace emtf
40 } // End namespace l1t
41 
42 #endif /* define __l1t_emtf_MTF7Trailer_h__ */
int Format_errors() const
Definition: MTF7Trailer.h:28
void set_data_length(int bits)
Definition: MTF7Trailer.h:21
uint64_t Dataword() const
Definition: MTF7Trailer.h:29
void set_dataword(uint64_t bits)
Definition: MTF7Trailer.h:23
constexpr uint32_t bits
Definition: gpuClustering.h:23
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
void set_crc_32(int bits)
Definition: MTF7Trailer.h:19
void set_lv1_id(int bits)
Definition: MTF7Trailer.h:20
unsigned long long uint64_t
Definition: Time.h:13
int Data_length() const
Definition: MTF7Trailer.h:27