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 
17  crc_32(-99), lv1_id(-99), data_length(-99), format_errors(0), dataword(-99)
18  {};
19 
20  virtual ~MTF7Trailer() {};
21 
22  void set_crc_32(int bits) { crc_32 = bits; }
23  void set_lv1_id(int bits) { lv1_id = bits; }
26  void set_dataword(uint64_t bits) { dataword = bits; }
27 
28  int CRC_32() const { return crc_32; }
29  int LV1_id() const { return lv1_id; }
30  int Data_length() const { return data_length; }
31  int Format_errors() const { return format_errors; }
32  uint64_t Dataword() const { return dataword; }
33 
34  private:
35  int crc_32;
36  int lv1_id;
40 
41  }; // End class MTF7Trailer
42  } // End namespace emtf
43 } // End namespace l1t
44 
45 #endif /* define __l1t_emtf_MTF7Trailer_h__ */
void set_data_length(int bits)
Definition: MTF7Trailer.h:24
int CRC_32() const
Definition: MTF7Trailer.h:28
void set_dataword(uint64_t bits)
Definition: MTF7Trailer.h:26
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:32
delete x;
Definition: CaloConfig.h:22
void set_crc_32(int bits)
Definition: MTF7Trailer.h:22
void set_lv1_id(int bits)
Definition: MTF7Trailer.h:23
int LV1_id() const
Definition: MTF7Trailer.h:29
int Format_errors() const
Definition: MTF7Trailer.h:31
unsigned long long uint64_t
Definition: Time.h:15
int Data_length() const
Definition: MTF7Trailer.h:30