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::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 406 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 1050 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1051  {
1052  return checkChannelStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum));
1053  }
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 1055 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1056  {
1057  return checkStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum);
1058  }
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::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEFakeHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1038 of file SiStripFEDBufferComponents.h.

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

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

Definition at line 1014 of file SiStripFEDBufferComponents.h.

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

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

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

Definition at line 1026 of file SiStripFEDBufferComponents.h.

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

1027  {
1028  switch (headerType) {
1030  return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader());
1031  case HEADER_TYPE_APV_ERROR:
1032  return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader());
1033  default:
1034  return std::auto_ptr<FEDFEHeader>();
1035  }
1036  }
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 1060 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1061  {
1062  this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),status);
1063  }
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