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 () const override
 
unsigned short * data () 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.

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  }

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

◆ CSCDMBTrailer2005() [2/2]

CSCDMBTrailer2005::CSCDMBTrailer2005 ( const uint16_t *  buf)
inline

Definition at line 16 of file CSCDMBTrailer2005.h.

16 { memcpy(data(), buf, sizeInWords() * 2); };

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

Member Function Documentation

◆ alct_empty()

unsigned CSCDMBTrailer2005::alct_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 48 of file CSCDMBTrailer2005.h.

48 { return bits.alct_empty; };

References bits.

◆ alct_endtimeout()

unsigned CSCDMBTrailer2005::alct_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 37 of file CSCDMBTrailer2005.h.

37 { return bits.alct_endtimeout; };

References bits.

◆ alct_full()

unsigned CSCDMBTrailer2005::alct_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 56 of file CSCDMBTrailer2005.h.

56 { return bits.alct_full; };

References bits.

◆ alct_half()

unsigned CSCDMBTrailer2005::alct_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 52 of file CSCDMBTrailer2005.h.

52 { return bits.alct_half; };

References bits.

◆ alct_starttimeout()

unsigned CSCDMBTrailer2005::alct_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 41 of file CSCDMBTrailer2005.h.

41 { return bits.alct_starttimeout; };

References bits.

◆ cfeb_empty()

unsigned CSCDMBTrailer2005::cfeb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 50 of file CSCDMBTrailer2005.h.

50 { return bits.cfeb_empty; };

References bits.

◆ cfeb_endtimeout()

unsigned CSCDMBTrailer2005::cfeb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 39 of file CSCDMBTrailer2005.h.

39 { return bits.cfeb_endtimeout; };

References bits.

◆ cfeb_full()

unsigned CSCDMBTrailer2005::cfeb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 58 of file CSCDMBTrailer2005.h.

58 { return bits.cfeb_full; };

References bits.

◆ cfeb_half()

unsigned CSCDMBTrailer2005::cfeb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 54 of file CSCDMBTrailer2005.h.

54 { return bits.cfeb_half; };

References bits.

◆ cfeb_movlp()

unsigned CSCDMBTrailer2005::cfeb_movlp ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 45 of file CSCDMBTrailer2005.h.

45 { return bits.cfeb_movlp; };

References bits.

◆ cfeb_starttimeout()

unsigned CSCDMBTrailer2005::cfeb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 43 of file CSCDMBTrailer2005.h.

43 { return bits.cfeb_starttimeout; };

References bits.

◆ check()

bool CSCDMBTrailer2005::check ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2005.h.

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  }

References bits.

◆ crateID()

unsigned CSCDMBTrailer2005::crateID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 31 of file CSCDMBTrailer2005.h.

31 { return bits.crate_id; };

References bits.

◆ crc22()

unsigned CSCDMBTrailer2005::crc22 ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2005.h.

60 { return (bits.dmb_crc_1 | (bits.dmb_crc_2 << 11)); };

References bits.

◆ crc_hi_parity()

unsigned CSCDMBTrailer2005::crc_hi_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 62 of file CSCDMBTrailer2005.h.

62 { return bits.dmb_parity_2; };

References bits.

◆ crc_lo_parity()

unsigned CSCDMBTrailer2005::crc_lo_parity ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 61 of file CSCDMBTrailer2005.h.

61 { return bits.dmb_parity_1; };

References bits.

◆ data() [1/2]

unsigned short* CSCDMBTrailer2005::data ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 65 of file CSCDMBTrailer2005.h.

65 { return (unsigned short *)(&bits); }

References bits.

◆ data() [2/2]

unsigned short* CSCDMBTrailer2005::data ( )
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 64 of file CSCDMBTrailer2005.h.

64 { return (unsigned short *)(&bits); }

References bits.

Referenced by CSCDMBTrailer2005().

◆ dmb_bxn()

unsigned CSCDMBTrailer2005::dmb_bxn ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 35 of file CSCDMBTrailer2005.h.

35 { return bits.dmb_bxn; };

References bits.

◆ dmb_l1a()

unsigned CSCDMBTrailer2005::dmb_l1a ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 34 of file CSCDMBTrailer2005.h.

34 { return bits.dmb_l1a; };

References bits.

◆ dmb_l1pipe()

unsigned CSCDMBTrailer2005::dmb_l1pipe ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 46 of file CSCDMBTrailer2005.h.

46 { return bits.dmb_l1pipe; };

References bits.

◆ dmbID()

unsigned CSCDMBTrailer2005::dmbID ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 32 of file CSCDMBTrailer2005.h.

32 { return bits.dmb_id; };

References bits.

◆ setEventInformation()

void CSCDMBTrailer2005::setEventInformation ( const CSCDMBHeader dmbHeader)
inlineoverridevirtual

@ NEEDS TO BE DONE

Implements CSCVDMBTrailerFormat.

Definition at line 24 of file CSCDMBTrailer2005.h.

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  };

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

◆ sizeInWords()

unsigned CSCDMBTrailer2005::sizeInWords ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 72 of file CSCDMBTrailer2005.h.

72 { return 8; }

Referenced by CSCDMBTrailer2005().

◆ tmb_empty()

unsigned CSCDMBTrailer2005::tmb_empty ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 49 of file CSCDMBTrailer2005.h.

49 { return bits.tmb_empty; };

References bits.

◆ tmb_endtimeout()

unsigned CSCDMBTrailer2005::tmb_endtimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 38 of file CSCDMBTrailer2005.h.

38 { return bits.tmb_endtimeout; };

References bits.

◆ tmb_full()

unsigned CSCDMBTrailer2005::tmb_full ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 57 of file CSCDMBTrailer2005.h.

57 { return bits.tmb_full; };

References bits.

◆ tmb_half()

unsigned CSCDMBTrailer2005::tmb_half ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 53 of file CSCDMBTrailer2005.h.

53 { return bits.tmb_half; };

References bits.

◆ tmb_starttimeout()

unsigned CSCDMBTrailer2005::tmb_starttimeout ( ) const
inlineoverridevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 42 of file CSCDMBTrailer2005.h.

42 { return bits.tmb_starttimeout; };

References 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.

CSCDMBHeader::l1a
unsigned l1a() const
Definition: CSCDMBHeader.h:39
CSCDMBTrailer2005::data
unsigned short * data() override
Definition: CSCDMBTrailer2005.h:64
CSCDMBHeader::crateID
unsigned crateID() const
Definition: CSCDMBHeader.h:35
CSCDMBHeader::bxn
unsigned bxn() const
Definition: CSCDMBHeader.h:37
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCDMBTrailer2005::bits
struct CSCDMBTrailer2005::@473 bits
CSCDMBHeader::dmbID
unsigned dmbID() const
Definition: CSCDMBHeader.h:36
CSCDMBTrailer2005::sizeInWords
unsigned sizeInWords() const override
Definition: CSCDMBTrailer2005.h:72