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

virtual bool checkChannelStatusBits (const uint8_t internalFEDChannelNum) const =0
 
bool checkChannelStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const
 
virtual bool checkStatusBits (const uint8_t internalFEDChannelNum, const uint8_t apvNum) const =0
 
bool checkStatusBits (const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const
 
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)
 
static std::unique_ptr< FEDFEHeadernewFEHeader (const FEDHeaderType headerType, const uint8_t *headerBuffer)
 

Detailed Description

Definition at line 466 of file SiStripFEDBufferComponents.h.

Constructor & Destructor Documentation

◆ ~FEDFEHeader()

sistrip::FEDFEHeader::~FEDFEHeader ( )
virtual

Definition at line 1246 of file SiStripFEDBufferComponents.cc.

1246 {}

Member Function Documentation

◆ checkChannelStatusBits() [1/2]

virtual bool sistrip::FEDFEHeader::checkChannelStatusBits ( const uint8_t  internalFEDChannelNum) const
pure virtual

◆ checkChannelStatusBits() [2/2]

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

Definition at line 1170 of file SiStripFEDBufferComponents.h.

1171  {
1172  return checkChannelStatusBits(internalFEDChannelNum(internalFEUnitNum, internalFEUnitChannelNum));
1173  }

References sistrip::internalFEDChannelNum().

◆ checkStatusBits() [1/2]

virtual bool sistrip::FEDFEHeader::checkStatusBits ( const uint8_t  internalFEDChannelNum,
const uint8_t  apvNum 
) const
pure virtual

◆ checkStatusBits() [2/2]

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

Definition at line 1175 of file SiStripFEDBufferComponents.h.

1177  {
1178  return checkStatusBits(internalFEDChannelNum(internalFEUnitNum, internalFEUnitChannelNum), apvNum);
1179  }

References sistrip::internalFEDChannelNum().

◆ clone()

virtual FEDFEHeader* sistrip::FEDFEHeader::clone ( ) const
pure virtual

◆ data()

virtual const uint8_t* sistrip::FEDFEHeader::data ( ) const
pure virtual

◆ lengthInBytes()

virtual size_t sistrip::FEDFEHeader::lengthInBytes ( ) const
pure virtual

◆ newFEFakeHeader()

std::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEFakeHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1159 of file SiStripFEDBufferComponents.h.

1159  {
1160  switch (headerType) {
1162  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader);
1163  case HEADER_TYPE_APV_ERROR:
1164  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader);
1165  default:
1166  return std::unique_ptr<FEDFEHeader>();
1167  }
1168  }

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

◆ newFEHeader() [1/2]

std::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1148 of file SiStripFEDBufferComponents.h.

1148  {
1149  switch (headerType) {
1151  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader());
1152  case HEADER_TYPE_APV_ERROR:
1153  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader());
1154  default:
1155  return std::unique_ptr<FEDFEHeader>();
1156  }
1157  }

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

◆ newFEHeader() [2/2]

std::unique_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType,
const uint8_t *  headerBuffer 
)
inlinestatic

Definition at line 1136 of file SiStripFEDBufferComponents.h.

1137  {
1138  switch (headerType) {
1140  return std::unique_ptr<FEDFEHeader>(new FEDFullDebugHeader(headerBuffer));
1141  case HEADER_TYPE_APV_ERROR:
1142  return std::unique_ptr<FEDFEHeader>(new FEDAPVErrorHeader(headerBuffer));
1143  default:
1144  return std::unique_ptr<FEDFEHeader>();
1145  }
1146  }

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

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

◆ print()

virtual void sistrip::FEDFEHeader::print ( std::ostream &  os) const
pure virtual

◆ set32BitReservedRegister()

virtual void sistrip::FEDFEHeader::set32BitReservedRegister ( const uint8_t  internalFEUnitNum,
const uint32_t  reservedRegister 
)
pure virtual

◆ setBEStatusRegister()

virtual void sistrip::FEDFEHeader::setBEStatusRegister ( const FEDBackendStatusRegister  beStatusRegister)
pure virtual

◆ setChannelStatus() [1/2]

virtual void sistrip::FEDFEHeader::setChannelStatus ( const uint8_t  internalFEDChannelNum,
const FEDChannelStatus  status 
)
pure virtual

◆ setChannelStatus() [2/2]

void sistrip::FEDFEHeader::setChannelStatus ( const uint8_t  internalFEUnitNum,
const uint8_t  internalFEUnitChannelNum,
const FEDChannelStatus  status 
)
inline

Definition at line 1181 of file SiStripFEDBufferComponents.h.

1183  {
1184  this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum, internalFEUnitChannelNum), status);
1185  }

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

◆ setDAQRegister()

virtual void sistrip::FEDFEHeader::setDAQRegister ( const uint32_t  daqRegister)
pure virtual

◆ setDAQRegister2()

virtual void sistrip::FEDFEHeader::setDAQRegister2 ( const uint32_t  daqRegister2)
pure virtual

◆ setFEUnitLength()

virtual void sistrip::FEDFEHeader::setFEUnitLength ( const uint8_t  internalFEUnitNum,
const uint16_t  length 
)
pure virtual

◆ setFEUnitMajorityAddress()

virtual void sistrip::FEDFEHeader::setFEUnitMajorityAddress ( const uint8_t  internalFEUnitNum,
const uint8_t  address 
)
pure virtual
sistrip::FEDFEHeader::checkChannelStatusBits
bool checkChannelStatusBits(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum) const
Definition: SiStripFEDBufferComponents.h:1170
mps_update.status
status
Definition: mps_update.py:69
sistrip::internalFEDChannelNum
uint8_t internalFEDChannelNum(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum)
Definition: SiStripFEDBufferComponents.h:785
sistrip::HEADER_TYPE_FULL_DEBUG
Definition: SiStripFEDBufferComponents.h:39
sistrip::FEDFEHeader::checkStatusBits
bool checkStatusBits(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum, const uint8_t apvNum) const
Definition: SiStripFEDBufferComponents.h:1175
sistrip::FEDFEHeader::setChannelStatus
virtual void setChannelStatus(const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0
sistrip::HEADER_TYPE_APV_ERROR
Definition: SiStripFEDBufferComponents.h:40