CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::emtf::EventHeader Class Reference

#include <EventHeader.h>

Public Member Functions

void add_format_error ()
 
int BSY () const
 
int CPPF () const
 
int CPPF_CRC () const
 
uint64_t Dataword () const
 
int DDM () const
 
int Endcap () const
 
 EventHeader ()
 
 EventHeader (uint64_t dataword)
 
int Format_errors () const
 
int GEM () const
 
int GEM_CRC () const
 
int L1A () const
 
int L1A_BXN () const
 
int ME1a () const
 
int ME1b () const
 
int ME2 () const
 
int ME3 () const
 
int ME4 () const
 
int OSY () const
 
int Rdy () const
 
int RPCa () const
 
int Sector () const
 
void set_bsy (int bits)
 
void set_cppf (int bits)
 
void set_cppf_crc (int bits)
 
void set_dataword (uint64_t bits)
 
void set_ddm (int bits)
 
void set_endcap (int bits)
 
void set_gem (int bits)
 
void set_gem_crc (int bits)
 
void set_l1a (int bits)
 
void set_l1a_BXN (int bits)
 
void set_me1a (int bits)
 
void set_me1b (int bits)
 
void set_me2 (int bits)
 
void set_me3 (int bits)
 
void set_me4 (int bits)
 
void set_osy (int bits)
 
void set_rdy (int bits)
 
void set_rpca (int bits)
 
void set_sector (int bits)
 
void set_skip (int bits)
 
void set_sp_addr (int bits)
 
void set_sp_ersv (int bits)
 
void set_sp_TS (int bits)
 
void set_spa (int bits)
 
void set_tbin (int bits)
 
void set_wof (int bits)
 
int Skip () const
 
int SP_addr () const
 
int SP_ersv () const
 
int SP_TS () const
 
int SPa () const
 
int TBIN () const
 
int WOF () const
 
virtual ~EventHeader ()
 

Private Attributes

int bsy
 
int cppf
 
int cppf_crc
 
uint64_t dataword
 
int ddm
 
int endcap
 
int format_errors
 
int gem
 
int gem_crc
 
int l1a
 
int l1a_BXN
 
int me1a
 
int me1b
 
int me2
 
int me3
 
int me4
 
int osy
 
int rdy
 
int rpca
 
int sector
 
int skip
 
int sp_addr
 
int sp_ersv
 
int sp_TS
 
int spa
 
int tbin
 
int wof
 

Detailed Description

Definition at line 9 of file EventHeader.h.

Constructor & Destructor Documentation

◆ EventHeader() [1/2]

l1t::emtf::EventHeader::EventHeader ( uint64_t  dataword)
explicit

◆ EventHeader() [2/2]

l1t::emtf::EventHeader::EventHeader ( )
inline

Definition at line 13 of file EventHeader.h.

14  : l1a(-99),
15  l1a_BXN(-99),
16  sp_TS(-99),
17  endcap(-99),
18  sector(-99),
19  sp_ersv(-99),
20  sp_addr(-99),
21  tbin(-99),
22  ddm(-99),
23  spa(-99),
24  rpca(-99),
25  skip(-99),
26  rdy(-99),
27  bsy(-99),
28  osy(-99),
29  wof(-99),
30  me1a(-99),
31  me1b(-99),
32  me2(-99),
33  me3(-99),
34  me4(-99),
35  cppf(-99),
36  cppf_crc(-99),
37  gem(-99),
38  gem_crc(-99),
39  format_errors(0),
40  dataword(-99){};

◆ ~EventHeader()

virtual l1t::emtf::EventHeader::~EventHeader ( )
inlinevirtual

Definition at line 42 of file EventHeader.h.

42 {};

Member Function Documentation

◆ add_format_error()

void l1t::emtf::EventHeader::add_format_error ( )
inline

Definition at line 69 of file EventHeader.h.

69 { format_errors += 1; }

References format_errors.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ BSY()

int l1t::emtf::EventHeader::BSY ( ) const
inline

Definition at line 85 of file EventHeader.h.

85 { return bsy; }

References bsy.

◆ CPPF()

int l1t::emtf::EventHeader::CPPF ( ) const
inline

Definition at line 93 of file EventHeader.h.

