CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

CSCDDUTrailer Class Reference

#include <CSCDDUTrailer.h>

List of all members.

Public Member Functions

bool check () const
 CSCDDUTrailer (const CSCDDUStatusDigi &digi)
 CSCDDUTrailer ()
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
unsigned dmb_full_: 16
unsigned dmb_warn_: 16
 Active DMB Count (4 bits)
unsigned errorstat_: 32
unsigned trailer2_1: 16
 should be 8000/8000/FFFF/8000
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 https://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.

    {
      bzero(this, sizeInWords()*2);
      trailer2_1 = trailer2_2 = trailer2_4 = 0x8000;
      trailer2_3 = 0xFFFF;
    }
CSCDDUTrailer::CSCDDUTrailer ( const CSCDDUStatusDigi digi) [inline]

Definition at line 23 of file CSCDDUTrailer.h.

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

    {
      memcpy(this, digi.trailer(), sizeInWords()*2);
    }

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 CSCEventData::unpack_data().

                     {
    //std::cout << std:: hex << "DDUTRAILER CHECK " << trailer2_1 << " " 
    //      << trailer2_2  << " " << trailer2_3 << " " 
    //      << trailer2_4 << std:: dec << std::endl;
    return trailer2_1 == 0x8000 && trailer2_2 == 0x8000
                   && trailer2_3 == 0xFFFF && trailer2_4 == 0x8000;}
unsigned short* CSCDDUTrailer::data ( ) [inline]

Definition at line 37 of file CSCDDUTrailer.h.

Referenced by CSCDDUEventData::pack().

{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().

{ return dmb_full_; }
unsigned CSCDDUTrailer::dmb_warn ( ) const [inline]

Definition at line 46 of file CSCDDUTrailer.h.

References dmb_warn_.

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

{ return dmb_warn_; }  
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().

{ return whatever; } 
void CSCDDUTrailer::setWordCount ( unsigned  wordcount) [inline]

Definition at line 43 of file CSCDDUTrailer.h.

References word_count_, and wordcount().

Referenced by CSCDDUEventData::pack().

static unsigned CSCDDUTrailer::sizeInWords ( ) [inline, static]

Definition at line 28 of file CSCDDUTrailer.h.

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

{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().

{ return word_count_; }  

Member Data Documentation

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().