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 <boost/cstdint.hpp>
8 
9 namespace l1t {
10  namespace emtf {
11  class MTF7Trailer {
12 
13  public:
14  explicit MTF7Trailer(uint64_t dataword);
15 
16  // Empty constructor
18  crc_32(-99), lv1_id(-99), data_length(-99), format_errors(0), dataword(-99)
19  {};
20 
21  // Fill constructor
22  MTF7Trailer(int int_crc_32, int int_lv1_id, int int_data_length) :
23  crc_32(int_crc_32), lv1_id(int_lv1_id), data_length(int_data_length), format_errors(0), dataword(-99)
24  {};
25 
26  virtual ~MTF7Trailer() {};
27 
28  void set_crc_32(int bits) { crc_32 = bits; }
29  void set_lv1_id(int bits) { lv1_id = bits; }
32  void set_dataword(uint64_t bits) { dataword = bits; }
33 
34  int CRC_32() const { return crc_32; }
35  int LV1_id() const { return lv1_id; }
36  int Data_length() const { return data_length; }
37  int Format_Errors() const { return format_errors; }
38  uint64_t Dataword() const { return dataword; }
39 
40  private:
41  int crc_32;
42  int lv1_id;
46 
47  }; // End class MTF7Trailer
48  } // End namespace emtf
49 } // End namespace l1t
50 
51 #endif /* define __l1t_emtf_MTF7Trailer_h__ */
void set_data_length(int bits)
Definition: MTF7Trailer.h:30
int CRC_32() const
Definition: MTF7Trailer.h:34
void set_dataword(uint64_t bits)
Definition: MTF7Trailer.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
Definition: Event.h:15
uint64_t Dataword() const
Definition: MTF7Trailer.h:38
delete x;
Definition: CaloConfig.h:22
void set_crc_32(int bits)
Definition: MTF7Trailer.h:28
int Format_Errors() const
Definition: MTF7Trailer.h:37
void set_lv1_id(int bits)
Definition: MTF7Trailer.h:29
int LV1_id() const
Definition: MTF7Trailer.h:35
unsigned long long uint64_t
Definition: Time.h:15
MTF7Trailer(int int_crc_32, int int_lv1_id, int int_data_length)
Definition: MTF7Trailer.h:22
int Data_length() const
Definition: MTF7Trailer.h:36