CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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), 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), 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; };
31  void set_dataword(uint64_t bits) { dataword = bits; };
32 
33  const int CRC_32() const { return crc_32; };
34  const int LV1_id() const { return lv1_id; };
35  const int Data_length() const { return data_length;};
36  const uint64_t Dataword() const { return dataword; };
37 
38  private:
39  int crc_32;
40  int lv1_id;
43 
44  }; // End class MTF7Trailer
45  } // End namespace emtf
46 } // End namespace l1t
47 
48 #endif /* define __l1t_emtf_MTF7Trailer_h__ */
void set_data_length(int bits)
Definition: MTF7Trailer.h:30
void set_dataword(uint64_t bits)
Definition: MTF7Trailer.h:31
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_crc_32(int bits)
Definition: MTF7Trailer.h:28
void set_lv1_id(int bits)
Definition: MTF7Trailer.h:29
const int Data_length() const
Definition: MTF7Trailer.h:35
unsigned long long uint64_t
Definition: Time.h:15
const uint64_t Dataword() const
Definition: MTF7Trailer.h:36
MTF7Trailer(int int_crc_32, int int_lv1_id, int int_data_length)
Definition: MTF7Trailer.h:22
const int LV1_id() const
Definition: MTF7Trailer.h:34
const int CRC_32() const
Definition: MTF7Trailer.h:33