CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

sistrip::FEDFEHeader Class Reference

#include <SiStripFEDBufferComponents.h>

Inheritance diagram for sistrip::FEDFEHeader:
sistrip::FEDAPVErrorHeader sistrip::FEDFullDebugHeader

List of all members.

Public Member Functions

bool checkChannelStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const
virtual bool checkChannelStatusBits (const uint8_t internalFEDChannelNum) const =0
bool checkStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const
virtual bool checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const =0
virtual FEDFEHeaderclone () const =0
virtual const uint8_t * data () const =0
virtual size_t lengthInBytes () const =0
virtual void print (std::ostream &os) const =0
virtual void setBEStatusRegister (const FEDBackendStatusRegister beStatusRegister)=0
virtual void setChannelStatus (const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0
void setChannelStatus (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const FEDChannelStatus status)
virtual void setFEUnitLength (const uint8_t internalFEUnitNum, const uint16_t length)=0
virtual void setFEUnitMajorityAddress (const uint8_t internalFEUnitNum, const uint8_t address)=0
virtual ~FEDFEHeader ()

Static Public Member Functions

static std::auto_ptr< FEDFEHeadernewFEFakeHeader (const FEDHeaderType headerType)
static std::auto_ptr< FEDFEHeadernewFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer)
static std::auto_ptr< FEDFEHeadernewFEHeader (const FEDHeaderType headerType)

Detailed Description

Definition at line 382 of file SiStripFEDBufferComponents.h.


Constructor & Destructor Documentation

sistrip::FEDFEHeader::~FEDFEHeader ( ) [virtual]

Definition at line 1195 of file SiStripFEDBufferComponents.cc.

  {
  }

Member Function Documentation

bool sistrip::FEDFEHeader::checkChannelStatusBits ( const uint8_t  internalFEUnitNum,
const uint8_t  internalFEUnitChannelNum 
) const [inline]

Definition at line 1023 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

    {
      return checkChannelStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum));
    }
virtual bool sistrip::FEDFEHeader::checkChannelStatusBits ( const uint8_t  internalFEDChannelNum) const [pure virtual]
virtual bool sistrip::FEDFEHeader::checkStatusBits ( const uint8_t  internalFEDChannelNum,
const uint8_t  apvNum 
) const [pure virtual]
bool sistrip::FEDFEHeader::checkStatusBits ( const uint8_t  internalFEUnitNum,
const uint8_t  internalFEUnitChannelNum,
const uint8_t  apvNum 
) const [inline]

Definition at line 1028 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

    {
      return checkStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum);
    }
virtual FEDFEHeader* sistrip::FEDFEHeader::clone ( ) const [pure virtual]
virtual const uint8_t* sistrip::FEDFEHeader::data ( ) const [pure virtual]
virtual size_t sistrip::FEDFEHeader::lengthInBytes ( ) const [pure virtual]
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEFakeHeader ( const FEDHeaderType  headerType) [inline, static]

Definition at line 1011 of file SiStripFEDBufferComponents.h.

References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.

    {
      switch (headerType) {
      case HEADER_TYPE_FULL_DEBUG:
        return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader);
      case HEADER_TYPE_APV_ERROR:
        return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader);
      default:
        return std::auto_ptr<FEDFEHeader>();
      }
    }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType) [inline, static]

Definition at line 999 of file SiStripFEDBufferComponents.h.

References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.

    {
      switch (headerType) {
      case HEADER_TYPE_FULL_DEBUG:
        return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader());
      case HEADER_TYPE_APV_ERROR:
        return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader());
      default:
        return std::auto_ptr<FEDFEHeader>();
      }
    }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType,
const uint8_t *  headerBuffer 
) [inline, static]

Definition at line 987 of file SiStripFEDBufferComponents.h.

References sistrip::HEADER_TYPE_APV_ERROR, and sistrip::HEADER_TYPE_FULL_DEBUG.

Referenced by sistrip::FEDBuffer::FEDBuffer().

    {
      switch (headerType) {
      case HEADER_TYPE_FULL_DEBUG:
        return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader(headerBuffer));
      case HEADER_TYPE_APV_ERROR:
        return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader(headerBuffer));
      default:
        return std::auto_ptr<FEDFEHeader>();
      }
    }
virtual void sistrip::FEDFEHeader::print ( std::ostream &  os) const [pure virtual]
virtual void sistrip::FEDFEHeader::setBEStatusRegister ( const FEDBackendStatusRegister  beStatusRegister) [pure virtual]
virtual void sistrip::FEDFEHeader::setChannelStatus ( const uint8_t  internalFEDChannelNum,
const FEDChannelStatus  status 
) [pure virtual]
void sistrip::FEDFEHeader::setChannelStatus ( const uint8_t  internalFEUnitNum,
const uint8_t  internalFEUnitChannelNum,
const FEDChannelStatus  status 
) [inline]

Definition at line 1033 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum(), and setChannelStatus().

    {
      this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),status);
    }
virtual void sistrip::FEDFEHeader::setFEUnitLength ( const uint8_t  internalFEUnitNum,
const uint16_t  length 
) [pure virtual]
virtual void sistrip::FEDFEHeader::setFEUnitMajorityAddress ( const uint8_t  internalFEUnitNum,
const uint8_t  address 
) [pure virtual]