#include <EventFilter/SiStripRawToDigi/interface/SiStripFEDBufferComponents.h>
Public Member Functions | |
virtual bool | checkChannelStatusBits (uint8_t internalFEDChannelNum) const |
virtual bool | checkStatusBits (uint8_t internalFEDChannelNum, uint8_t apvNum) const |
FEDAPVErrorHeader (const uint8_t *headerBuffer) | |
virtual size_t | lengthInBytes () const |
virtual void | print (std::ostream &os) const |
virtual | ~FEDAPVErrorHeader () |
Private Attributes | |
uint8_t | header_ [APV_ERROR_HEADER_SIZE_IN_BYTES] |
Static Private Attributes | |
static const size_t | APV_ERROR_HEADER_SIZE_IN_64BIT_WORDS = 3 |
static const size_t | APV_ERROR_HEADER_SIZE_IN_BYTES = APV_ERROR_HEADER_SIZE_IN_64BIT_WORDS*8 |
Definition at line 257 of file SiStripFEDBufferComponents.h.
sistrip::FEDAPVErrorHeader::FEDAPVErrorHeader | ( | const uint8_t * | headerBuffer | ) | [inline] |
Definition at line 401 of file SiStripFEDBufferComponents.h.
References APV_ERROR_HEADER_SIZE_IN_BYTES, and header_.
00402 { 00403 memcpy(header_,headerBuffer,APV_ERROR_HEADER_SIZE_IN_BYTES); 00404 }
sistrip::FEDAPVErrorHeader::~FEDAPVErrorHeader | ( | ) | [virtual] |
bool sistrip::FEDAPVErrorHeader::checkChannelStatusBits | ( | uint8_t | internalFEDChannelNum | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 394 of file SiStripFEDBufferComponents.cc.
References checkStatusBits().
00395 { 00396 return (checkStatusBits(internalFEDChannelNum,0) && checkStatusBits(internalFEDChannelNum,1)); 00397 }
bool sistrip::FEDAPVErrorHeader::checkStatusBits | ( | uint8_t | internalFEDChannelNum, | |
uint8_t | apvNum | |||
) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 386 of file SiStripFEDBufferComponents.cc.
References header_.
Referenced by checkChannelStatusBits().
00387 { 00388 uint8_t byteNumber = internalFEDChannelNum * 2 / 8; 00389 uint8_t bitInByte = internalFEDChannelNum * 2 % 8; 00390 //bit high means no error 00391 return (!(header_[byteNumber] & (0x1<<bitInByte) )); 00392 }
size_t sistrip::FEDAPVErrorHeader::lengthInBytes | ( | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 376 of file SiStripFEDBufferComponents.cc.
References APV_ERROR_HEADER_SIZE_IN_BYTES.
00377 { 00378 return APV_ERROR_HEADER_SIZE_IN_BYTES; 00379 }
void sistrip::FEDAPVErrorHeader::print | ( | std::ostream & | os | ) | const [virtual] |
Implements sistrip::FEDFEHeader.
Definition at line 381 of file SiStripFEDBufferComponents.cc.
References APV_ERROR_HEADER_SIZE_IN_BYTES, header_, and sistrip::printHex().
00382 { 00383 printHex(header_,APV_ERROR_HEADER_SIZE_IN_BYTES,os); 00384 }
const size_t sistrip::FEDAPVErrorHeader::APV_ERROR_HEADER_SIZE_IN_64BIT_WORDS = 3 [static, private] |
Definition at line 267 of file SiStripFEDBufferComponents.h.
const size_t sistrip::FEDAPVErrorHeader::APV_ERROR_HEADER_SIZE_IN_BYTES = APV_ERROR_HEADER_SIZE_IN_64BIT_WORDS*8 [static, private] |
Definition at line 268 of file SiStripFEDBufferComponents.h.
Referenced by FEDAPVErrorHeader(), lengthInBytes(), and print().
uint8_t sistrip::FEDAPVErrorHeader::header_[APV_ERROR_HEADER_SIZE_IN_BYTES] [private] |
Definition at line 269 of file SiStripFEDBufferComponents.h.
Referenced by checkStatusBits(), FEDAPVErrorHeader(), and print().