CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  EventTrailer(int int_crc22, int int_lp, int int_hp, int int_ddcsr_bid, int int_ddcsr_lf, int int_spcsr_scc, int int_l1a, int int_yy,
21  int int_mm, int int_dd, int int_sp_ladr, int int_sp_ersv, int int_sp_padr, int int_lfff, int int_bb) :
22  crc22(int_crc22), lp(int_lp), hp(int_hp), ddcsr_bid(int_ddcsr_bid), ddcsr_lf(int_ddcsr_lf), spcsr_scc(int_spcsr_scc), l1a(int_l1a), yy(int_yy),
23  mm(int_mm), dd(int_dd), sp_ladr(int_sp_ladr), sp_ersv(int_sp_ersv), sp_padr(int_sp_padr), lfff(int_lfff), bb(int_bb), format_errors(0), dataword(-99)
24  {};
25 
26  virtual ~EventTrailer() {};
27 
28  void set_crc22(int bits) { crc22 = bits; }
29  void set_lp(int bits) { lp = bits; }
30  void set_hp(int bits) { hp = bits; }
31  void set_ddcsr_bid(int bits) { ddcsr_bid = bits; }
32  void set_ddcsr_lf(int bits) { ddcsr_lf = bits; }
33  void set_spcsr_scc(int bits) { spcsr_scc = bits; }
34  void set_l1a(int bits) { l1a = bits; }
35  void set_yy(int bits) { yy = bits; }
36  void set_mm(int bits) { mm = bits; }
37  void set_dd(int bits) { dd = bits; }
38  void set_sp_ladr(int bits) { sp_ladr = bits; }
39  void set_sp_ersv(int bits) { sp_ersv = bits; }
40  void set_sp_padr(int bits) { sp_padr = bits; }
41  void set_lfff(int bits) { lfff = bits; }
42  void set_bb(int bits) { bb = bits; }
44  void set_dataword(uint64_t bits) { dataword = bits; }
45 
46  int CRC22() const { return crc22; }
47  int LP() const { return lp; }
48  int HP() const { return hp; }
49  int DDCRC_bid() const { return ddcsr_bid; }
50  int DDCRC_lf() const { return ddcsr_lf; }
51  int SPCSR_scc() const { return spcsr_scc; }
52  int L1a() const { return l1a; }
53  int YY() const { return yy; }
54  int MM() const { return mm; }
55  int DD() const { return dd; }
56  int SP_ladr() const { return sp_ladr; }
57  int SP_ersv() const { return sp_ersv; }
58  int SP_padr() const { return sp_padr; }
59  int LFFF() const { return lfff; }
60  int BB() const { return bb; }
61  int Format_Errors() const { return format_errors; }
62  uint64_t Dataword() const { return dataword; }
63 
64  private:
65  int crc22;
66  int lp;
67  int hp;
68  int ddcsr_bid;
69  int ddcsr_lf;
70  int spcsr_scc;
71  int l1a;
72  int yy;
73  int mm;
74  int dd;
75  int sp_ladr;
76  int sp_ersv;
77  int sp_padr;
78  int lfff;
79  int bb;
82 
83  }; // End of class EventTrailer
84  } // End of namespace emtf
85 } // End of namespace l1t
86 
87 #endif /* define __l1t_emtf_EventTrailer_h__ */
EventTrailer(int int_crc22, int int_lp, int int_hp, int int_ddcsr_bid, int int_ddcsr_lf, int int_spcsr_scc, int int_l1a, int int_yy, int int_mm, int int_dd, int int_sp_ladr, int int_sp_ersv, int int_sp_padr, int int_lfff, int int_bb)
Definition: EventTrailer.h:20
void set_spcsr_scc(int bits)
Definition: EventTrailer.h:33
void set_mm(int bits)
Definition: EventTrailer.h:36
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:29
void set_ddcsr_lf(int bits)
Definition: EventTrailer.h:32
int SPCSR_scc() const
Definition: EventTrailer.h:51
int DDCRC_bid() const
Definition: EventTrailer.h:49
void set_ddcsr_bid(int bits)
Definition: EventTrailer.h:31
void set_yy(int bits)
Definition: EventTrailer.h:35
void set_hp(int bits)
Definition: EventTrailer.h:30
int Format_Errors() const
Definition: EventTrailer.h:61
unsigned long long uint64_t
Definition: Time.h:15
void set_sp_ladr(int bits)
Definition: EventTrailer.h:38
void set_sp_padr(int bits)
Definition: EventTrailer.h:40
void set_crc22(int bits)
Definition: EventTrailer.h:28
void set_bb(int bits)
Definition: EventTrailer.h:42
void set_dataword(uint64_t bits)
Definition: EventTrailer.h:44
void set_lfff(int bits)
Definition: EventTrailer.h:41
void set_sp_ersv(int bits)
Definition: EventTrailer.h:39
void set_l1a(int bits)
Definition: EventTrailer.h:34
void set_dd(int bits)
Definition: EventTrailer.h:37
uint64_t Dataword() const
Definition: EventTrailer.h:62