93 { return cppf; }

References cppf.

◆ CPPF_CRC()

int l1t::emtf::EventHeader::CPPF_CRC ( ) const
inline

Definition at line 94 of file EventHeader.h.

94 { return cppf_crc; }

References cppf_crc.

◆ Dataword()

uint64_t l1t::emtf::EventHeader::Dataword ( ) const
inline

Definition at line 98 of file EventHeader.h.

98 { return dataword; }

References dataword.

◆ DDM()

int l1t::emtf::EventHeader::DDM ( ) const
inline

Definition at line 80 of file EventHeader.h.

80 { return ddm; }

References ddm.

◆ Endcap()

int l1t::emtf::EventHeader::Endcap ( ) const
inline

Definition at line 75 of file EventHeader.h.

75 { return endcap; }

References endcap.

◆ Format_errors()

int l1t::emtf::EventHeader::Format_errors ( ) const
inline

Definition at line 97 of file EventHeader.h.

97 { return format_errors; }

References format_errors.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ GEM()

int l1t::emtf::EventHeader::GEM ( ) const
inline

Definition at line 95 of file EventHeader.h.

95 { return gem; }

References gem.

◆ GEM_CRC()

int l1t::emtf::EventHeader::GEM_CRC ( ) const
inline

Definition at line 96 of file EventHeader.h.

96 { return gem_crc; }

References gem_crc.

◆ L1A()

int l1t::emtf::EventHeader::L1A ( ) const
inline

Definition at line 72 of file EventHeader.h.

72 { return l1a; }

References l1a.

◆ L1A_BXN()

int l1t::emtf::EventHeader::L1A_BXN ( ) const
inline

Definition at line 73 of file EventHeader.h.

73 { return l1a_BXN; }

References l1a_BXN.

◆ ME1a()

int l1t::emtf::EventHeader::ME1a ( ) const
inline

Definition at line 88 of file EventHeader.h.

88 { return me1a; }

References me1a.

◆ ME1b()

int l1t::emtf::EventHeader::ME1b ( ) const
inline

Definition at line 89 of file EventHeader.h.

89 { return me1b; }

References me1b.

◆ ME2()

int l1t::emtf::EventHeader::ME2 ( ) const
inline

Definition at line 90 of file EventHeader.h.

90 { return me2; }

References me2.

◆ ME3()

int l1t::emtf::EventHeader::ME3 ( ) const
inline

Definition at line 91 of file EventHeader.h.

91 { return me3; }

References me3.

◆ ME4()

int l1t::emtf::EventHeader::ME4 ( ) const
inline

Definition at line 92 of file EventHeader.h.

92 { return me4; }

References me4.

◆ OSY()

int l1t::emtf::EventHeader::OSY ( ) const
inline

Definition at line 86 of file EventHeader.h.

86 { return osy; }

References osy.

◆ Rdy()

int l1t::emtf::EventHeader::Rdy ( ) const
inline

Definition at line 84 of file EventHeader.h.

84 { return rdy; }

References rdy.

◆ RPCa()

int l1t::emtf::EventHeader::RPCa ( ) const
inline

Definition at line 82 of file EventHeader.h.

82 { return rpca; }

References rpca.

◆ Sector()

int l1t::emtf::EventHeader::Sector ( ) const
inline

Definition at line 76 of file EventHeader.h.

76 { return sector; }

References sector.

◆ set_bsy()

void l1t::emtf::EventHeader::set_bsy ( int  bits)
inline

Definition at line 57 of file EventHeader.h.

57 { bsy = bits; }

References bsy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_cppf()

void l1t::emtf::EventHeader::set_cppf ( int  bits)
inline

Definition at line 65 of file EventHeader.h.

65 { cppf = bits; }

References cppf.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_cppf_crc()

void l1t::emtf::EventHeader::set_cppf_crc ( int  bits)
inline

Definition at line 66 of file EventHeader.h.

66 { cppf_crc = bits; }

References cppf_crc.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_dataword()

void l1t::emtf::EventHeader::set_dataword ( uint64_t  bits)
inline

Definition at line 70 of file EventHeader.h.

70 { dataword = bits; }

References dataword.

◆ set_ddm()

