CMS 3D CMS Logo

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 
17  evt_lgth(-99), crc16(-99), evt_stat(-99), tts(-99), c(-99),
18  f(-99), t(-99), r(-99), format_errors(0), dataword(-99)
19  {};
20 
21  virtual ~AMC13Trailer() {};
22 
23  void set_evt_lgth(int bits) { evt_lgth = bits; }
24  void set_crc16(int bits) { crc16 = bits; }
25  void set_evt_stat(int bits) { evt_stat = bits; }
26  void set_tts(int bits) { tts = bits; }
27  void set_c(int bits) { c = bits; }
28  void set_f(int bits) { f = bits; }
29  void set_t(int bits) { t = bits; }
30  void set_r(int bits) { r = bits; }
32  void set_dataword(uint64_t bits) { dataword = bits; }
33 
34  int Evt_lgth() const { return evt_lgth; }
35  int CRC16() const { return crc16; }
36  int Evt_stat() const { return evt_stat; }
37  int TTS() const { return tts; }
38  int C() const { return c; }
39  int F() const { return f; }
40  int T() const { return t; }
41  int R() const { return r; }
42  int Format_errors() const { return format_errors; }
43  uint64_t Dataword() const { return dataword; }
44 
45  private:
46  int evt_lgth;
47  int crc16;
48  int evt_stat;
49  int tts;
50  int c;
51  int f;
52  int t;
53  int r;
56 
57  }; // End class AMC13Trailer
58  } // End namespace emtf
59 } // End namespace l1t
60 
61 #endif /* define __l1t_emtf_AMC13Trailer_h__ */
void set_dataword(uint64_t bits)
Definition: AMC13Trailer.h:32
void set_evt_lgth(int bits)
Definition: AMC13Trailer.h:23
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
delete x;
Definition: CaloConfig.h:22
void set_tts(int bits)
Definition: AMC13Trailer.h:26
void set_f(int bits)
Definition: AMC13Trailer.h:28
void set_crc16(int bits)
Definition: AMC13Trailer.h:24
int Format_errors() const
Definition: AMC13Trailer.h:42
void set_t(int bits)
Definition: AMC13Trailer.h:29
void set_evt_stat(int bits)
Definition: AMC13Trailer.h:25
uint64_t Dataword() const
Definition: AMC13Trailer.h:43
void set_c(int bits)
Definition: AMC13Trailer.h:27
unsigned long long uint64_t
Definition: Time.h:15
void set_r(int bits)
Definition: AMC13Trailer.h:30