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 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]

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

Definition at line 1170 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

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

◆ checkChannelStatusBits() [2/2]

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

◆ checkStatusBits() [1/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.

References sistrip::internalFEDChannelNum().

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

◆ checkStatusBits() [2/2]

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

◆ 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.

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

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  }

◆ newFEHeader() [1/2]

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

Definition at line 1136 of file SiStripFEDBufferComponents.h.

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

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

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  }

◆ newFEHeader() [2/2]

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

Definition at line 1148 of file SiStripFEDBufferComponents.h.

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

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  }

◆ 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.

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

1183  {
1184  this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum, internalFEUnitChannelNum), status);
1185  }
uint8_t internalFEDChannelNum(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum)
virtual void setChannelStatus(const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0

◆ 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