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

virtual unsigned alct_empty () const
 Empty bits don't exists in new format. More...
 
virtual unsigned alct_endtimeout () const
 
virtual unsigned alct_full () const
 
virtual unsigned alct_half () const
 
virtual unsigned alct_starttimeout () const
 
virtual unsigned cfeb_empty () const
 
virtual unsigned cfeb_endtimeout () const
 
virtual unsigned cfeb_full () const
 
virtual unsigned cfeb_half () const
 
virtual unsigned cfeb_movlp () const
 
virtual unsigned cfeb_starttimeout () const
 
bool check () const
 
virtual unsigned crateID () const
 
virtual unsigned crc22 () const
 
virtual unsigned crc_hi_parity () const
 
virtual unsigned crc_lo_parity () const
 
 CSCDMBTrailer2013 ()
 
 CSCDMBTrailer2013 (unsigned short *buf)
 
virtual unsigned short * data ()
 
virtual unsigned short * data () const
 
virtual unsigned dmb_bxn () const
 
virtual unsigned dmb_l1a () const
 
virtual unsigned dmb_l1pipe () const
 
virtual unsigned dmbID () const
 
virtual void setEventInformation (const CSCDMBHeader &dmbHeader)
 @ NEEDS TO BE DONE More...
 
unsigned sizeInWords () const
 
virtual unsigned tmb_empty () const
 
virtual unsigned tmb_endtimeout () const
 
virtual unsigned tmb_full () const
 
virtual unsigned tmb_half () const
 
virtual unsigned tmb_starttimeout () const
 
- 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 43 of file CSCDMBTrailer2013.h.

Constructor & Destructor Documentation

CSCDMBTrailer2013::CSCDMBTrailer2013 ( )
inline

Definition at line 45 of file CSCDMBTrailer2013.h.

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

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

Definition at line 52 of file CSCDMBTrailer2013.h.

References data(), and sizeInWords().

53  {
54  memcpy(data(), buf, sizeInWords()*2);
55  }
virtual unsigned short * data()
unsigned sizeInWords() const

Member Function Documentation

virtual unsigned CSCDMBTrailer2013::alct_empty ( ) const
inlinevirtual

Empty bits don't exists in new format.

Implements CSCVDMBTrailerFormat.

Definition at line 91 of file CSCDMBTrailer2013.h.

91 { return 0; };
virtual unsigned CSCDMBTrailer2013::alct_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2013.h.

References bits.

