CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
CSCDMBTrailer2005 Struct Reference

#include <CSCDMBTrailer2005.h>

Inheritance diagram for CSCDMBTrailer2005:
CSCVDMBTrailerFormat

Public Member Functions

virtual unsigned alct_empty () const
 
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
 
 CSCDMBTrailer2005 ()
 
 CSCDMBTrailer2005 (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_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::@304 bits
virtual unsigned short * data()
unsigned sizeInWords() const
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  };
virtual unsigned short * data()
unsigned sizeInWords() const

Member Function Documentation

virtual unsigned CSCDMBTrailer2005::alct_empty ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 54 of file CSCDMBTrailer2005.h.

References bits.

54 { return bits.alct_empty; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::alct_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 43 of file CSCDMBTrailer2005.h.

References bits.

43 { return bits.alct_endtimeout; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::alct_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 62 of file CSCDMBTrailer2005.h.

References bits.

62 { return bits.alct_full; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::alct_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 58 of file CSCDMBTrailer2005.h.

References bits.

58 { return bits.alct_half; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::alct_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 47 of file CSCDMBTrailer2005.h.

References bits.

47 { return bits.alct_starttimeout; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_empty ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 56 of file CSCDMBTrailer2005.h.

References bits.

56 { return bits.cfeb_empty; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 45 of file CSCDMBTrailer2005.h.

References bits.

45 { return bits.cfeb_endtimeout; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 64 of file CSCDMBTrailer2005.h.

References bits.

64 { return bits.cfeb_full; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 60 of file CSCDMBTrailer2005.h.

References bits.

60 { return bits.cfeb_half; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_movlp ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 51 of file CSCDMBTrailer2005.h.

References bits.

51 { return bits.cfeb_movlp; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::cfeb_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 49 of file CSCDMBTrailer2005.h.

References bits.

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

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::@304 bits
virtual unsigned CSCDMBTrailer2005::crateID ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 37 of file CSCDMBTrailer2005.h.

References bits.

37 { return bits.crate_id; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::crc22 ( ) const
inlinevirtual

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::@304 bits
virtual unsigned CSCDMBTrailer2005::crc_hi_parity ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 68 of file CSCDMBTrailer2005.h.

References bits.

68 { return bits.dmb_parity_2; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::crc_lo_parity ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 67 of file CSCDMBTrailer2005.h.

References bits.

67 { return bits.dmb_parity_1; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned short* CSCDMBTrailer2005::data ( )
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 71 of file CSCDMBTrailer2005.h.

References bits.

Referenced by cuy.FindIssue::__init__(), and CSCDMBTrailer2005().

71 {return (unsigned short *)(&bits);}
struct CSCDMBTrailer2005::@304 bits
virtual unsigned short* CSCDMBTrailer2005::data ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 72 of file CSCDMBTrailer2005.h.

References bits.

Referenced by cuy.FindIssue::__init__().

72 {return (unsigned short *)(&bits);}
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::dmb_bxn ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 41 of file CSCDMBTrailer2005.h.

References bits.

41 { return bits.dmb_bxn; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::dmb_l1a ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 40 of file CSCDMBTrailer2005.h.

References bits.

40 { return bits.dmb_l1a; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::dmb_l1pipe ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 52 of file CSCDMBTrailer2005.h.

References bits.

52 { return bits.dmb_l1pipe; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::dmbID ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 38 of file CSCDMBTrailer2005.h.

References bits.

38 { return bits.dmb_id; };
struct CSCDMBTrailer2005::@304 bits
virtual void CSCDMBTrailer2005::setEventInformation ( const CSCDMBHeader dmbHeader)
inlinevirtual

@ 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  };
struct CSCDMBTrailer2005::@304 bits
unsigned l1a() const
Definition: CSCDMBHeader.h:50
unsigned bxn() const
Definition: CSCDMBHeader.h:48
unsigned crateID() const
Definition: CSCDMBHeader.h:46
unsigned dmbID() const
Definition: CSCDMBHeader.h:47
unsigned CSCDMBTrailer2005::sizeInWords ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 79 of file CSCDMBTrailer2005.h.

Referenced by CSCDMBTrailer2005().

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

Implements CSCVDMBTrailerFormat.

Definition at line 55 of file CSCDMBTrailer2005.h.

References bits.

55 {return bits.tmb_empty; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::tmb_endtimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 44 of file CSCDMBTrailer2005.h.

References bits.

44 { return bits.tmb_endtimeout; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::tmb_full ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 63 of file CSCDMBTrailer2005.h.

References bits.

63 {return bits.tmb_full; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::tmb_half ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 59 of file CSCDMBTrailer2005.h.

References bits.

59 {return bits.tmb_half; };
struct CSCDMBTrailer2005::@304 bits
virtual unsigned CSCDMBTrailer2005::tmb_starttimeout ( ) const
inlinevirtual

Implements CSCVDMBTrailerFormat.

Definition at line 48 of file CSCDMBTrailer2005.h.

References bits.

48 { return bits.tmb_starttimeout; };
struct CSCDMBTrailer2005::@304 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.