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().

45  {
46  bzero(data(), sizeInWords()*2);
47  bits.ddu_code_1 = bits.ddu_code_2 = bits.ddu_code_3 = bits.ddu_code_4 = 0xF;
48  bits.ddu_code_5 = bits.ddu_code_6 = bits.ddu_code_7 = bits.ddu_code_8 = 0xE;
49  }
unsigned short * data() override
unsigned sizeInWords() const override
struct CSCDMBTrailer2013::@429 bits
CSCDMBTrailer2013::CSCDMBTrailer2013 ( const uint16_t *  buf)
inline

Definition at line 51 of file CSCDMBTrailer2013.h.

References data(), and sizeInWords().

52  {
53  memcpy(data(), buf, sizeInWords()*2);
54  }
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 90 of file CSCDMBTrailer2013.h.

90 { return 0; };
unsigned CSCDMBTrailer2013::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 78 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 99 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 95 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 82 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 92 of file CSCDMBTrailer2013.h.

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

Implements CSCVDMBTrailerFormat.

Definition at line 80 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 101 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 97 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 86 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 84 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 110 of file CSCDMBTrailer2013.h.

References bits.

110  {return bits.ddu_code_1 == 0xF && bits.ddu_code_2 == 0xF
111  && bits.ddu_code_3 == 0xF && bits.ddu_code_4 == 0xF
112  && bits.ddu_code_5 == 0xE && bits.ddu_code_6 == 0xE
113  && bits.ddu_code_7 == 0xE && bits.ddu_code_8 == 0xE;}
struct CSCDMBTrailer2013::@429 bits
unsigned CSCDMBTrailer2013::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 72 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 103 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 105 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 104 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 107 of file CSCDMBTrailer2013.h.

References bits.

Referenced by CSCDMBTrailer2013().

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

Implements CSCVDMBTrailerFormat.

Definition at line 108 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 76 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 75 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 87 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 73 of file CSCDMBTrailer2013.h.

References bits.

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

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 64 of file CSCDMBTrailer2013.h.

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

65  {
66  bits.dmb_id = dmbHeader.dmbID();
67  bits.crate_id = dmbHeader.crateID();
68  bits.dmb_l1a = dmbHeader.l1a();
69  bits.dmb_bxn = dmbHeader.bxn();
70  };
unsigned l1a() const
Definition: CSCDMBHeader.h:44
unsigned bxn() const
Definition: CSCDMBHeader.h:42
unsigned crateID() const
Definition: CSCDMBHeader.h:40
unsigned dmbID() const
Definition: CSCDMBHeader.h:41
struct CSCDMBTrailer2013::@429 bits
unsigned CSCDMBTrailer2013::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 115 of file CSCDMBTrailer2013.h.

Referenced by CSCDMBTrailer2013().

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

Implements CSCVDMBTrailerFormat.

Definition at line 91 of file CSCDMBTrailer2013.h.

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

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 100 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 96 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 83 of file CSCDMBTrailer2013.h.

References bits.

83 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2013::@429 bits

Member Data Documentation

unsigned CSCDMBTrailer2013::alct_endtimeout

DMB_BXN[4:0].

Definition at line 121 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_full

TMB_FULL(1)

Definition at line 147 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_half

TMB_HALF(1)

Definition at line 145 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_starttimeout

CFEB_Start_Timeout(7:1)

Definition at line 138 of file CSCDMBTrailer2013.h.

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

constant, should be '1111'

2nd Trailer word

Definition at line 125 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_hiwo

constant, should be '1111'

4th Trailer word

Definition at line 136 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_lowo

TMB_Start_Timeout(1)

Definition at line 132 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_half

constant, should be '1111'

5th Trailer word

Definition at line 142 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_movlp

CFEB_End_Timeout(7:1)

Definition at line 126 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_starttimeout

CFEB_FULL(7:4)

Definition at line 137 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::crate_id

DMB_ID(4)

Definition at line 152 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_1

ALCT_End_Timeout(1)

Definition at line 122 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_2

CFEB_MOVLP(5:1)

Definition at line 127 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_3

CFEB_FULL(3:1)

Definition at line 133 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_4

ALCT_Start_Timeout(1)

Definition at line 139 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_5

ALCT_FULL(1)

Definition at line 148 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_6

DMB_CRATE(8)

Definition at line 153 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_7

DMB_CRC_LowParity(1)

Definition at line 158 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_8

DMB_CRC_HighParity(1)

Definition at line 163 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_bxn

DMB_L1A[5:0].

Definition at line 120 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_1

constant, should be '1110'

7th Trailer word

Definition at line 156 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_2

constant, should be '1110'

8th Trailer word

Definition at line 161 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_id

constant, should be '1110'

6th Trailer word

Definition at line 151 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1a

1st Trailer word

Definition at line 119 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1pipe

constant, should be '1111'

3rd Trailer word

Definition at line 130 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_1

DMB_CRC[10:0].

Definition at line 157 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_2

DMB_CRC[21:11].

Definition at line 162 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_endtimeout

CFEB_HALF(7:1)

Definition at line 143 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_full

ALCT_HALF(1)

Definition at line 146 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_half

TMB_End_Timeout(1)

Definition at line 144 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_starttimeout

DMB_L1PIPE(8)

Definition at line 131 of file CSCDMBTrailer2013.h.