CMS 3D CMS Logo

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

#include <CSCDMBTrailer.h>

Public Member Functions

bool check () const
 
 CSCDMBTrailer ()
 
 CSCDMBTrailer (const CSCDMBStatusDigi &digi)
 
unsigned short * data ()
 
unsigned short * data () const
 
void setEventInformation (const CSCDMBHeader &)
 @ NEEDS TO BE DONE More...
 

Static Public Member Functions

static unsigned sizeInWords ()
 

Public Attributes

unsigned alct_empty: 1
 
unsigned alct_endtimeout: 1
 
unsigned alct_full: 1
 
unsigned alct_half: 1
 
unsigned alct_timeout: 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_l1pipe: 8
 
unsigned dmb_parity_1: 1
 
unsigned dmb_parity_2: 1
 
unsigned L1a_counter: 8
 
unsigned tmb_empty: 1
 
unsigned tmb_endtimeout: 1
 
unsigned tmb_full: 1
 
unsigned tmb_half: 1
 
unsigned tmb_timeout: 1
 

Detailed Description

Definition at line 7 of file CSCDMBTrailer.h.

Constructor & Destructor Documentation

CSCDMBTrailer::CSCDMBTrailer ( )
inline

Definition at line 9 of file CSCDMBTrailer.h.

References ddu_code_1, ddu_code_2, ddu_code_3, ddu_code_4, ddu_code_5, ddu_code_6, ddu_code_7, ddu_code_8, and sizeInWords().

10  {
11  bzero(this, sizeInWords()*2);
14  }
unsigned ddu_code_1
Definition: CSCDMBTrailer.h:30
unsigned ddu_code_2
Definition: CSCDMBTrailer.h:36
unsigned ddu_code_4
Definition: CSCDMBTrailer.h:49
unsigned ddu_code_8
Definition: CSCDMBTrailer.h:68
unsigned ddu_code_3
Definition: CSCDMBTrailer.h:43
unsigned ddu_code_5
Definition: CSCDMBTrailer.h:56
unsigned ddu_code_7
Definition: CSCDMBTrailer.h:64
static unsigned sizeInWords()
Definition: CSCDMBTrailer.h:75
unsigned ddu_code_6
Definition: CSCDMBTrailer.h:60
CSCDMBTrailer::CSCDMBTrailer ( const CSCDMBStatusDigi digi)
inline

Definition at line 16 of file CSCDMBTrailer.h.

References sizeInWords(), and CSCDMBStatusDigi::trailer().

17  {
18  memcpy(this, digi.trailer(), sizeInWords()*2);
19  }
const uint16_t * trailer() const
static unsigned sizeInWords()
Definition: CSCDMBTrailer.h:75

Member Function Documentation

bool CSCDMBTrailer::check ( ) const
inline

Definition at line 70 of file CSCDMBTrailer.h.

References ddu_code_1, ddu_code_2, ddu_code_3, ddu_code_4, ddu_code_5, ddu_code_6, ddu_code_7, and ddu_code_8.

70  {return ddu_code_1 == 0xF && ddu_code_2 == 0xF
71  && ddu_code_3 == 0xF && ddu_code_4 == 0xF
72  && ddu_code_5 == 0xE && ddu_code_6 == 0xE
73  && ddu_code_7 == 0xE && ddu_code_8 == 0xE;}
unsigned ddu_code_1
Definition: CSCDMBTrailer.h:30
unsigned ddu_code_2
Definition: CSCDMBTrailer.h:36
unsigned ddu_code_4
Definition: CSCDMBTrailer.h:49
unsigned ddu_code_8
Definition: CSCDMBTrailer.h:68
unsigned ddu_code_3
Definition: CSCDMBTrailer.h:43
unsigned ddu_code_5
Definition: CSCDMBTrailer.h:56
unsigned ddu_code_7
Definition: CSCDMBTrailer.h:64
unsigned ddu_code_6
Definition: CSCDMBTrailer.h:60
unsigned short* CSCDMBTrailer::data ( )
inline

Definition at line 25 of file CSCDMBTrailer.h.

Referenced by cuy.FindIssue::__init__(), and CSCEventData::pack().

25 {return (unsigned short *) this;}
unsigned short* CSCDMBTrailer::data ( ) const
inline

Definition at line 26 of file CSCDMBTrailer.h.

Referenced by cuy.FindIssue::__init__().

26 {return (unsigned short *) this;}
void CSCDMBTrailer::setEventInformation ( const CSCDMBHeader )
inline

@ NEEDS TO BE DONE

Definition at line 23 of file CSCDMBTrailer.h.

23 {};
static unsigned CSCDMBTrailer::sizeInWords ( )
inlinestatic

Definition at line 75 of file CSCDMBTrailer.h.

Referenced by CSCDMBTrailer(), CSCEventData::pack(), and CSCEventData::unpack_data().

75 {return 8;}

Member Data Documentation

unsigned CSCDMBTrailer::alct_empty

Definition at line 41 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::alct_endtimeout

Definition at line 47 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::alct_full

Definition at line 55 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::alct_half

Definition at line 34 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::alct_timeout

Definition at line 39 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::cfeb_empty

Definition at line 52 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::cfeb_endtimeout
unsigned CSCDMBTrailer::cfeb_full

Definition at line 53 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::cfeb_half

Definition at line 32 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::cfeb_movlp

Definition at line 35 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::cfeb_starttimeout
unsigned CSCDMBTrailer::crate_id

Definition at line 59 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::ddu_code_1

Definition at line 30 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_2

Definition at line 36 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_3

Definition at line 43 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_4

Definition at line 49 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_5

Definition at line 56 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_6

Definition at line 60 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_7

Definition at line 64 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::ddu_code_8

Definition at line 68 of file CSCDMBTrailer.h.

Referenced by check(), and CSCDMBTrailer().

unsigned CSCDMBTrailer::dmb_bxn

Definition at line 29 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::dmb_crc_1

Definition at line 62 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::dmb_crc_2

Definition at line 66 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::dmb_id

Definition at line 58 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::dmb_l1pipe

Definition at line 42 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::dmb_parity_1

Definition at line 63 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::dmb_parity_2

Definition at line 67 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::L1a_counter

Definition at line 28 of file CSCDMBTrailer.h.

unsigned CSCDMBTrailer::tmb_empty

Definition at line 40 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::tmb_endtimeout

Definition at line 46 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::tmb_full

Definition at line 54 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::tmb_half

Definition at line 33 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().

unsigned CSCDMBTrailer::tmb_timeout

Definition at line 38 of file CSCDMBTrailer.h.

Referenced by cscdqm::EventProcessor::processCSC().