CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CSCDMBTrailer2013 Struct Reference

#include <CSCDMBTrailer2013.h>

Inheritance diagram for CSCDMBTrailer2013:
CSCVDMBTrailerFormat

Public Member Functions

unsigned alct_empty () const override
 Empty bits don't exists in new format. More...
 
unsigned alct_endtimeout () const override
 
unsigned alct_full () const override
 
unsigned alct_half () const override
 
unsigned alct_starttimeout () const override
 
unsigned cfeb_empty () const override
 
unsigned cfeb_endtimeout () const override
 
unsigned cfeb_full () const override
 
unsigned cfeb_half () const override
 
unsigned cfeb_movlp () const override
 
unsigned cfeb_starttimeout () const override
 
bool check () const override
 
unsigned crateID () const override
 
unsigned crc22 () const override
 
unsigned crc_hi_parity () const override
 
unsigned crc_lo_parity () const override
 
 CSCDMBTrailer2013 ()
 
 CSCDMBTrailer2013 (const uint16_t *buf)
 
unsigned short * data () const override
 
unsigned short * data () override
 
unsigned dmb_bxn () const override
 
unsigned dmb_l1a () const override
 
unsigned dmb_l1pipe () const override
 
unsigned dmbID () const override
 
void setEventInformation (const CSCDMBHeader &dmbHeader) override
 @ NEEDS TO BE DONE More...
 
unsigned sizeInWords () const override
 
unsigned tmb_empty () const override
 
unsigned tmb_endtimeout () const override
 
unsigned tmb_full () const override
 
unsigned tmb_half () const override
 
unsigned tmb_starttimeout () const override
 
- Public Member Functions inherited from CSCVDMBTrailerFormat
virtual ~CSCVDMBTrailerFormat ()
 

Public Attributes

struct {
   unsigned   alct_endtimeout: 1
 DMB_BXN[4:0]. More...
 
   unsigned   alct_full: 1
 TMB_FULL(1) More...
 
   unsigned   alct_half: 1
 TMB_HALF(1) More...
 
   unsigned   alct_starttimeout: 1
 CFEB_Start_Timeout(7:1) More...
 
   unsigned   cfeb_endtimeout: 7
 constant, should be '1111' More...
 
   unsigned   cfeb_full_hiwo: 4
 constant, should be '1111' More...
 
   unsigned   cfeb_full_lowo: 3
 TMB_Start_Timeout(1) More...
 
   unsigned   cfeb_half: 7
 constant, should be '1111' More...
 
   unsigned   cfeb_movlp: 5
 CFEB_End_Timeout(7:1) More...
 
   unsigned   cfeb_starttimeout: 7
 CFEB_FULL(7:4) More...
 
   unsigned   crate_id: 8
 DMB_ID(4) More...
 
   unsigned   ddu_code_1: 4
 ALCT_End_Timeout(1) More...
 
   unsigned   ddu_code_2: 4
 CFEB_MOVLP(5:1) More...
 
   unsigned   ddu_code_3: 4
 CFEB_FULL(3:1) More...
 
   unsigned   ddu_code_4: 4
 ALCT_Start_Timeout(1) More...
 
   unsigned   ddu_code_5: 4
 ALCT_FULL(1) More...
 
   unsigned   ddu_code_6: 4
 DMB_CRATE(8) More...
 
   unsigned   ddu_code_7: 4
 DMB_CRC_LowParity(1) More...
 
   unsigned   ddu_code_8: 4
 DMB_CRC_HighParity(1) More...
 
   unsigned   dmb_bxn: 5
 DMB_L1A[5:0]. More...
 
   unsigned   dmb_crc_1: 11
 constant, should be '1110' More...
 
   unsigned   dmb_crc_2: 11
 constant, should be '1110' More...
 
   unsigned   dmb_id: 4
 constant, should be '1110' More...
 
   unsigned   dmb_l1a: 6
 1st Trailer word More...
 
   unsigned   dmb_l1pipe: 8
 constant, should be '1111' More...
 
   unsigned   dmb_parity_1: 1
 DMB_CRC[10:0]. More...
 
   unsigned   dmb_parity_2: 1
 DMB_CRC[21:11]. More...
 
   unsigned   tmb_endtimeout: 1
 CFEB_HALF(7:1) More...
 
   unsigned   tmb_full: 1
 ALCT_HALF(1) More...
 
   unsigned   tmb_half: 1
 TMB_End_Timeout(1) More...
 
