CMS 3D CMS Logo

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

#include <CSCDMBTrailer2005.h>

Inheritance diagram for CSCDMBTrailer2005:
CSCVDMBTrailerFormat

Public Member Functions

unsigned alct_empty () const override
 
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
 
 CSCDMBTrailer2005 ()
 
 CSCDMBTrailer2005 (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_empty: 1
 
   unsigned   alct_endtimeout: 1
 
   unsigned   alct_full: 1
 
   unsigned   alct_half: 1
 
   unsigned   alct_starttimeout: 1
 
   unsigned   cfeb_empty: 5
 
   unsigned   cfeb_endtimeout: 5
 
   unsigned   cfeb_full: 5
 
   unsigned   cfeb_half: 5
 
   unsigned   cfeb_movlp: 5
 
   unsigned   cfeb_starttimeout: 5
 
   unsigned   crate_id: 8
 
   unsigned   ddu_code_1: 4
 
   unsigned   ddu_code_2: 4
 
   unsigned   ddu_code_3: 4
 
   unsigned   ddu_code_4: 4
 
   unsigned   ddu_code_5: 4
 
   unsigned   ddu_code_6: 4
 
   unsigned   ddu_code_7: 4
 
   unsigned   ddu_code_8: 4
 
   unsigned   dmb_bxn: 4
 
   unsigned   dmb_crc_1: 11
 
   unsigned   dmb_crc_2: 11
 
   unsigned   dmb_id: 4
 
   unsigned   dmb_l1a: 8
 
   unsigned   dmb_l1pipe: 8
 
   unsigned   dmb_parity_1: 1
 
   unsigned   dmb_parity_2: 1
 
   unsigned   tmb_empty: 1
 
   unsigned   tmb_endtimeout: 1
 
   unsigned   tmb_full: 1
 
   unsigned   tmb_half: 1
 
   unsigned   tmb_starttimeout: 1
 
bits
 

Detailed Description

Definition at line 8 of file CSCDMBTrailer2005.h.

Constructor & Destructor Documentation

CSCDMBTrailer2005::CSCDMBTrailer2005 ( )
inline

Definition at line 10 of file CSCDMBTrailer2005.h.

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

11  {
12  bzero(data(), sizeInWords()*2);
13  bits.ddu_code_1 = bits.ddu_code_2 = bits.ddu_code_3 = bits.ddu_code_4 = 0xF;
14  bits.ddu_code_5 = bits.ddu_code_6 = bits.ddu_code_7 = bits.ddu_code_8 = 0xE;
15  }
struct CSCDMBTrailer2005::@379 bits
unsigned short * data() override
unsigned sizeInWords() const override
CSCDMBTrailer2005::CSCDMBTrailer2005 ( const uint16_t *  buf)
inline

Definition at line 17 of file CSCDMBTrailer2005.h.

References data(), and sizeInWords().

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

Member Function Documentation

unsigned CSCDMBTrailer2005::alct_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 53 of file CSCDMBTrailer2005.h.

References bits.

53 { return bits.alct_empty; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 42 of file CSCDMBTrailer2005.h.

References bits.

42 { return bits.alct_endtimeout; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::alct_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 61 of file CSCDMBTrailer2005.h.

References bits.

61 { return bits.alct_full; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::alct_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 57 of file CSCDMBTrailer2005.h.

References bits.

57 { return bits.alct_half; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::alct_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 46 of file CSCDMBTrailer2005.h.

References bits.

46 { return bits.alct_starttimeout; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 55 of file CSCDMBTrailer2005.h.

References bits.

55 { return bits.cfeb_empty; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 44 of file CSCDMBTrailer2005.h.

References bits.

44 { return bits.cfeb_endtimeout; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 63 of file CSCDMBTrailer2005.h.

References bits.

63 { return bits.cfeb_full; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 59 of file CSCDMBTrailer2005.h.

References bits.

59 { return bits.cfeb_half; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_movlp ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 50 of file CSCDMBTrailer2005.h.

References bits.

50 { return bits.cfeb_movlp; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::cfeb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 48 of file CSCDMBTrailer2005.h.

References bits.

48 { return bits.cfeb_starttimeout; };
struct CSCDMBTrailer2005::@379 bits
bool CSCDMBTrailer2005::check ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 73 of file CSCDMBTrailer2005.h.

References bits.

73  {return bits.ddu_code_1 == 0xF && bits.ddu_code_2 == 0xF
74  && bits.ddu_code_3 == 0xF && bits.ddu_code_4 == 0xF
75  && bits.ddu_code_5 == 0xE && bits.ddu_code_6 == 0xE
76  && bits.ddu_code_7 == 0xE && bits.ddu_code_8 == 0xE;}
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 36 of file CSCDMBTrailer2005.h.

References bits.

36 { return bits.crate_id; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::crc22 ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 65 of file CSCDMBTrailer2005.h.

References bits.

65 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::crc_hi_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2005.h.

References bits.

67 { return bits.dmb_parity_2; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::crc_lo_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 66 of file CSCDMBTrailer2005.h.

References bits.

66 { return bits.dmb_parity_1; };
struct CSCDMBTrailer2005::@379 bits
unsigned short* CSCDMBTrailer2005::data ( )
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 70 of file CSCDMBTrailer2005.h.

References bits.

Referenced by CSCDMBTrailer2005().

70 {return (unsigned short *)(&bits);}
struct CSCDMBTrailer2005::@379 bits
unsigned short* CSCDMBTrailer2005::data ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 71 of file CSCDMBTrailer2005.h.

References bits.

71 {return (unsigned short *)(&bits);}
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::dmb_bxn ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 40 of file CSCDMBTrailer2005.h.

References bits.

40 { return bits.dmb_bxn; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::dmb_l1a ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 39 of file CSCDMBTrailer2005.h.

References bits.

39 { return bits.dmb_l1a; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::dmb_l1pipe ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 51 of file CSCDMBTrailer2005.h.

References bits.

51 { return bits.dmb_l1pipe; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::dmbID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 37 of file CSCDMBTrailer2005.h.

References bits.

37 { return bits.dmb_id; };
struct CSCDMBTrailer2005::@379 bits
void CSCDMBTrailer2005::setEventInformation ( const CSCDMBHeader dmbHeader)
inlineoverridevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 28 of file CSCDMBTrailer2005.h.

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

29  {
30  bits.dmb_id = dmbHeader.dmbID();
31  bits.crate_id = dmbHeader.crateID();
32  bits.dmb_l1a = dmbHeader.l1a();
33  bits.dmb_bxn = dmbHeader.bxn();
34  };
unsigned l1a() const
Definition: CSCDMBHeader.h:49
unsigned bxn() const
Definition: CSCDMBHeader.h:47
unsigned crateID() const
Definition: CSCDMBHeader.h:45
struct CSCDMBTrailer2005::@379 bits
unsigned dmbID() const
Definition: CSCDMBHeader.h:46
unsigned CSCDMBTrailer2005::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 78 of file CSCDMBTrailer2005.h.

Referenced by CSCDMBTrailer2005().

78 {return 8;}
unsigned CSCDMBTrailer2005::tmb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 54 of file CSCDMBTrailer2005.h.

References bits.

54 {return bits.tmb_empty; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::tmb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 43 of file CSCDMBTrailer2005.h.

References bits.

43 { return bits.tmb_endtimeout; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::tmb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 62 of file CSCDMBTrailer2005.h.

References bits.

62 {return bits.tmb_full; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::tmb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 58 of file CSCDMBTrailer2005.h.

References bits.

58 {return bits.tmb_half; };
struct CSCDMBTrailer2005::@379 bits
unsigned CSCDMBTrailer2005::tmb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 47 of file CSCDMBTrailer2005.h.

References bits.

47 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2005::@379 bits

Member Data Documentation

unsigned CSCDMBTrailer2005::alct_empty

Definition at line 94 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_endtimeout

Definition at line 100 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_full

Definition at line 108 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_half

Definition at line 87 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_starttimeout

Definition at line 92 of file CSCDMBTrailer2005.h.

struct { ... } CSCDMBTrailer2005::bits
unsigned CSCDMBTrailer2005::cfeb_empty

Definition at line 105 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_endtimeout

Definition at line 101 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_full

Definition at line 106 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_half

Definition at line 85 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_movlp

Definition at line 88 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_starttimeout

Definition at line 98 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::crate_id

Definition at line 112 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_1

Definition at line 83 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_2

Definition at line 89 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_3

Definition at line 96 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_4

Definition at line 102 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_5

Definition at line 109 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_6

Definition at line 113 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_7

Definition at line 117 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_8

Definition at line 121 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_bxn

Definition at line 82 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_crc_1

Definition at line 115 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_crc_2

Definition at line 119 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_id

Definition at line 111 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_l1a

Definition at line 81 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_l1pipe

Definition at line 95 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_parity_1

Definition at line 116 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_parity_2

Definition at line 120 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_empty

Definition at line 93 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_endtimeout

Definition at line 99 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_full

Definition at line 107 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_half

Definition at line 86 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_starttimeout

Definition at line 91 of file CSCDMBTrailer2005.h.