#include <EventFilter/CSCRawToDigi/interface/CSCDDUTrailer.h>
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 | setDMBDAV (int dmbId) |
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 |
in 64-bit words DDU_WC = (6 + 25*N_ts*nCFEB + 3*nDMB) |
Definition at line 13 of file CSCDDUTrailer.h.
CSCDDUTrailer::CSCDDUTrailer | ( | ) | [inline] |
Definition at line 17 of file CSCDDUTrailer.h.
References sizeInWords(), trailer2_1, trailer2_2, trailer2_3, and trailer2_4.
00018 { 00019 bzero(this, sizeInWords()*2); 00020 trailer2_1 = trailer2_2 = trailer2_4 = 0x8000; 00021 trailer2_3 = 0xFFFF; 00022 }
CSCDDUTrailer::CSCDDUTrailer | ( | const CSCDDUStatusDigi & | digi | ) | [inline] |
Definition at line 23 of file CSCDDUTrailer.h.
References sizeInWords(), and CSCDDUStatusDigi::trailer().
00024 { 00025 memcpy(this, digi.trailer(), sizeInWords()*2); 00026 }
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().
00030 { 00031 //std::cout << std:: hex << "DDUTRAILER CHECK " << trailer2_1 << " " 00032 // << trailer2_2 << " " << trailer2_3 << " " 00033 // << trailer2_4 << std:: dec << std::endl; 00034 return trailer2_1 == 0x8000 && trailer2_2 == 0x8000 00035 && trailer2_3 == 0xFFFF && trailer2_4 == 0x8000;}
unsigned short* CSCDDUTrailer::data | ( | ) | [inline] |
unsigned CSCDDUTrailer::dmb_full | ( | ) | const [inline] |
Definition at line 46 of file CSCDDUTrailer.h.
References dmb_full_.
Referenced by CSCMonitorModule::monitorDDU(), and cscdqm::EventProcessor::processDDU().
00046 { return dmb_full_; }
unsigned CSCDDUTrailer::dmb_warn | ( | ) | const [inline] |
Definition at line 45 of file CSCDDUTrailer.h.
References dmb_warn_.
Referenced by CSCMonitorModule::monitorDDU(), and cscdqm::EventProcessor::processDDU().
00045 { return dmb_warn_; }
unsigned CSCDDUTrailer::errorstat | ( | ) | const [inline] |
Definition at line 41 of file CSCDDUTrailer.h.
References errorstat_.
Referenced by CSCDDUEventData::decodeStatus(), CSCMonitorModule::monitorDDU(), cscdqm::EventProcessor::processDDU(), and CSCDDUEventData::unpack_data().
00041 { return errorstat_; }
unsigned CSCDDUTrailer::reserved | ( | ) | const [inline] |
Definition at line 47 of file CSCDDUTrailer.h.
References whatever.
Referenced by cscdqm::EventProcessor::processDDU().
00047 { return whatever; }
Definition at line 44 of file CSCDDUTrailer.h.
References dmb_full_.
Referenced by CSCDDUEventData::add().
00044 {dmb_full_ |= (1 << dmbId);}
void CSCDDUTrailer::setWordCount | ( | unsigned | wordcount | ) | [inline] |
Definition at line 43 of file CSCDDUTrailer.h.
References word_count_.
Referenced by CSCDDUEventData::pack().
00043 {word_count_ = wordcount;}
static unsigned CSCDDUTrailer::sizeInWords | ( | ) | [inline, static] |
Definition at line 28 of file CSCDDUTrailer.h.
Referenced by CSCDDUTrailer(), CSCDDUEventData::pack(), and CSCDDUEventData::unpack_data().
unsigned CSCDDUTrailer::wordcount | ( | ) | const [inline] |
Definition at line 42 of file CSCDDUTrailer.h.
References word_count_.
Referenced by CSCDDUEventData::check(), CSCMonitorModule::monitorDDU(), and cscdqm::EventProcessor::processDDU().
00042 { return word_count_; }
unsigned CSCDDUTrailer::cms_directive_0xA [private] |
unsigned CSCDDUTrailer::dmb_full_ [private] |
unsigned CSCDDUTrailer::dmb_warn_ [private] |
unsigned CSCDDUTrailer::errorstat_ [private] |
unsigned CSCDDUTrailer::trailer2_1 [private] |
should be 8000/8000/FFFF/8000
Definition at line 54 of file CSCDDUTrailer.h.
Referenced by check(), and CSCDDUTrailer().
unsigned CSCDDUTrailer::trailer2_2 [private] |
unsigned CSCDDUTrailer::trailer2_3 [private] |
unsigned CSCDDUTrailer::trailer2_4 [private] |
unsigned CSCDDUTrailer::whatever [private] |
unsigned CSCDDUTrailer::word1 [private] |
Definition at line 79 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word2 [private] |
Definition at line 80 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word3 [private] |
Definition at line 81 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word4 [private] |
Definition at line 82 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word5 [private] |
Definition at line 84 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word6 [private] |
Definition at line 85 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word7 [private] |
Definition at line 86 of file CSCDDUTrailer.h.
unsigned CSCDDUTrailer::word8 [private] |
Definition at line 87 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 92 of file CSCDDUTrailer.h.
Referenced by setWordCount(), and wordcount().