79 { return bits.alct_endtimeout; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::alct_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 100 of file CSCDMBTrailer2013.h.

References bits.

100 { return bits.alct_full; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::alct_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 96 of file CSCDMBTrailer2013.h.

References bits.

96 { return bits.alct_half; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::alct_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 83 of file CSCDMBTrailer2013.h.

References bits.

83 { return bits.alct_starttimeout; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::cfeb_empty ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 93 of file CSCDMBTrailer2013.h.

93 { return 0; };
virtual unsigned CSCDMBTrailer2013::cfeb_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 81 of file CSCDMBTrailer2013.h.

References bits.

81 { return bits.cfeb_endtimeout; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::cfeb_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 102 of file CSCDMBTrailer2013.h.

References bits.

102 { return (bits.cfeb_full_lowo | (bits.cfeb_full_hiwo << 3)); };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::cfeb_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 98 of file CSCDMBTrailer2013.h.

References bits.

98 { return bits.cfeb_half; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::cfeb_movlp ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 87 of file CSCDMBTrailer2013.h.

References bits.

87 { return bits.cfeb_movlp; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::cfeb_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 85 of file CSCDMBTrailer2013.h.

References bits.

85 { return bits.cfeb_starttimeout; };
struct CSCDMBTrailer2013::@321 bits
bool CSCDMBTrailer2013::check ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 111 of file CSCDMBTrailer2013.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 73 of file CSCDMBTrailer2013.h.

References bits.

73 { return bits.crate_id; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::crc22 ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 104 of file CSCDMBTrailer2013.h.

References bits.

104 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::crc_hi_parity ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 106 of file CSCDMBTrailer2013.h.

References bits.

106 { return bits.dmb_parity_2; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::crc_lo_parity ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 105 of file CSCDMBTrailer2013.h.

References bits.

105 { return bits.dmb_parity_1; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned short* CSCDMBTrailer2013::data ( )
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 108 of file CSCDMBTrailer2013.h.

References bits.

Referenced by CSCDMBTrailer2013().

108 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2013::@321 bits
virtual unsigned short* CSCDMBTrailer2013::data ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 109 of file CSCDMBTrailer2013.h.

References bits.

109 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::dmb_bxn ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 77 of file CSCDMBTrailer2013.h.

References bits.

77 { return bits.dmb_bxn; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::dmb_l1a ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 76 of file CSCDMBTrailer2013.h.

References bits.

76 { return bits.dmb_l1a; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::dmb_l1pipe ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 88 of file CSCDMBTrailer2013.h.

References bits.

88 { return bits.dmb_l1pipe; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::dmbID ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 74 of file CSCDMBTrailer2013.h.

References bits.

74 { return bits.dmb_id; };
struct CSCDMBTrailer2013::@321 bits
virtual void CSCDMBTrailer2013::setEventInformation ( const CSCDMBHeader dmbHeader)
inlinevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 65 of file CSCDMBTrailer2013.h.

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

66  {
67  bits.dmb_id = dmbHeader.dmbID();
68  bits.crate_id = dmbHeader.crateID();
69  bits.dmb_l1a = dmbHeader.l1a();
70  bits.dmb_bxn = dmbHeader.bxn();
71  };
unsigned l1a() const
Definition: CSCDMBHeader.h:50
struct CSCDMBTrailer2013::@321 bits
unsigned bxn() const
Definition: CSCDMBHeader.h:48
unsigned crateID() const
Definition: CSCDMBHeader.h:46
unsigned dmbID() const
Definition: CSCDMBHeader.h:47
unsigned CSCDMBTrailer2013::sizeInWords ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 116 of file CSCDMBTrailer2013.h.

Referenced by CSCDMBTrailer2013().

116 { return 8; }
virtual unsigned CSCDMBTrailer2013::tmb_empty ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 92 of file CSCDMBTrailer2013.h.

92 { return 0 ; };
virtual unsigned CSCDMBTrailer2013::tmb_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 80 of file CSCDMBTrailer2013.h.

References bits.

80 { return bits.tmb_endtimeout; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::tmb_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 101 of file CSCDMBTrailer2013.h.

References bits.

101 { return bits.tmb_full; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::tmb_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 97 of file CSCDMBTrailer2013.h.

References bits.

97 { return bits.tmb_half; };
struct CSCDMBTrailer2013::@321 bits
virtual unsigned CSCDMBTrailer2013::tmb_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 84 of file CSCDMBTrailer2013.h.

References bits.

84 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2013::@321 bits

Member Data Documentation

unsigned CSCDMBTrailer2013::alct_endtimeout

DMB_BXN[4:0].

Definition at line 122 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_full

TMB_FULL(1)

Definition at line 148 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_half

TMB_HALF(1)

Definition at line 146 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::alct_starttimeout

CFEB_Start_Timeout(7:1)

Definition at line 139 of file CSCDMBTrailer2013.h.

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

constant, should be '1111'

2nd Trailer word

Definition at line 126 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_hiwo

constant, should be '1111'

4th Trailer word

Definition at line 137 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_full_lowo

TMB_Start_Timeout(1)

Definition at line 133 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_half

constant, should be '1111'

5th Trailer word

Definition at line 143 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_movlp

CFEB_End_Timeout(7:1)

Definition at line 127 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::cfeb_starttimeout

CFEB_FULL(7:4)

Definition at line 138 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::crate_id

DMB_ID(4)

Definition at line 153 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_1

ALCT_End_Timeout(1)

Definition at line 123 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_2

CFEB_MOVLP(5:1)

Definition at line 128 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_3

CFEB_FULL(3:1)

Definition at line 134 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_4

ALCT_Start_Timeout(1)

Definition at line 140 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_5

ALCT_FULL(1)

Definition at line 149 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_6

DMB_CRATE(8)

Definition at line 154 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_7

DMB_CRC_LowParity(1)

Definition at line 159 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::ddu_code_8

DMB_CRC_HighParity(1)

Definition at line 164 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_bxn

DMB_L1A[5:0].

Definition at line 121 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_1

constant, should be '1110'

7th Trailer word

Definition at line 157 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_crc_2

constant, should be '1110'

8th Trailer word

Definition at line 162 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_id

constant, should be '1110'

6th Trailer word

Definition at line 152 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1a

1st Trailer word

Definition at line 120 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_l1pipe

constant, should be '1111'

3rd Trailer word

Definition at line 131 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_1

DMB_CRC[10:0].

Definition at line 158 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::dmb_parity_2

DMB_CRC[21:11].

Definition at line 163 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_endtimeout

CFEB_HALF(7:1)

Definition at line 144 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_full

ALCT_HALF(1)

Definition at line 147 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_half

TMB_End_Timeout(1)

Definition at line 145 of file CSCDMBTrailer2013.h.

unsigned CSCDMBTrailer2013::tmb_starttimeout

DMB_L1PIPE(8)

Definition at line 132 of file CSCDMBTrailer2013.h.