void l1t::emtf::EventHeader::set_ddm ( int  bits)
inline

Definition at line 52 of file EventHeader.h.

52 { ddm = bits; }

References ddm.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_endcap()

void l1t::emtf::EventHeader::set_endcap ( int  bits)
inline

Definition at line 47 of file EventHeader.h.

47 { endcap = bits; }

References endcap.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_gem()

void l1t::emtf::EventHeader::set_gem ( int  bits)
inline

Definition at line 67 of file EventHeader.h.

67 { gem = bits; }

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_gem_crc()

void l1t::emtf::EventHeader::set_gem_crc ( int  bits)
inline

Definition at line 68 of file EventHeader.h.

68 { gem_crc = bits; }

References gem_crc.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_l1a()

void l1t::emtf::EventHeader::set_l1a ( int  bits)
inline

Definition at line 44 of file EventHeader.h.

44 { l1a = bits; }

References l1a.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_l1a_BXN()

void l1t::emtf::EventHeader::set_l1a_BXN ( int  bits)
inline

Definition at line 45 of file EventHeader.h.

45 { l1a_BXN = bits; }

References l1a_BXN.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_me1a()

void l1t::emtf::EventHeader::set_me1a ( int  bits)
inline

Definition at line 60 of file EventHeader.h.

60 { me1a = bits; }

References me1a.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_me1b()

void l1t::emtf::EventHeader::set_me1b ( int  bits)
inline

Definition at line 61 of file EventHeader.h.

61 { me1b = bits; }

References me1b.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_me2()

void l1t::emtf::EventHeader::set_me2 ( int  bits)
inline

Definition at line 62 of file EventHeader.h.

62 { me2 = bits; }

References me2.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_me3()

void l1t::emtf::EventHeader::set_me3 ( int  bits)
inline

Definition at line 63 of file EventHeader.h.

63 { me3 = bits; }

References me3.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_me4()

void l1t::emtf::EventHeader::set_me4 ( int  bits)
inline

Definition at line 64 of file EventHeader.h.

64 { me4 = bits; }

References me4.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_osy()

void l1t::emtf::EventHeader::set_osy ( int  bits)
inline

Definition at line 58 of file EventHeader.h.

58 { osy = bits; }

References osy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_rdy()

void l1t::emtf::EventHeader::set_rdy ( int  bits)
inline

Definition at line 56 of file EventHeader.h.

56 { rdy = bits; }

References rdy.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_rpca()

void l1t::emtf::EventHeader::set_rpca ( int  bits)
inline

Definition at line 54 of file EventHeader.h.

54 { rpca = bits; }

References rpca.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_sector()

void l1t::emtf::EventHeader::set_sector ( int  bits)
inline

Definition at line 48 of file EventHeader.h.

48 { sector = bits; }

References sector.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_skip()

void l1t::emtf::EventHeader::set_skip ( int  bits)
inline

Definition at line 55 of file EventHeader.h.

55 { skip = bits; }

References skip.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_sp_addr()

void l1t::emtf::EventHeader::set_sp_addr ( int  bits)
inline

Definition at line 50 of file EventHeader.h.

50 { sp_addr = bits; }

References sp_addr.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_sp_ersv()

void l1t::emtf::EventHeader::set_sp_ersv ( int  bits)
inline

Definition at line 49 of file EventHeader.h.

49 { sp_ersv = bits; }

References sp_ersv.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_sp_TS()

void l1t::emtf::EventHeader::set_sp_TS ( int  bits)
inline

Definition at line 46 of file EventHeader.h.

46 { sp_TS = bits; }

References sp_TS.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_spa()

void l1t::emtf::EventHeader::set_spa ( int  bits)
inline

Definition at line 53 of file EventHeader.h.

53 { spa = bits; }

References spa.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_tbin()

void l1t::emtf::EventHeader::set_tbin ( int  bits)
inline

Definition at line 51 of file EventHeader.h.

51 { tbin = bits; }

References tbin.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ set_wof()

void l1t::emtf::EventHeader::set_wof ( int  bits)
inline

Definition at line 59 of file EventHeader.h.

59 { wof = bits; }

References wof.

Referenced by l1t::stage2::emtf::HeadersBlockUnpacker::unpack().

◆ Skip()

