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() [1/2]

CSCDMBTrailer2005::CSCDMBTrailer2005 ( )
inline

Definition at line 10 of file CSCDMBTrailer2005.h.

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

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

◆ CSCDMBTrailer2005() [2/2]

CSCDMBTrailer2005::CSCDMBTrailer2005 ( const uint16_t *  buf)
inline

Definition at line 16 of file CSCDMBTrailer2005.h.

References visDQMUpload::buf, data(), and sizeInWords().

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

Member Function Documentation

◆ alct_empty()

unsigned CSCDMBTrailer2005::alct_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 48 of file CSCDMBTrailer2005.h.

References bits.

48 { return bits.alct_empty; };
struct CSCDMBTrailer2005::@489 bits

◆ alct_endtimeout()

unsigned CSCDMBTrailer2005::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 37 of file CSCDMBTrailer2005.h.

References bits.

37 { return bits.alct_endtimeout; };
struct CSCDMBTrailer2005::@489 bits

◆ alct_full()

unsigned CSCDMBTrailer2005::alct_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 56 of file CSCDMBTrailer2005.h.

References bits.

56 { return bits.alct_full; };
struct CSCDMBTrailer2005::@489 bits

◆ alct_half()

unsigned CSCDMBTrailer2005::alct_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 52 of file CSCDMBTrailer2005.h.

References bits.

52 { return bits.alct_half; };
struct CSCDMBTrailer2005::@489 bits

◆ alct_starttimeout()

unsigned CSCDMBTrailer2005::alct_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 41 of file CSCDMBTrailer2005.h.

References bits.

