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 () override
 
unsigned short * data () const 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::CSCDMBTrailer2013 ( )
inline

Definition at line 44 of file CSCDMBTrailer2013.h.

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

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  }
unsigned short * data() override
struct CSCDMBTrailer2013::@415 bits
unsigned sizeInWords() const override
CSCDMBTrailer2013::CSCDMBTrailer2013 ( const uint16_t *  buf)
inline

Definition at line 50 of file CSCDMBTrailer2013.h.

References data(), and sizeInWords().

50 { memcpy(data(), buf, sizeInWords() * 2); }
unsigned short * data() override
unsigned sizeInWords() const override

Member Function Documentation

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; };
unsigned CSCDMBTrailer2013::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 73 of file CSCDMBTrailer2013.h.

References bits.

73 { return bits.alct_endtimeout; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::alct_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 93 of file CSCDMBTrailer2013.h.

References bits.

93 { return bits.alct_full; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::alct_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 89 of file CSCDMBTrailer2013.h.

References bits.

89 { return bits.alct_half; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::alct_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 77 of file CSCDMBTrailer2013.h.

References bits.

77 { return bits.alct_starttimeout; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::cfeb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 87 of file CSCDMBTrailer2013.h.

87 { return 0; };
unsigned CSCDMBTrailer2013::cfeb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 75 of file CSCDMBTrailer2013.h.

References bits.

75 { return bits.cfeb_endtimeout; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::cfeb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 95 of file CSCDMBTrailer2013.h.

References bits.

95 { return (bits.cfeb_full_lowo | (bits.cfeb_full_hiwo << 3)); };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::cfeb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 91 of file CSCDMBTrailer2013.h.

References bits.

91 { return bits.cfeb_half; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::cfeb_movlp ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 81 of file CSCDMBTrailer2013.h.

References bits.

81 { return bits.cfeb_movlp; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::cfeb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2013.h.

References bits.

79 { return bits.cfeb_starttimeout; };
struct CSCDMBTrailer2013::@415 bits
bool CSCDMBTrailer2013::check ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 104 of file CSCDMBTrailer2013.h.

References bits.

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  }
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2013.h.

References bits.

67 { return bits.crate_id; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::crc22 ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 97 of file CSCDMBTrailer2013.h.

References bits.

97 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::crc_hi_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 99 of file CSCDMBTrailer2013.h.

References bits.

99 { return bits.dmb_parity_2; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::crc_lo_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 98 of file CSCDMBTrailer2013.h.

References bits.

98 { return bits.dmb_parity_1; };
struct CSCDMBTrailer2013::@415 bits
unsigned short* CSCDMBTrailer2013::data ( )
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 101 of file CSCDMBTrailer2013.h.

References bits.

Referenced by CSCDMBTrailer2013().

101 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2013::@415 bits
unsigned short* CSCDMBTrailer2013::data ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 102 of file CSCDMBTrailer2013.h.

References bits.

102 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::dmb_bxn ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 71 of file CSCDMBTrailer2013.h.

References bits.

71 { return bits.dmb_bxn; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::dmb_l1a ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 70 of file CSCDMBTrailer2013.h.

References bits.

70 { return bits.dmb_l1a; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::dmb_l1pipe ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 82 of file CSCDMBTrailer2013.h.

References bits.

82 { return bits.dmb_l1pipe; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::dmbID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 68 of file CSCDMBTrailer2013.h.

References bits.

68 { return bits.dmb_id; };
struct CSCDMBTrailer2013::@415 bits
void CSCDMBTrailer2013::setEventInformation ( const CSCDMBHeader dmbHeader)
inlineoverridevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2013.h.

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

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  };
unsigned l1a() const
Definition: CSCDMBHeader.h:39
unsigned bxn() const
Definition: CSCDMBHeader.h:37
unsigned crateID() const
Definition: CSCDMBHeader.h:35
struct CSCDMBTrailer2013::@415 bits
unsigned dmbID() const
Definition: CSCDMBHeader.h:36
unsigned CSCDMBTrailer2013::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 109 of file CSCDMBTrailer2013.h.

Referenced by CSCDMBTrailer2013().

109 { return 8; }
unsigned CSCDMBTrailer2013::tmb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 86 of file CSCDMBTrailer2013.h.

86 { return 0; };
unsigned CSCDMBTrailer2013::tmb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 74 of file CSCDMBTrailer2013.h.

References bits.

74 { return bits.tmb_endtimeout; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::tmb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 94 of file CSCDMBTrailer2013.h.

References bits.

94 { return bits.tmb_full; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::tmb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 90 of file CSCDMBTrailer2013.h.

References bits.

90 { return bits.tmb_half; };
struct CSCDMBTrailer2013::@415 bits
unsigned CSCDMBTrailer2013::tmb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 78 of file CSCDMBTrailer2013.h.

References bits.

78 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2013::@415 bits

Member Data Documentation

unsigned CSCDMBTrailer2013::alct_endtimeout

DMB_BXN[4:0].

Definition at line 115 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_full

TMB_FULL(1)

Definition at line 141 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_half

TMB_HALF(1)

Definition at line 139 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_starttimeout

CFEB_Start_Timeout(7:1)

Definition at line 132 of file CSCDMBTrailer2013.h.

struct { ... } CSCDMBTrailer2013::bits
unsigned CSCDMBTrailer2013::cfeb_endtimeout

constant, should be '1111'

2nd Trailer word

Definition at line 119 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_hiwo

constant, should be '1111'

4th Trailer word

Definition at line 130 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_lowo

TMB_Start_Timeout(1)

Definition at line 126 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_half

constant, should be '1111'

5th Trailer word

Definition at line 136 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_movlp

CFEB_End_Timeout(7:1)

Definition at line 120 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_starttimeout

CFEB_FULL(7:4)

Definition at line 131 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::crate_id

DMB_ID(4)

Definition at line 146 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_1

ALCT_End_Timeout(1)

Definition at line 116 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_2

CFEB_MOVLP(5:1)

Definition at line 121 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_3

CFEB_FULL(3:1)

Definition at line 127 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_4

ALCT_Start_Timeout(1)

Definition at line 133 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_5

ALCT_FULL(1)

Definition at line 142 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_6

DMB_CRATE(8)

Definition at line 147 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_7

DMB_CRC_LowParity(1)

Definition at line 152 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_8

DMB_CRC_HighParity(1)

Definition at line 157 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_bxn

DMB_L1A[5:0].

Definition at line 114 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_1

constant, should be '1110'

7th Trailer word

Definition at line 150 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_2

constant, should be '1110'

8th Trailer word

Definition at line 155 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_id

constant, should be '1110'

6th Trailer word

Definition at line 145 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1a

1st Trailer word

Definition at line 113 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1pipe

constant, should be '1111'

3rd Trailer word

Definition at line 124 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_1

DMB_CRC[10:0].

Definition at line 151 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_2

DMB_CRC[21:11].

Definition at line 156 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_endtimeout

CFEB_HALF(7:1)

Definition at line 137 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_full

ALCT_HALF(1)

Definition at line 140 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_half

TMB_End_Timeout(1)

Definition at line 138 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_starttimeout

DMB_L1PIPE(8)

Definition at line 125 of file CSCDMBTrailer2013.h.