#include <CSCTMBTrailer.h>
Public Member Functions | |
bool | check () const |
unsigned int | crc22 () const |
CSCTMBTrailer (int wordCount, int firmwareVersion) | |
don't forget to pass in the size of the tmb header + clct data More... | |
CSCTMBTrailer (const uint16_t *buf, unsigned short int firmwareVersion) | |
CSCTMBTrailer (const CSCTMBStatusDigi &digi) | |
unsigned short * | data () |
void | setCRC (int crc) |
uint16_t | sizeInBytes () const |
int | sizeInWords () const |
in 16-bit frames More... | |
int | wordCount () const |
Static Public Member Functions | |
static void | selfTest () |
Private Member Functions | |
int | crcOffset () const |
int | de0fOffset () const |
Private Attributes | |
unsigned short | theData [7] |
unsigned short int | theFirmwareVersion |
int | thePadding |
Defined to begin at the 6E0C word 2006 format
6E0C 2AAA (optional) 5555 (optional) D8+CRC22(10) D8+CRC22(10) DE0F D8+WordCount D2007 format 6E0C 2AAA (optional) 5555 (optional) DE0F D8+CRC22(10) D8+CRC22(10) D8+WordCount
Definition at line 28 of file CSCTMBTrailer.h.
CSCTMBTrailer::CSCTMBTrailer | ( | int | wordCount, |
int | firmwareVersion | ||
) |
don't forget to pass in the size of the tmb header + clct data
Definition at line 6 of file CSCTMBTrailer.cc.
References de0fOffset(), mps_fire::i, theData, thePadding, and wordCount().
CSCTMBTrailer::CSCTMBTrailer | ( | const uint16_t * | buf, |
unsigned short int | firmwareVersion | ||
) |
in 2007 format de0f line moved
Definition at line 29 of file CSCTMBTrailer.cc.
References theData, and thePadding.
|
inline |
Definition at line 35 of file CSCTMBTrailer.h.
References sizeInBytes(), and CSCTMBStatusDigi::trailer().
|
inline |
unsigned int CSCTMBTrailer::crc22 | ( | ) | const |
Definition at line 51 of file CSCTMBTrailer.cc.
References crcOffset(), and theData.
Referenced by CSCTMBData::getCRC(), and selfTest().
|
inlineprivate |
Definition at line 49 of file CSCTMBTrailer.h.
References theFirmwareVersion, and thePadding.
Referenced by crc22(), and setCRC().
|
inline |
Definition at line 43 of file CSCTMBTrailer.h.
References theData.
Referenced by CSCTMBData::pack().
|
inlineprivate |
Definition at line 50 of file CSCTMBTrailer.h.
References theFirmwareVersion, and thePadding.
Referenced by CSCTMBTrailer().
|
static |
Definition at line 62 of file CSCTMBTrailer.cc.
References cms::cuda::assert(), crc22(), and setCRC().
void CSCTMBTrailer::setCRC | ( | int | crc | ) |
Definition at line 55 of file CSCTMBTrailer.cc.
References crcOffset(), and theData.
Referenced by CSCTMBData::pack(), and selfTest().
|
inline |
|
inline |
in 16-bit frames
Definition at line 42 of file CSCTMBTrailer.h.
References thePadding.
Referenced by CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
int CSCTMBTrailer::wordCount | ( | ) | const |
Definition at line 60 of file CSCTMBTrailer.cc.
References theData, and thePadding.
Referenced by CSCTMBTrailer(), and cscdqm::EventProcessor::processCSC().
|
private |
Definition at line 52 of file CSCTMBTrailer.h.
Referenced by check(), crc22(), CSCTMBTrailer(), data(), setCRC(), and wordCount().
|
private |
Definition at line 54 of file CSCTMBTrailer.h.
Referenced by crcOffset(), and de0fOffset().
|
private |
Definition at line 53 of file CSCTMBTrailer.h.
Referenced by crcOffset(), CSCTMBTrailer(), de0fOffset(), sizeInWords(), and wordCount().