CMS 3D CMS Logo

sistrip::FEDAPVErrorHeader Class Reference

#include <EventFilter/SiStripRawToDigi/interface/SiStripFEDBufferComponents.h>

Inheritance diagram for sistrip::FEDAPVErrorHeader:

sistrip::FEDFEHeader

List of all members.

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


Detailed Description

Definition at line 257 of file SiStripFEDBufferComponents.h.


Constructor & Destructor Documentation

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]

Definition at line 372 of file SiStripFEDBufferComponents.cc.

00373   {
00374   }


Member Function Documentation

bool sistrip::FEDAPVErrorHeader::checkChannelStatusBits ( uint8_t  internalFEDChannelNum  )  const [virtual]

Implements sistrip::FEDFEHeader.

Definition at line 394 of file SiStripFEDBufferComponents.cc.

References checkStatusBits().

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   }


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:52:34 2009 for CMSSW by  doxygen 1.5.4