test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AMC13Trailer.h
Go to the documentation of this file.
1 // Class for AMC13 Trailer
2 
3 #ifndef __l1t_emtf_AMC13Trailer_h__
4 #define __l1t_emtf_AMC13Trailer_h__
5 
6 #include <vector>
7 #include <boost/cstdint.hpp>
8 
9 namespace l1t {
10  namespace emtf {
11  class AMC13Trailer {
12 
13  public:
14  explicit AMC13Trailer(uint64_t dataword);
15 
16  // Empty constructor
18  evt_lgth(-99), crc16(-99), evt_stat(-99), tts(-99), c(-99), f(-99), t(-99), r(-99), format_errors(0), dataword(-99)
19  {};
20 
21  // Fill constructor
22  AMC13Trailer(int int_evt_lgth, int int_crc16, int int_evt_stat, int int_tts, int int_c, int int_f, int int_t, int int_r) :
23  evt_lgth(int_evt_lgth), crc16(int_crc16), evt_stat(int_evt_stat), tts(int_tts), c(int_c), f(int_f), t(int_t), r(int_r), format_errors(0), dataword(-99)
24  {};
25 
26  virtual ~AMC13Trailer() {};
27 
28  void set_evt_lgth(int bits) { evt_lgth = bits; }
29  void set_crc16(int bits) { crc16 = bits; }
30  void set_evt_stat(int bits) { evt_stat = bits; }
31  void set_tts(int bits) { tts = bits; }
32  void set_c(int bits) { c = bits; }
33  void set_f(int bits) { f = bits; }
34  void set_t(int bits) { t = bits; }
35  void set_r(int bits) { r = bits; }
37  void set_dataword(uint64_t bits) { dataword = bits; }
38 
39  int Evt_lgth() const { return evt_lgth; }
40  int CRC16() const { return crc16; }
41  int Evt_stat() const { return evt_stat; }
42  int TTS() const { return tts; }
43  int C() const { return c; }
44  int F() const { return f; }
45  int T() const { return t; }
46  int R() const { return r; }
47  int Format_Errors() const { return format_errors; }
48  uint64_t Dataword() const { return dataword; }
49 
50  private:
51  int evt_lgth;
52  int crc16;
53  int evt_stat;
54  int tts;
55  int c;
56  int f;
57  int t;
58  int r;
61 
62  }; // End class AMC13Trailer
63  } // End namespace emtf
64 } // End namespace l1t
65 
66 #endif /* define __l1t_emtf_AMC13Trailer_h__ */
void set_dataword(uint64_t bits)
Definition: AMC13Trailer.h:37
int Format_Errors() const
Definition: AMC13Trailer.h:47
void set_evt_lgth(int bits)
Definition: AMC13Trailer.h:28
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
AMC13Trailer(int int_evt_lgth, int int_crc16, int int_evt_stat, int int_tts, int int_c, int int_f, int int_t, int int_r)
Definition: AMC13Trailer.h:22
void set_tts(int bits)
Definition: AMC13Trailer.h:31
void set_f(int bits)
Definition: AMC13Trailer.h:33
void set_crc16(int bits)
Definition: AMC13Trailer.h:29
void set_t(int bits)
Definition: AMC13Trailer.h:34
void set_evt_stat(int bits)
Definition: AMC13Trailer.h:30
uint64_t Dataword() const
Definition: AMC13Trailer.h:48
void set_c(int bits)
Definition: AMC13Trailer.h:32
unsigned long long uint64_t
Definition: Time.h:15
void set_r(int bits)
Definition: AMC13Trailer.h:35