int l1t::emtf::EventHeader::Skip ( ) const
inline

Definition at line 83 of file EventHeader.h.

83 { return skip; }

References skip.

◆ SP_addr()

int l1t::emtf::EventHeader::SP_addr ( ) const
inline

Definition at line 78 of file EventHeader.h.

78 { return sp_addr; }

References sp_addr.

◆ SP_ersv()

int l1t::emtf::EventHeader::SP_ersv ( ) const
inline

Definition at line 77 of file EventHeader.h.

77 { return sp_ersv; }

References sp_ersv.

◆ SP_TS()

int l1t::emtf::EventHeader::SP_TS ( ) const
inline

Definition at line 74 of file EventHeader.h.

74 { return sp_TS; }

References sp_TS.

◆ SPa()

int l1t::emtf::EventHeader::SPa ( ) const
inline

Definition at line 81 of file EventHeader.h.

81 { return spa; }

References spa.

◆ TBIN()

int l1t::emtf::EventHeader::TBIN ( ) const
inline

Definition at line 79 of file EventHeader.h.

79 { return tbin; }

References tbin.

◆ WOF()

int l1t::emtf::EventHeader::WOF ( ) const
inline

Definition at line 87 of file EventHeader.h.

87 { return wof; }

References wof.

Member Data Documentation

◆ bsy

int l1t::emtf::EventHeader::bsy
private

Definition at line 114 of file EventHeader.h.

Referenced by BSY(), and set_bsy().

◆ cppf

int l1t::emtf::EventHeader::cppf
private

Definition at line 122 of file EventHeader.h.

Referenced by CPPF(), and set_cppf().

◆ cppf_crc

int l1t::emtf::EventHeader::cppf_crc
private

Definition at line 123 of file EventHeader.h.

Referenced by CPPF_CRC(), and set_cppf_crc().

◆ dataword

uint64_t l1t::emtf::EventHeader::dataword
private

Definition at line 127 of file EventHeader.h.

Referenced by Dataword(), and set_dataword().

◆ ddm

int l1t::emtf::EventHeader::ddm
private

Definition at line 109 of file EventHeader.h.

Referenced by DDM(), and set_ddm().

◆ endcap

int l1t::emtf::EventHeader::endcap
private

Definition at line 104 of file EventHeader.h.

Referenced by Endcap(), geometryXMLparser.CSCAlignable::index(), and set_endcap().

◆ format_errors

int l1t::emtf::EventHeader::format_errors
private

Definition at line 126 of file EventHeader.h.

Referenced by add_format_error(), and Format_errors().

◆ gem

int l1t::emtf::EventHeader::gem
private

Definition at line 124 of file EventHeader.h.

Referenced by GEM().

◆ gem_crc

int l1t::emtf::EventHeader::gem_crc
private

Definition at line 125 of file EventHeader.h.

Referenced by GEM_CRC(), and set_gem_crc().

◆ l1a

int l1t::emtf::EventHeader::l1a
private

Definition at line 101 of file EventHeader.h.

Referenced by L1A(), and set_l1a().

◆ l1a_BXN

int l1t::emtf::EventHeader::l1a_BXN
private

Definition at line 102 of file EventHeader.h.

Referenced by L1A_BXN(), and set_l1a_BXN().

◆ me1a

int l1t::emtf::EventHeader::me1a
private

Definition at line 117 of file EventHeader.h.

Referenced by ME1a(), and set_me1a().

◆ me1b

int l1t::emtf::EventHeader::me1b
private

Definition at line 118 of file EventHeader.h.

Referenced by ME1b(), and set_me1b().

◆ me2

int l1t::emtf::EventHeader::me2
private

Definition at line 119 of file EventHeader.h.

Referenced by ME2(), and set_me2().

◆ me3

int l1t::emtf::EventHeader::me3
private

Definition at line 120 of file EventHeader.h.

Referenced by ME3(), and set_me3().

◆ me4

int l1t::emtf::EventHeader::me4
private

Definition at line 121 of file EventHeader.h.

Referenced by ME4(), and set_me4().

◆ osy

int l1t::emtf::EventHeader::osy
private

Definition at line 115 of file EventHeader.h.

Referenced by OSY(), and set_osy().

