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 | Private Attributes
CSCDDUTrailer Class Reference

#include <CSCDDUTrailer.h>

Public Member Functions

bool check () const
 
 CSCDDUTrailer ()
 
 CSCDDUTrailer (const CSCDDUStatusDigi &digi)
 
unsigned short * data ()
 
unsigned dmb_full () const
 
unsigned dmb_warn () const
 
unsigned errorstat () const
 
unsigned reserved () const
 
void setWordCount (unsigned wordcount)
 
unsigned wordcount () const
 

Static Public Member Functions

static unsigned sizeInWords ()
 

Private Attributes

unsigned cms_directive_0xA: 4
 constant, should be 1010 More...
 
unsigned dmb_full_: 16
 
unsigned dmb_warn_: 16
 Active DMB Count (4 bits) More...
 
unsigned errorstat_: 32
 
unsigned trailer2_1: 16
 should be 8000/8000/FFFF/8000 More...
 
unsigned trailer2_2: 16
 
unsigned trailer2_3: 16
 
unsigned trailer2_4: 16
 
unsigned whatever: 4
 
unsigned word1: 4
 
unsigned word2: 4
 
unsigned word3: 4
 
unsigned word4: 4
 
unsigned word5: 4
 
unsigned word6: 4
 
unsigned word7: 4
 
unsigned word8: 4
 
unsigned word_count_: 24
 

Detailed Description

documented at http://www.physics.ohio-state.edu/~cms/ddu/ddu2.html

Definition at line 13 of file CSCDDUTrailer.h.

Constructor & Destructor Documentation

CSCDDUTrailer::CSCDDUTrailer ( )
inline

Definition at line 17 of file CSCDDUTrailer.h.

References sizeInWords(), trailer2_1, trailer2_2, trailer2_3, and trailer2_4.

18  {
19  bzero(this, sizeInWords()*2);
20  trailer2_1 = trailer2_2 = trailer2_4 = 0x8000;
21  trailer2_3 = 0xFFFF;
22  }
static unsigned sizeInWords()
Definition: CSCDDUTrailer.h:28
unsigned trailer2_4
Definition: CSCDDUTrailer.h:58
unsigned trailer2_2
Definition: CSCDDUTrailer.h:56
unsigned trailer2_1
should be 8000/8000/FFFF/8000
Definition: CSCDDUTrailer.h:55
unsigned trailer2_3
Definition: CSCDDUTrailer.h:57
CSCDDUTrailer::CSCDDUTrailer ( const CSCDDUStatusDigi digi)
inline

Definition at line 23 of file CSCDDUTrailer.h.

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

24  {
25  memcpy(this, digi.trailer(), sizeInWords()*2);
26  }
static unsigned sizeInWords()
Definition: CSCDDUTrailer.h:28
const uint16_t * trailer() const

Member Function Documentation

bool CSCDDUTrailer::check ( ) const
inline

Definition at line 30 of file CSCDDUTrailer.h.

References trailer2_1, trailer2_2, trailer2_3, and trailer2_4.

Referenced by CSCDDUEventData::check(), cscdqm::EventProcessor::processDDU(), and CSCDDUEventData::unpack_data().

30  {
31  //std::cout << std:: hex << "DDUTRAILER CHECK " << trailer2_1 << " "
32  // << trailer2_2 << " " << trailer2_3 << " "
33  // << trailer2_4 << std:: dec << std::endl;
34  return trailer2_1 == 0x8000 && trailer2_2 == 0x8000
35  && trailer2_3 == 0xFFFF && trailer2_4 == 0x8000;}
unsigned trailer2_4
Definition: CSCDDUTrailer.h:58
unsigned trailer2_2
Definition: CSCDDUTrailer.h:56
unsigned trailer2_1
should be 8000/8000/FFFF/8000
Definition: CSCDDUTrailer.h:55
unsigned trailer2_3
Definition: CSCDDUTrailer.h:57
unsigned short* CSCDDUTrailer::data ( )
inline

Definition at line 37 of file CSCDDUTrailer.h.

Referenced by CSCDDUEventData::pack().

