CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
sistrip::FEDFEHeader Class Referenceabstract

#include <SiStripFEDBufferComponents.h>

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

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 set32BitReservedRegister (const uint8_t internalFEUnitNum, const uint32_t reservedRegister)=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 setDAQRegister (const uint32_t daqRegister)=0
 
virtual void setDAQRegister2 (const uint32_t daqRegister2)=0
 
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::unique_ptr< FEDFEHeadernewFEFakeHeader (const FEDHeaderType headerType)
 
static std::unique_ptr< FEDFEHeadernewFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer)
 
static std::unique_ptr< FEDFEHeadernewFEHeader (const FEDHeaderType headerType)
 

Detailed Description

Definition at line 407 of file SiStripFEDBufferComponents.h.

Constructor & Destructor Documentation

sistrip::FEDFEHeader::~FEDFEHeader ( )
virtual

Definition at line 1318 of file SiStripFEDBufferComponents.cc.

1319  {
1320  }

Member Function Documentation

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

Definition at line 1051 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

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

Definition at line 1056 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1057  {
1058  return checkStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum);
1059  }
uint8_t internalFEDChannelNum(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum)
bool checkStatusBits(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const
virtual bool sistrip::FEDFEHeader::checkStatusBits ( const uint8_t  internalFEDChannelNum,
const uint8_t  apvNum 
) const
pure virtual
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::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEFakeHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1039 of file SiStripFEDBufferComponents.h.

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

1040  {
1041  switch (headerType) {
1043  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader);
1044  case HEADER_TYPE_APV_ERROR:
1045  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader);
1046  default:
1047  return std::unique_ptr<FEDFEHeader>();
1048  }
1049  }
std::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType,
const uint8_t *  headerBuffer 
)
inlinestatic

Definition at line 1015 of file SiStripFEDBufferComponents.h.

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

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

1016  {
1017  switch (headerType) {
1019  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader(headerBuffer));
1020  case HEADER_TYPE_APV_ERROR:
1021  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader(headerBuffer));
1022  default:
1023  return std::unique_ptr<FEDFEHeader>();
1024  }
1025  }
std::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1027 of file SiStripFEDBufferComponents.h.

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

1028  {
1029  switch (headerType) {
1031  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader());
1032  case HEADER_TYPE_APV_ERROR:
1033  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader());
1034  default:
1035  return std::unique_ptr<FEDFEHeader>();
1036  }
1037  }
virtual void sistrip::FEDFEHeader::print ( std::ostream &  os) const
pure virtual
virtual void sistrip::FEDFEHeader::set32BitReservedRegister ( const uint8_t  internalFEUnitNum,
const uint32_t  reservedRegister 
)
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 1061 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1062  {
1063  this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),status);
1064  }
uint8_t internalFEDChannelNum(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum)
virtual void setChannelStatus(const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0
virtual void sistrip::FEDFEHeader::setDAQRegister ( const uint32_t  daqRegister)
pure virtual
virtual void sistrip::FEDFEHeader::setDAQRegister2 ( const uint32_t  daqRegister2)
pure virtual
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