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 (uint64_t dataword)
 
 EventHeader ()
 
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.

References format_errors.

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

69 { format_errors += 1; }

◆ BSY()

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

Definition at line 85 of file EventHeader.h.

References bsy.

85 { return bsy; }

◆ CPPF()

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

Definition at line 93 of file EventHeader.h.

References cppf.

93 { return cppf; }

◆ CPPF_CRC()

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

Definition at line 94 of file EventHeader.h.

References cppf_crc.

94 { return cppf_crc; }

◆ Dataword()

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

Definition at line 98 of file EventHeader.h.

References dataword.

98 { return dataword; }

◆ DDM()

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

Definition at line 80 of file EventHeader.h.

References ddm.

80 { return ddm; }

◆ Endcap()

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

Definition at line 75 of file EventHeader.h.

References endcap.

75 { return endcap; }

◆ Format_errors()

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

Definition at line 97 of file EventHeader.h.

References format_errors.

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

97 { return format_errors; }

◆ GEM()

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

Definition at line 95 of file EventHeader.h.

References gem.

95 { return gem; }

◆ GEM_CRC()

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

Definition at line 96 of file EventHeader.h.

References gem_crc.

96 { return gem_crc; }

◆ L1A()

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

Definition at line 72 of file EventHeader.h.

References l1a.

72 { return l1a; }

◆ L1A_BXN()

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

Definition at line 73 of file EventHeader.h.

References l1a_BXN.

73 { return l1a_BXN; }

◆ ME1a()

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

Definition at line 88 of file EventHeader.h.

References me1a.

88 { return me1a; }

◆ ME1b()

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

Definition at line 89 of file EventHeader.h.

References me1b.

89 { return me1b; }

◆ ME2()

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

Definition at line 90 of file EventHeader.h.

References me2.

90 { return me2; }

◆ ME3()

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

Definition at line 91 of file EventHeader.h.

References me3.

91 { return me3; }

◆ ME4()

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

Definition at line 92 of file EventHeader.h.

References me4.

92 { return me4; }

◆ OSY()

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

Definition at line 86 of file EventHeader.h.

References osy.

86 { return osy; }

◆ Rdy()

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

Definition at line 84 of file EventHeader.h.

References rdy.

84 { return rdy; }

◆ RPCa()

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

Definition at line 82 of file EventHeader.h.

References rpca.

82 { return rpca; }

◆ Sector()

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

Definition at line 76 of file EventHeader.h.

References sector.

76 { return sector; }

◆ set_bsy()

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

Definition at line 57 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and bsy.

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

57 { bsy = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_cppf()

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

◆ set_cppf_crc()

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

◆ set_dataword()

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

Definition at line 70 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and dataword.

70 { dataword = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_ddm()

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

Definition at line 52 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and ddm.

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

52 { ddm = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_endcap()

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

◆ set_gem()

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

Definition at line 67 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and gem.

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

67 { gem = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_gem_crc()

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

◆ set_l1a()

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

Definition at line 44 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and l1a.

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

44 { l1a = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_l1a_BXN()

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

◆ set_me1a()

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

◆ set_me1b()

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

◆ set_me2()

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

Definition at line 62 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and me2.

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

62 { me2 = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_me3()

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

Definition at line 63 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and me3.

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

63 { me3 = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_me4()

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

Definition at line 64 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and me4.

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

64 { me4 = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_osy()

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

Definition at line 58 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and osy.

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

58 { osy = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_rdy()

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

Definition at line 56 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and rdy.

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

56 { rdy = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_rpca()

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

◆ set_sector()

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

◆ set_skip()

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

◆ set_sp_addr()

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

◆ set_sp_ersv()

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

◆ set_sp_TS()

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

◆ set_spa()

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

Definition at line 53 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and spa.

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

53 { spa = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ set_tbin()

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

◆ set_wof()

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

Definition at line 59 of file EventHeader.h.

References gpuClustering::pixelStatus::bits, and wof.

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

59 { wof = bits; }
constexpr uint32_t bits
Definition: gpuClustering.h:25

◆ Skip()

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

Definition at line 83 of file EventHeader.h.

References skip.

83 { return skip; }

◆ SP_addr()

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

Definition at line 78 of file EventHeader.h.

References sp_addr.

78 { return sp_addr; }

◆ SP_ersv()

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

Definition at line 77 of file EventHeader.h.

References sp_ersv.

77 { return sp_ersv; }

◆ SP_TS()

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

Definition at line 74 of file EventHeader.h.

References sp_TS.

74 { return sp_TS; }

◆ SPa()

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

Definition at line 81 of file EventHeader.h.

References spa.

81 { return spa; }

◆ TBIN()

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

Definition at line 79 of file EventHeader.h.

References tbin.

79 { return tbin; }

◆ WOF()

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

Definition at line 87 of file EventHeader.h.

References wof.

87 { return 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(), and set_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().