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__ */
l1t::emtf::EventTrailer::yy
int yy
Definition: EventTrailer.h:78
l1t::emtf::EventTrailer::dd
int dd
Definition: EventTrailer.h:80
l1t::emtf::EventTrailer::set_sp_padr
void set_sp_padr(int bits)
Definition: EventTrailer.h:46
l1t::emtf::EventTrailer::bb
int bb
Definition: EventTrailer.h:85
l1t::emtf::EventTrailer::CRC22
int CRC22() const
Definition: EventTrailer.h:52
l1t::emtf::EventTrailer::set_l1a
void set_l1a(int bits)
Definition: EventTrailer.h:40
l1t::emtf::EventTrailer::set_mm
void set_mm(int bits)
Definition: EventTrailer.h:42
l1t::emtf::EventTrailer::set_ddcsr_bid
void set_ddcsr_bid(int bits)
Definition: EventTrailer.h:37
l1t::emtf::EventTrailer::ddcsr_lf
int ddcsr_lf
Definition: EventTrailer.h:75
l1t::emtf::EventTrailer::SPCSR_scc
int SPCSR_scc() const
Definition: EventTrailer.h:57
l1t::emtf::EventTrailer::set_hp
void set_hp(int bits)
Definition: EventTrailer.h:36
l1t::emtf::EventTrailer::mm
int mm
Definition: EventTrailer.h:79
l1t::emtf::EventTrailer::lfff
int lfff
Definition: EventTrailer.h:84
l1t::emtf::EventTrailer::LFFF
int LFFF() const
Definition: EventTrailer.h:65
emtf
Definition: Event.h:15
l1t::emtf::EventTrailer::lp
int lp
Definition: EventTrailer.h:72
l1t::emtf::EventTrailer::ddcsr_bid
int ddcsr_bid
Definition: EventTrailer.h:74
l1t::emtf::EventTrailer::LP
int LP() const
Definition: EventTrailer.h:53
l1t::emtf::EventTrailer::DDCRC_bid
int DDCRC_bid() const
Definition: EventTrailer.h:55
l1t::emtf::EventTrailer::SP_padr
int SP_padr() const
Definition: EventTrailer.h:64
l1t::emtf::EventTrailer::DD
int DD() const
Definition: EventTrailer.h:61
l1t::emtf::EventTrailer::HP
int HP() const
Definition: EventTrailer.h:54
l1t::emtf::EventTrailer::BB
int BB() const
Definition: EventTrailer.h:66
l1t::emtf::EventTrailer::sp_ladr
int sp_ladr
Definition: EventTrailer.h:81
l1t::emtf::EventTrailer::set_ddcsr_lf
void set_ddcsr_lf(int bits)
Definition: EventTrailer.h:38
l1t::emtf::EventTrailer::MM
int MM() const
Definition: EventTrailer.h:60
l1t::emtf::EventTrailer::Format_errors
int Format_errors() const
Definition: EventTrailer.h:67
l1t::emtf::EventTrailer::set_crc22
void set_crc22(int bits)
Definition: EventTrailer.h:34
l1t::emtf::EventTrailer
Definition: EventTrailer.h:9
l1t
delete x;
Definition: CaloConfig.h:22
l1t::emtf::EventTrailer::YY
int YY() const
Definition: EventTrailer.h:59
l1t::emtf::EventTrailer::sp_padr
int sp_padr
Definition: EventTrailer.h:83
l1t::emtf::EventTrailer::Dataword
uint64_t Dataword() const
Definition: EventTrailer.h:68
l1t::emtf::EventTrailer::set_bb
void set_bb(int bits)
Definition: EventTrailer.h:48
l1t::emtf::EventTrailer::set_dataword
void set_dataword(uint64_t bits)
Definition: EventTrailer.h:50
l1t::emtf::EventTrailer::set_lfff
void set_lfff(int bits)
Definition: EventTrailer.h:47
l1t::emtf::EventTrailer::DDCRC_lf
int DDCRC_lf() const
Definition: EventTrailer.h:56
l1t::emtf::EventTrailer::set_dd
void set_dd(int bits)
Definition: EventTrailer.h:43
l1t::emtf::EventTrailer::set_lp
void set_lp(int bits)
Definition: EventTrailer.h:35
l1t::emtf::EventTrailer::add_format_error
void add_format_error()
Definition: EventTrailer.h:49
l1t::emtf::EventTrailer::SP_ladr
int SP_ladr() const
Definition: EventTrailer.h:62
bits
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: EventSelector-behavior.doc:35
l1t::emtf::EventTrailer::SP_ersv
int SP_ersv() const
Definition: EventTrailer.h:63
l1t::emtf::EventTrailer::crc22
int crc22
Definition: EventTrailer.h:71
l1t::emtf::EventTrailer::l1a
int l1a
Definition: EventTrailer.h:77
l1t::emtf::EventTrailer::EventTrailer
EventTrailer()
Definition: EventTrailer.h:13
l1t::emtf::EventTrailer::hp
int hp
Definition: EventTrailer.h:73
l1t::emtf::EventTrailer::set_yy
void set_yy(int bits)
Definition: EventTrailer.h:41
l1t::emtf::EventTrailer::L1a
int L1a() const
Definition: EventTrailer.h:58
l1t::emtf::EventTrailer::set_sp_ladr
void set_sp_ladr(int bits)
Definition: EventTrailer.h:44
l1t::emtf::EventTrailer::set_sp_ersv
void set_sp_ersv(int bits)
Definition: EventTrailer.h:45
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::emtf::EventTrailer::~EventTrailer
virtual ~EventTrailer()
Definition: EventTrailer.h:32
l1t::emtf::EventTrailer::format_errors
int format_errors
Definition: EventTrailer.h:86
l1t::emtf::EventTrailer::spcsr_scc
int spcsr_scc
Definition: EventTrailer.h:76
l1t::emtf::EventTrailer::set_spcsr_scc
void set_spcsr_scc(int bits)
Definition: EventTrailer.h:39
l1t::emtf::EventTrailer::dataword
uint64_t dataword
Definition: EventTrailer.h:87
l1t::emtf::EventTrailer::sp_ersv
int sp_ersv
Definition: EventTrailer.h:82