37 {return (unsigned short *) this;}
unsigned CSCDDUTrailer::dmb_full ( ) const
inline

Definition at line 47 of file CSCDDUTrailer.h.

References dmb_full_.

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

47 { return dmb_full_; }
unsigned dmb_full_
Definition: CSCDDUTrailer.h:62
unsigned CSCDDUTrailer::dmb_warn ( ) const
inline

Definition at line 46 of file CSCDDUTrailer.h.

References dmb_warn_.

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

46 { return dmb_warn_; }
unsigned dmb_warn_
Active DMB Count (4 bits)
Definition: CSCDDUTrailer.h:61
unsigned CSCDDUTrailer::errorstat ( ) const
inline
unsigned CSCDDUTrailer::reserved ( ) const
inline

Definition at line 48 of file CSCDDUTrailer.h.

References whatever.

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

48 { return whatever; }
unsigned whatever
Definition: CSCDDUTrailer.h:94
void CSCDDUTrailer::setWordCount ( unsigned  wordcount)
inline

Definition at line 43 of file CSCDDUTrailer.h.

References word_count_, and wordcount().

Referenced by CSCDDUEventData::pack().

unsigned wordcount() const
Definition: CSCDDUTrailer.h:42
unsigned word_count_
Definition: CSCDDUTrailer.h:93
static unsigned CSCDDUTrailer::sizeInWords ( )
inlinestatic

Definition at line 28 of file CSCDDUTrailer.h.

Referenced by CSCDDUTrailer(), CSCDDUEventData::pack(), and CSCDDUEventData::unpack_data().

28 {return 12;}
unsigned CSCDDUTrailer::wordcount ( ) const
inline

Definition at line 42 of file CSCDDUTrailer.h.

References word_count_.

Referenced by CSCDDUEventData::check(), cscdqm::EventProcessor::processDDU(), and setWordCount().

42 { return word_count_; }
unsigned word_count_
Definition: CSCDDUTrailer.h:93

Member Data Documentation

unsigned CSCDDUTrailer::cms_directive_0xA
private

constant, should be 1010

Definition at line 96 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::dmb_full_
private

Definition at line 62 of file CSCDDUTrailer.h.

Referenced by dmb_full().

unsigned CSCDDUTrailer::dmb_warn_
private

Active DMB Count (4 bits)

Definition at line 61 of file CSCDDUTrailer.h.

Referenced by dmb_warn().

unsigned CSCDDUTrailer::errorstat_
private

Definition at line 63 of file CSCDDUTrailer.h.

Referenced by errorstat().

unsigned CSCDDUTrailer::trailer2_1
private

should be 8000/8000/FFFF/8000

Definition at line 55 of file CSCDDUTrailer.h.

Referenced by check(), and CSCDDUTrailer().

unsigned CSCDDUTrailer::trailer2_2
private

Definition at line 56 of file CSCDDUTrailer.h.

Referenced by check(), and CSCDDUTrailer().

unsigned CSCDDUTrailer::trailer2_3
private

Definition at line 57 of file CSCDDUTrailer.h.

Referenced by check(), and CSCDDUTrailer().

unsigned CSCDDUTrailer::trailer2_4
private

Definition at line 58 of file CSCDDUTrailer.h.

Referenced by check(), and CSCDDUTrailer().

unsigned CSCDDUTrailer::whatever
private

Definition at line 94 of file CSCDDUTrailer.h.

Referenced by reserved().

unsigned CSCDDUTrailer::word1
private

Definition at line 80 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word2
private

Definition at line 81 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word3
private

Definition at line 82 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word4
private

Definition at line 83 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word5
private

Definition at line 85 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word6
private

Definition at line 86 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word7
private

Definition at line 87 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word8
private

Definition at line 88 of file CSCDDUTrailer.h.

unsigned CSCDDUTrailer::word_count_
private

in 64-bit words DDU_WC = (6 + 25*N_ts*nCFEB + 3*nDMB)

Definition at line 93 of file CSCDDUTrailer.h.

Referenced by setWordCount(), and wordcount().