   unsigned   tmb_starttimeout: 1
 DMB_L1PIPE(8) More...
 
bits
 

Detailed Description

Definition at line 42 of file CSCDMBTrailer2013.h.

Constructor & Destructor Documentation

◆ CSCDMBTrailer2013() [1/2]

CSCDMBTrailer2013::CSCDMBTrailer2013 ( )
inline

Definition at line 44 of file CSCDMBTrailer2013.h.

44  {
45  bzero(data(), sizeInWords() * 2);
46  bits.ddu_code_1 = bits.ddu_code_2 = bits.ddu_code_3 = bits.ddu_code_4 = 0xF;
47  bits.ddu_code_5 = bits.ddu_code_6 = bits.ddu_code_7 = bits.ddu_code_8 = 0xE;
48  }

References bits, data(), and sizeInWords().

◆ CSCDMBTrailer2013() [2/2]

CSCDMBTrailer2013::CSCDMBTrailer2013 ( const uint16_t *  buf)
inline

Definition at line 50 of file CSCDMBTrailer2013.h.

50 { memcpy(data(), buf, sizeInWords() * 2); }

References visDQMUpload::buf, data(), and sizeInWords().

Member Function Documentation

◆ alct_empty()

unsigned CSCDMBTrailer2013::alct_empty ( ) const
inlineoverridevirtual

Empty bits don't exists in new format.

Implements CSCVDMBTrailerFormat.

Definition at line 85 of file CSCDMBTrailer2013.h.

85 { return 0; };

◆ alct_endtimeout()

unsigned CSCDMBTrailer2013::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 73 of file CSCDMBTrailer2013.h.

73 { return bits.alct_endtimeout; };

References bits.

◆ alct_full()

unsigned CSCDMBTrailer2013::alct_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 93 of file CSCDMBTrailer2013.h.

93 { return bits.alct_full; };

References bits.

◆ alct_half()

unsigned CSCDMBTrailer2013::alct_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 89 of file CSCDMBTrailer2013.h.

89 { return bits.alct_half; };

References bits.

◆ alct_starttimeout()

unsigned CSCDMBTrailer2013::alct_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 77 of file CSCDMBTrailer2013.h.

77 { return bits.alct_starttimeout; };

References bits.

◆ cfeb_empty()

unsigned CSCDMBTrailer2013::cfeb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 87 of file CSCDMBTrailer2013.h.

87 { return 0; };

◆ cfeb_endtimeout()

unsigned CSCDMBTrailer2013::cfeb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 75 of file CSCDMBTrailer2013.h.

75 { return bits.cfeb_endtimeout; };

References bits.

◆ cfeb_full()

unsigned CSCDMBTrailer2013::cfeb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 95 of file CSCDMBTrailer2013.h.

95 { return (bits.cfeb_full_lowo | (bits.cfeb_full_hiwo << 3)); };

References bits.

◆ cfeb_half()

unsigned CSCDMBTrailer2013::cfeb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 91 of file CSCDMBTrailer2013.h.

91 { return bits.cfeb_half; };

References bits.

◆ cfeb_movlp()

unsigned CSCDMBTrailer2013::cfeb_movlp ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 81 of file CSCDMBTrailer2013.h.

81 { return bits.cfeb_movlp; };

References bits.

◆ cfeb_starttimeout()

unsigned CSCDMBTrailer2013::cfeb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2013.h.

79 { return bits.cfeb_starttimeout; };

References bits.

◆ check()

bool CSCDMBTrailer2013::check ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 104 of file CSCDMBTrailer2013.h.

104  {
105  return bits.ddu_code_1 == 0xF && bits.ddu_code_2 == 0xF && bits.ddu_code_3 == 0xF && bits.ddu_code_4 == 0xF &&
106  bits.ddu_code_5 == 0xE && bits.ddu_code_6 == 0xE && bits.ddu_code_7 == 0xE && bits.ddu_code_8 == 0xE;
107  }

References bits.

◆ crateID()

unsigned CSCDMBTrailer2013::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2013.h.

67 { return bits.crate_id; };

References bits.

◆ crc22()

unsigned CSCDMBTrailer2013::crc22 ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 97 of file CSCDMBTrailer2013.h.

97 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };

References bits.

◆ crc_hi_parity()

unsigned CSCDMBTrailer2013::crc_hi_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 99 of file CSCDMBTrailer2013.h.

99 { return bits.dmb_parity_2; };

References bits.

◆ crc_lo_parity()

unsigned CSCDMBTrailer2013::crc_lo_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 98 of file CSCDMBTrailer2013.h.

98 { return bits.dmb_parity_1; };

References bits.

◆ data() [1/2]

unsigned short* CSCDMBTrailer2013::data ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 102 of file CSCDMBTrailer2013.h.

102 { return (unsigned short *)(&bits); }

References bits.

◆ data() [2/2]

unsigned short* CSCDMBTrailer2013::data ( )
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 101 of file CSCDMBTrailer2013.h.

101 { return (unsigned short *)(&bits); }

