CMS 3D CMS Logo

EventTrailer.h
Go to the documentation of this file.
1 #include <cstdint>
2 // Class for Event Record Trailer
3 
4 #ifndef __l1t_emtf_EventTrailer_h__
5 #define __l1t_emtf_EventTrailer_h__
6 
7 namespace l1t {
8  namespace emtf {
9  class EventTrailer {
10  public:
11  explicit EventTrailer(uint64_t dataword);
12 
14  : crc22(-99),
15  lp(-99),
16  hp(-99),
17  ddcsr_bid(-99),
18  ddcsr_lf(-99),
19  spcsr_scc(-99),
20  l1a(-99),
21  yy(-99),
22  mm(-99),
23  dd(-99),
24  sp_ladr(-99),
25  sp_ersv(-99),
26  sp_padr(-99),
27  lfff(-99),
28  bb(-99),
29  format_errors(0),
30  dataword(-99){};
31 
32  virtual ~EventTrailer(){};
33 
34  void set_crc22(int bits) { crc22 = bits; }
35  void set_lp(int bits) { lp = bits; }
36  void set_hp(int bits) { hp = bits; }
37  void set_ddcsr_bid(int bits) { ddcsr_bid = bits; }
38  void set_ddcsr_lf(int bits) { ddcsr_lf = bits; }
39  void set_spcsr_scc(int bits) { spcsr_scc = bits; }
40  void set_l1a(int bits) { l1a = bits; }
41  void set_yy(int bits) { yy = bits; }
42  void set_mm(int bits) { mm = bits; }
43  void set_dd(int bits) { dd = bits; }
44  void set_sp_ladr(int bits) { sp_ladr = bits; }
45  void set_sp_ersv(int bits) { sp_ersv = bits; }
46  void set_sp_padr(int bits) { sp_padr = bits; }
47  void set_lfff(int bits) { lfff = bits; }
48  void set_bb(int bits) { bb = bits; }
51 
52  int CRC22() const { return crc22; }
53  int LP() const { return lp; }
54  int HP() const { return hp; }
55  int DDCRC_bid() const { return ddcsr_bid; }
56  int DDCRC_lf() const { return ddcsr_lf; }
57  int SPCSR_scc() const { return spcsr_scc; }
58  int L1a() const { return l1a; }
59  int YY() const { return yy; }
60  int MM() const { return mm; }
61  int DD() const { return dd; }
62  int SP_ladr() const { return sp_ladr; }
63  int SP_ersv() const { return sp_ersv; }
64  int SP_padr() const { return sp_padr; }
65  int LFFF() const { return lfff; }
66  int BB() const { return bb; }
67  int Format_errors() const { return format_errors; }
68  uint64_t Dataword() const { return dataword; }
69 
70  private:
71  int crc22;
72  int lp;
73  int hp;
74  int ddcsr_bid;
75  int ddcsr_lf;
76  int spcsr_scc;
77  int l1a;
78  int yy;
79  int mm;
80  int dd;
81  int sp_ladr;
82  int sp_ersv;
83  int sp_padr;
84  int lfff;
85  int bb;
88 
89  }; // End of class EventTrailer
90  } // End of namespace emtf
91 } // End of namespace l1t
92 
93 #endif /* define __l1t_emtf_EventTrailer_h__ */
void set_spcsr_scc(int bits)
Definition: EventTrailer.h:39
void set_mm(int bits)
Definition: EventTrailer.h:42
void set_lp(int bits)
Definition: EventTrailer.h:35
constexpr uint32_t bits
Definition: gpuClustering.h:25
void set_ddcsr_lf(int bits)
Definition: EventTrailer.h:38
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
uint64_t Dataword() const
Definition: EventTrailer.h:68
void set_ddcsr_bid(int bits)
Definition: EventTrailer.h:37
void set_yy(int bits)
Definition: EventTrailer.h:41
void set_hp(int bits)
Definition: EventTrailer.h:36
unsigned long long uint64_t
Definition: Time.h:13
void set_sp_ladr(int bits)
Definition: EventTrailer.h:44
int Format_errors() const
Definition: EventTrailer.h:67
void set_sp_padr(int bits)
Definition: EventTrailer.h:46
void set_crc22(int bits)
Definition: EventTrailer.h:34
void set_bb(int bits)
Definition: EventTrailer.h:48
void set_dataword(uint64_t bits)
Definition: EventTrailer.h:50
void set_lfff(int bits)
Definition: EventTrailer.h:47
void set_sp_ersv(int bits)
Definition: EventTrailer.h:45
void set_l1a(int bits)
Definition: EventTrailer.h:40
void set_dd(int bits)
Definition: EventTrailer.h:43