41 { return bits.alct_starttimeout; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_empty()

unsigned CSCDMBTrailer2005::cfeb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 50 of file CSCDMBTrailer2005.h.

References bits.

50 { return bits.cfeb_empty; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_endtimeout()

unsigned CSCDMBTrailer2005::cfeb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 39 of file CSCDMBTrailer2005.h.

References bits.

39 { return bits.cfeb_endtimeout; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_full()

unsigned CSCDMBTrailer2005::cfeb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 58 of file CSCDMBTrailer2005.h.

References bits.

58 { return bits.cfeb_full; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_half()

unsigned CSCDMBTrailer2005::cfeb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 54 of file CSCDMBTrailer2005.h.

References bits.

54 { return bits.cfeb_half; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_movlp()

unsigned CSCDMBTrailer2005::cfeb_movlp ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 45 of file CSCDMBTrailer2005.h.

References bits.

45 { return bits.cfeb_movlp; };
struct CSCDMBTrailer2005::@489 bits

◆ cfeb_starttimeout()

unsigned CSCDMBTrailer2005::cfeb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 43 of file CSCDMBTrailer2005.h.

References bits.

43 { return bits.cfeb_starttimeout; };
struct CSCDMBTrailer2005::@489 bits

◆ check()

bool CSCDMBTrailer2005::check ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2005.h.

References bits.

67  {
68  return bits.ddu_code_1 == 0xF && bits.ddu_code_2 == 0xF && bits.ddu_code_3 == 0xF && bits.ddu_code_4 == 0xF &&
69  bits.ddu_code_5 == 0xE && bits.ddu_code_6 == 0xE && bits.ddu_code_7 == 0xE && bits.ddu_code_8 == 0xE;
70  }
struct CSCDMBTrailer2005::@489 bits

◆ crateID()

unsigned CSCDMBTrailer2005::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 31 of file CSCDMBTrailer2005.h.

References bits.

31 { return bits.crate_id; };
struct CSCDMBTrailer2005::@489 bits

◆ crc22()

unsigned CSCDMBTrailer2005::crc22 ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2005.h.

References bits.

60 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };
struct CSCDMBTrailer2005::@489 bits

◆ crc_hi_parity()

unsigned CSCDMBTrailer2005::crc_hi_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 62 of file CSCDMBTrailer2005.h.

References bits.

62 { return bits.dmb_parity_2; };
struct CSCDMBTrailer2005::@489 bits

◆ crc_lo_parity()

unsigned CSCDMBTrailer2005::crc_lo_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 61 of file CSCDMBTrailer2005.h.

References bits.

61 { return bits.dmb_parity_1; };
struct CSCDMBTrailer2005::@489 bits

◆ data() [1/2]

unsigned short* CSCDMBTrailer2005::data ( )
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 64 of file CSCDMBTrailer2005.h.

References bits.

Referenced by CSCDMBTrailer2005().

64 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2005::@489 bits

◆ data() [2/2]

unsigned short* CSCDMBTrailer2005::data ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 65 of file CSCDMBTrailer2005.h.

References bits.

65 { return (unsigned short *)(&bits); }
struct CSCDMBTrailer2005::@489 bits

◆ dmb_bxn()

unsigned CSCDMBTrailer2005::dmb_bxn ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 35 of file CSCDMBTrailer2005.h.

References bits.

35 { return bits.dmb_bxn; };
struct CSCDMBTrailer2005::@489 bits

◆ dmb_l1a()

unsigned CSCDMBTrailer2005::dmb_l1a ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 34 of file CSCDMBTrailer2005.h.

References bits.

34 { return bits.dmb_l1a; };
struct CSCDMBTrailer2005::@489 bits

◆ dmb_l1pipe()

unsigned CSCDMBTrailer2005::dmb_l1pipe ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 46 of file CSCDMBTrailer2005.h.

References bits.

46 { return bits.dmb_l1pipe; };
struct CSCDMBTrailer2005::@489 bits

◆ dmbID()

unsigned CSCDMBTrailer2005::dmbID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 32 of file CSCDMBTrailer2005.h.

References bits.

32 { return bits.dmb_id; };
struct CSCDMBTrailer2005::@489 bits

◆ setEventInformation()

void CSCDMBTrailer2005::setEventInformation ( const CSCDMBHeader dmbHeader)
inlineoverridevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 24 of file CSCDMBTrailer2005.h.

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

24  {
25  bits.dmb_id = dmbHeader.dmbID();
26  bits.crate_id = dmbHeader.crateID();
27  bits.dmb_l1a = dmbHeader.l1a();
28  bits.dmb_bxn = dmbHeader.bxn();
29  };
struct CSCDMBTrailer2005::@489 bits
unsigned bxn() const
Definition: CSCDMBHeader.h:37
unsigned l1a() const
Definition: CSCDMBHeader.h:39
unsigned dmbID() const
Definition: CSCDMBHeader.h:36
unsigned crateID() const
Definition: CSCDMBHeader.h:35

◆ sizeInWords()

unsigned CSCDMBTrailer2005::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 72 of file CSCDMBTrailer2005.h.

Referenced by CSCDMBTrailer2005().

72 { return 8; }

◆ tmb_empty()

unsigned CSCDMBTrailer2005::tmb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 49 of file CSCDMBTrailer2005.h.

References bits.

49 { return bits.tmb_empty; };
struct CSCDMBTrailer2005::@489 bits

◆ tmb_endtimeout()

unsigned CSCDMBTrailer2005::tmb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 38 of file CSCDMBTrailer2005.h.

References bits.

38 { return bits.tmb_endtimeout; };
struct CSCDMBTrailer2005::@489 bits

◆ tmb_full()

unsigned CSCDMBTrailer2005::tmb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 57 of file CSCDMBTrailer2005.h.

References bits.

57 { return bits.tmb_full; };
struct CSCDMBTrailer2005::@489 bits

◆ tmb_half()

unsigned CSCDMBTrailer2005::tmb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 53 of file CSCDMBTrailer2005.h.

References bits.

53 { return bits.tmb_half; };
struct CSCDMBTrailer2005::@489 bits

◆ tmb_starttimeout()

unsigned CSCDMBTrailer2005::tmb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 42 of file CSCDMBTrailer2005.h.

References bits.

42 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2005::@489 bits

Member Data Documentation

◆ alct_empty

unsigned CSCDMBTrailer2005::alct_empty

Definition at line 88 of file CSCDMBTrailer2005.h.

◆ alct_endtimeout

unsigned CSCDMBTrailer2005::alct_endtimeout

Definition at line 94 of file CSCDMBTrailer2005.h.

◆ alct_full

unsigned CSCDMBTrailer2005::alct_full

Definition at line 101 of file CSCDMBTrailer2005.h.

◆ alct_half

unsigned CSCDMBTrailer2005::alct_half

Definition at line 81 of file CSCDMBTrailer2005.h.

◆ alct_starttimeout

unsigned CSCDMBTrailer2005::alct_starttimeout

Definition at line 86 of file CSCDMBTrailer2005.h.

◆ bits

struct { ... } CSCDMBTrailer2005::bits

◆ cfeb_empty

unsigned CSCDMBTrailer2005::cfeb_empty

Definition at line 98 of file CSCDMBTrailer2005.h.

◆ cfeb_endtimeout

unsigned CSCDMBTrailer2005::cfeb_endtimeout

Definition at line 95 of file CSCDMBTrailer2005.h.

◆ cfeb_full

unsigned CSCDMBTrailer2005::cfeb_full

Definition at line 99 of file CSCDMBTrailer2005.h.

◆ cfeb_half

unsigned CSCDMBTrailer2005::cfeb_half

Definition at line 79 of file CSCDMBTrailer2005.h.

◆ cfeb_movlp

unsigned CSCDMBTrailer2005::cfeb_movlp

Definition at line 82 of file CSCDMBTrailer2005.h.

◆ cfeb_starttimeout

unsigned CSCDMBTrailer2005::cfeb_starttimeout

Definition at line 92 of file CSCDMBTrailer2005.h.

◆ crate_id

unsigned CSCDMBTrailer2005::crate_id

Definition at line 105 of file CSCDMBTrailer2005.h.

◆ ddu_code_1

unsigned CSCDMBTrailer2005::ddu_code_1

Definition at line 77 of file CSCDMBTrailer2005.h.

◆ ddu_code_2

unsigned CSCDMBTrailer2005::ddu_code_2

Definition at line 83 of file CSCDMBTrailer2005.h.

◆ ddu_code_3

unsigned CSCDMBTrailer2005::ddu_code_3

Definition at line 90 of file CSCDMBTrailer2005.h.

◆ ddu_code_4

unsigned CSCDMBTrailer2005::ddu_code_4

Definition at line 96 of file CSCDMBTrailer2005.h.

◆ ddu_code_5

unsigned CSCDMBTrailer2005::ddu_code_5

Definition at line 102 of file CSCDMBTrailer2005.h.

◆ ddu_code_6

unsigned CSCDMBTrailer2005::ddu_code_6

Definition at line 106 of file CSCDMBTrailer2005.h.

◆ ddu_code_7

unsigned CSCDMBTrailer2005::ddu_code_7

Definition at line 110 of file CSCDMBTrailer2005.h.

◆ ddu_code_8

unsigned CSCDMBTrailer2005::ddu_code_8

Definition at line 114 of file CSCDMBTrailer2005.h.

◆ dmb_bxn

unsigned CSCDMBTrailer2005::dmb_bxn

Definition at line 76 of file CSCDMBTrailer2005.h.

◆ dmb_crc_1

unsigned CSCDMBTrailer2005::dmb_crc_1

Definition at line 108 of file CSCDMBTrailer2005.h.

◆ dmb_crc_2

unsigned CSCDMBTrailer2005::dmb_crc_2

Definition at line 112 of file CSCDMBTrailer2005.h.

◆ dmb_id

unsigned CSCDMBTrailer2005::dmb_id

Definition at line 104 of file CSCDMBTrailer2005.h.

◆ dmb_l1a

unsigned CSCDMBTrailer2005::dmb_l1a

Definition at line 75 of file CSCDMBTrailer2005.h.

◆ dmb_l1pipe

unsigned CSCDMBTrailer2005::dmb_l1pipe

Definition at line 89 of file CSCDMBTrailer2005.h.

◆ dmb_parity_1

unsigned CSCDMBTrailer2005::dmb_parity_1

Definition at line 109 of file CSCDMBTrailer2005.h.

◆ dmb_parity_2

unsigned CSCDMBTrailer2005::dmb_parity_2

Definition at line 113 of file CSCDMBTrailer2005.h.

◆ tmb_empty

unsigned CSCDMBTrailer2005::tmb_empty

Definition at line 87 of file CSCDMBTrailer2005.h.

◆ tmb_endtimeout

unsigned CSCDMBTrailer2005::tmb_endtimeout

Definition at line 93 of file CSCDMBTrailer2005.h.

◆ tmb_full

unsigned CSCDMBTrailer2005::tmb_full

Definition at line 100 of file CSCDMBTrailer2005.h.

◆ tmb_half

unsigned CSCDMBTrailer2005::tmb_half

Definition at line 80 of file CSCDMBTrailer2005.h.

◆ tmb_starttimeout

unsigned CSCDMBTrailer2005::tmb_starttimeout

Definition at line 85 of file CSCDMBTrailer2005.h.