References bits.

Referenced by CSCDMBTrailer2013().

◆ dmb_bxn()

unsigned CSCDMBTrailer2013::dmb_bxn ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 71 of file CSCDMBTrailer2013.h.

71 { return bits.dmb_bxn; };

References bits.

◆ dmb_l1a()

unsigned CSCDMBTrailer2013::dmb_l1a ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 70 of file CSCDMBTrailer2013.h.

70 { return bits.dmb_l1a; };

References bits.

◆ dmb_l1pipe()

unsigned CSCDMBTrailer2013::dmb_l1pipe ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 82 of file CSCDMBTrailer2013.h.

82 { return bits.dmb_l1pipe; };

References bits.

◆ dmbID()

unsigned CSCDMBTrailer2013::dmbID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 68 of file CSCDMBTrailer2013.h.

68 { return bits.dmb_id; };

References bits.

◆ setEventInformation()

void CSCDMBTrailer2013::setEventInformation ( const CSCDMBHeader dmbHeader)
inlineoverridevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2013.h.

60  {
61  bits.dmb_id = dmbHeader.dmbID();
62  bits.crate_id = dmbHeader.crateID();
63  bits.dmb_l1a = dmbHeader.l1a();
64  bits.dmb_bxn = dmbHeader.bxn();
65  };

References bits, CSCDMBHeader::bxn(), CSCDMBHeader::crateID(), CSCDMBHeader::dmbID(), and CSCDMBHeader::l1a().

◆ sizeInWords()

unsigned CSCDMBTrailer2013::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 109 of file CSCDMBTrailer2013.h.

109 { return 8; }

Referenced by CSCDMBTrailer2013().

◆ tmb_empty()

unsigned CSCDMBTrailer2013::tmb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 86 of file CSCDMBTrailer2013.h.

86 { return 0; };

◆ tmb_endtimeout()

unsigned CSCDMBTrailer2013::tmb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 74 of file CSCDMBTrailer2013.h.

74 { return bits.tmb_endtimeout; };

References bits.

◆ tmb_full()

unsigned CSCDMBTrailer2013::tmb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 94 of file CSCDMBTrailer2013.h.

94 { return bits.tmb_full; };

References bits.

◆ tmb_half()

unsigned CSCDMBTrailer2013::tmb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 90 of file CSCDMBTrailer2013.h.

90 { return bits.tmb_half; };

References bits.

◆ tmb_starttimeout()

unsigned CSCDMBTrailer2013::tmb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 78 of file CSCDMBTrailer2013.h.

78 { return bits.tmb_starttimeout; };

References bits.

Member Data Documentation

◆ alct_endtimeout

unsigned CSCDMBTrailer2013::alct_endtimeout

DMB_BXN[4:0].

Definition at line 115 of file CSCDMBTrailer2013.h.

◆ alct_full

unsigned CSCDMBTrailer2013::alct_full

TMB_FULL(1)

Definition at line 141 of file CSCDMBTrailer2013.h.

◆ alct_half

unsigned CSCDMBTrailer2013::alct_half

TMB_HALF(1)

Definition at line 139 of file CSCDMBTrailer2013.h.

◆ alct_starttimeout

unsigned CSCDMBTrailer2013::alct_starttimeout

CFEB_Start_Timeout(7:1)

Definition at line 132 of file CSCDMBTrailer2013.h.

◆ bits

struct { ... } CSCDMBTrailer2013::bits

◆ cfeb_endtimeout

unsigned CSCDMBTrailer2013::cfeb_endtimeout

constant, should be '1111'

2nd Trailer word

Definition at line 119 of file CSCDMBTrailer2013.h.

◆ cfeb_full_hiwo

unsigned CSCDMBTrailer2013::cfeb_full_hiwo

constant, should be '1111'

4th Trailer word

Definition at line 130 of file CSCDMBTrailer2013.h.

◆ cfeb_full_lowo

unsigned CSCDMBTrailer2013::cfeb_full_lowo

TMB_Start_Timeout(1)

Definition at line 126 of file CSCDMBTrailer2013.h.

◆ cfeb_half

unsigned CSCDMBTrailer2013::cfeb_half

constant, should be '1111'

5th Trailer word

Definition at line 136 of file CSCDMBTrailer2013.h.

◆ cfeb_movlp

unsigned CSCDMBTrailer2013::cfeb_movlp

CFEB_End_Timeout(7:1)

Definition at line 120 of file CSCDMBTrailer2013.h.

◆ cfeb_starttimeout

unsigned CSCDMBTrailer2013::cfeb_starttimeout

CFEB_FULL(7:4)

Definition at line 131 of file CSCDMBTrailer2013.h.

◆ crate_id

unsigned CSCDMBTrailer2013::crate_id

