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 (unsigned short *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 9 of file CSCDMBTrailer2005.h.

Constructor & Destructor Documentation

CSCDMBTrailer2005::CSCDMBTrailer2005 ( )
inline

Definition at line 11 of file CSCDMBTrailer2005.h.

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

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

Definition at line 18 of file CSCDMBTrailer2005.h.

References data(), and sizeInWords().

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

Member Function Documentation

unsigned CSCDMBTrailer2005::alct_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 54 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 43 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 62 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 58 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 47 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 56 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 45 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 64 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 51 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 49 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 74 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 37 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 66 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 68 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 71 of file CSCDMBTrailer2005.h.

References bits.

Referenced by CSCDMBTrailer2005().

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

Implements CSCVDMBTrailerFormat.

Definition at line 72 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 41 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 40 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 52 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 38 of file CSCDMBTrailer2005.h.

References bits.

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

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 29 of file CSCDMBTrailer2005.h.

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

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

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2005.h.

Referenced by CSCDMBTrailer2005().

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

Implements CSCVDMBTrailerFormat.

Definition at line 55 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 44 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 63 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 59 of file CSCDMBTrailer2005.h.

References bits.

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

Implements CSCVDMBTrailerFormat.

Definition at line 48 of file CSCDMBTrailer2005.h.

References bits.

48 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2005::@373 bits

Member Data Documentation

unsigned CSCDMBTrailer2005::alct_empty

Definition at line 95 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_endtimeout

Definition at line 101 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_full

Definition at line 109 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_half

Definition at line 88 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::alct_starttimeout

Definition at line 93 of file CSCDMBTrailer2005.h.

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

Definition at line 106 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_endtimeout

Definition at line 102 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_full

Definition at line 107 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_half

Definition at line 86 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_movlp

Definition at line 89 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::cfeb_starttimeout

Definition at line 99 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::crate_id

Definition at line 113 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_1

Definition at line 84 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_2

Definition at line 90 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_3

Definition at line 97 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_4

Definition at line 103 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_5

Definition at line 110 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_6

Definition at line 114 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_7

Definition at line 118 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::ddu_code_8

Definition at line 122 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_bxn

Definition at line 83 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_crc_1

Definition at line 116 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_crc_2

Definition at line 120 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_id

Definition at line 112 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_l1a

Definition at line 82 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_l1pipe

Definition at line 96 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_parity_1

Definition at line 117 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::dmb_parity_2

Definition at line 121 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_empty

Definition at line 94 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_endtimeout

Definition at line 100 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_full

Definition at line 108 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_half

Definition at line 87 of file CSCDMBTrailer2005.h.

unsigned CSCDMBTrailer2005::tmb_starttimeout

Definition at line 92 of file CSCDMBTrailer2005.h.