◆ rdy

int l1t::emtf::EventHeader::rdy
private

Definition at line 113 of file EventHeader.h.

Referenced by Rdy(), and set_rdy().

◆ rpca

int l1t::emtf::EventHeader::rpca
private

Definition at line 111 of file EventHeader.h.

Referenced by RPCa(), and set_rpca().

◆ sector

int l1t::emtf::EventHeader::sector
private

◆ skip

int l1t::emtf::EventHeader::skip
private

Definition at line 112 of file EventHeader.h.

Referenced by set_skip(), and Skip().

◆ sp_addr

int l1t::emtf::EventHeader::sp_addr
private

Definition at line 107 of file EventHeader.h.

Referenced by set_sp_addr(), and SP_addr().

◆ sp_ersv

int l1t::emtf::EventHeader::sp_ersv
private

Definition at line 106 of file EventHeader.h.

Referenced by set_sp_ersv(), and SP_ersv().

◆ sp_TS

int l1t::emtf::EventHeader::sp_TS
private

Definition at line 103 of file EventHeader.h.

Referenced by set_sp_TS(), and SP_TS().

◆ spa

int l1t::emtf::EventHeader::spa
private

Definition at line 110 of file EventHeader.h.

Referenced by set_spa(), and SPa().

◆ tbin

int l1t::emtf::EventHeader::tbin
private

Definition at line 108 of file EventHeader.h.

Referenced by set_tbin(), and TBIN().

◆ wof

int l1t::emtf::EventHeader::wof
private

Definition at line 116 of file EventHeader.h.

Referenced by set_wof(), and WOF().

l1t::emtf::EventHeader::spa
int spa
Definition: EventHeader.h:110
l1t::emtf::EventHeader::sp_TS
int sp_TS
Definition: EventHeader.h:103
l1t::emtf::EventHeader::bsy
int bsy
Definition: EventHeader.h:114
l1t::emtf::EventHeader::ddm
int ddm
Definition: EventHeader.h:109
l1t::emtf::EventHeader::cppf_crc
int cppf_crc
Definition: EventHeader.h:123
l1t::emtf::EventHeader::me3
int me3
Definition: EventHeader.h:120
l1t::emtf::EventHeader::l1a_BXN
int l1a_BXN
Definition: EventHeader.h:102
l1t::emtf::EventHeader::sp_addr
int sp_addr
Definition: EventHeader.h:107
l1t::emtf::EventHeader::me4
int me4
Definition: EventHeader.h:121
l1t::emtf::EventHeader::me2
int me2
Definition: EventHeader.h:119
l1t::emtf::EventHeader::dataword
uint64_t dataword
Definition: EventHeader.h:127
l1t::emtf::EventHeader::skip
int skip
Definition: EventHeader.h:112
l1t::emtf::EventHeader::l1a
int l1a
Definition: EventHeader.h:101
l1t::emtf::EventHeader::wof
int wof
Definition: EventHeader.h:116
l1t::emtf::EventHeader::format_errors
int format_errors
Definition: EventHeader.h:126
l1t::emtf::EventHeader::sp_ersv
int sp_ersv
Definition: EventHeader.h:106
l1t::emtf::EventHeader::endcap
int endcap
Definition: EventHeader.h:104
l1t::emtf::EventHeader::me1a
int me1a
Definition: EventHeader.h:117
l1t::emtf::EventHeader::tbin
int tbin
Definition: EventHeader.h:108
l1t::emtf::EventHeader::osy
int osy
Definition: EventHeader.h:115
l1t::emtf::EventHeader::gem_crc
int gem_crc
Definition: EventHeader.h:125
gem
Definition: AMC13Event.h:6
l1t::emtf::EventHeader::gem
int gem
Definition: EventHeader.h:124
l1t::emtf::EventHeader::rpca
int rpca
Definition: EventHeader.h:111
l1t::emtf::EventHeader::me1b
int me1b
Definition: EventHeader.h:118
l1t::emtf::EventHeader::cppf
int cppf
Definition: EventHeader.h:122
l1t::emtf::EventHeader::rdy
int rdy
Definition: EventHeader.h:113
l1t::emtf::EventHeader::sector
int sector
Definition: EventHeader.h:105