DMB_ID(4)

Definition at line 146 of file CSCDMBTrailer2013.h.

◆ ddu_code_1

unsigned CSCDMBTrailer2013::ddu_code_1

ALCT_End_Timeout(1)

Definition at line 116 of file CSCDMBTrailer2013.h.

◆ ddu_code_2

unsigned CSCDMBTrailer2013::ddu_code_2

CFEB_MOVLP(5:1)

Definition at line 121 of file CSCDMBTrailer2013.h.

◆ ddu_code_3

unsigned CSCDMBTrailer2013::ddu_code_3

CFEB_FULL(3:1)

Definition at line 127 of file CSCDMBTrailer2013.h.

◆ ddu_code_4

unsigned CSCDMBTrailer2013::ddu_code_4

ALCT_Start_Timeout(1)

Definition at line 133 of file CSCDMBTrailer2013.h.

◆ ddu_code_5

unsigned CSCDMBTrailer2013::ddu_code_5

ALCT_FULL(1)

Definition at line 142 of file CSCDMBTrailer2013.h.

◆ ddu_code_6

unsigned CSCDMBTrailer2013::ddu_code_6

DMB_CRATE(8)

Definition at line 147 of file CSCDMBTrailer2013.h.

◆ ddu_code_7

unsigned CSCDMBTrailer2013::ddu_code_7

DMB_CRC_LowParity(1)

Definition at line 152 of file CSCDMBTrailer2013.h.

◆ ddu_code_8

unsigned CSCDMBTrailer2013::ddu_code_8

DMB_CRC_HighParity(1)

Definition at line 157 of file CSCDMBTrailer2013.h.

◆ dmb_bxn

unsigned CSCDMBTrailer2013::dmb_bxn

DMB_L1A[5:0].

Definition at line 114 of file CSCDMBTrailer2013.h.

◆ dmb_crc_1

unsigned CSCDMBTrailer2013::dmb_crc_1

constant, should be '1110'

7th Trailer word

Definition at line 150 of file CSCDMBTrailer2013.h.

◆ dmb_crc_2

unsigned CSCDMBTrailer2013::dmb_crc_2

constant, should be '1110'

8th Trailer word

Definition at line 155 of file CSCDMBTrailer2013.h.

◆ dmb_id

unsigned CSCDMBTrailer2013::dmb_id

constant, should be '1110'

6th Trailer word

Definition at line 145 of file CSCDMBTrailer2013.h.

◆ dmb_l1a

unsigned CSCDMBTrailer2013::dmb_l1a

1st Trailer word

Definition at line 113 of file CSCDMBTrailer2013.h.

◆ dmb_l1pipe

unsigned CSCDMBTrailer2013::dmb_l1pipe

constant, should be '1111'

3rd Trailer word

Definition at line 124 of file CSCDMBTrailer2013.h.

◆ dmb_parity_1

unsigned CSCDMBTrailer2013::dmb_parity_1

DMB_CRC[10:0].

Definition at line 151 of file CSCDMBTrailer2013.h.

◆ dmb_parity_2

unsigned CSCDMBTrailer2013::dmb_parity_2

DMB_CRC[21:11].

Definition at line 156 of file CSCDMBTrailer2013.h.

◆ tmb_endtimeout

unsigned CSCDMBTrailer2013::tmb_endtimeout

CFEB_HALF(7:1)

Definition at line 137 of file CSCDMBTrailer2013.h.

◆ tmb_full

unsigned CSCDMBTrailer2013::tmb_full

ALCT_HALF(1)

Definition at line 140 of file CSCDMBTrailer2013.h.

◆ tmb_half

unsigned CSCDMBTrailer2013::tmb_half

TMB_End_Timeout(1)

Definition at line 138 of file CSCDMBTrailer2013.h.

◆ tmb_starttimeout

unsigned CSCDMBTrailer2013::tmb_starttimeout

DMB_L1PIPE(8)

Definition at line 125 of file CSCDMBTrailer2013.h.

CSCDMBHeader::l1a
unsigned l1a() const
Definition: CSCDMBHeader.h:39
CSCDMBTrailer2013::sizeInWords
unsigned sizeInWords() const override
Definition: CSCDMBTrailer2013.h:109
CSCDMBTrailer2013::data
unsigned short * data() override
Definition: CSCDMBTrailer2013.h:101
CSCDMBTrailer2013::bits
struct CSCDMBTrailer2013::@456 bits
CSCDMBHeader::crateID
unsigned crateID() const
Definition: CSCDMBHeader.h:35
CSCDMBHeader::bxn
unsigned bxn() const
Definition: CSCDMBHeader.h:37
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCDMBHeader::dmbID
unsigned dmbID() const
Definition: CSCDMBHeader.h:36