CMS 3D CMS Logo

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