CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 406 of file SiStripFEDBufferComponents.h.

Constructor & Destructor Documentation

sistrip::FEDFEHeader::~FEDFEHeader ( )
virtual

Definition at line 1249 of file SiStripFEDBufferComponents.cc.

1250  {
1251  }

Member Function Documentation

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

Definition at line 1043 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1044  {
1045  return checkChannelStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum));
1046  }
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 1048 of file SiStripFEDBufferComponents.h.

References sistrip::internalFEDChannelNum().

1049  {
1050  return checkStatusBits(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),apvNum);
1051  }
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 1031 of file SiStripFEDBufferComponents.h.

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

1032  {
1033  switch (headerType) {
1035  return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader);
1036  case HEADER_TYPE_APV_ERROR:
1037  return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader);
1038  default:
1039  return std::auto_ptr<FEDFEHeader>();
1040  }
1041  }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType,
const uint8_t *  headerBuffer 
)
inlinestatic

Definition at line 1007 of file SiStripFEDBufferComponents.h.

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

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

1008  {
1009  switch (headerType) {
1011  return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader(headerBuffer));
1012  case HEADER_TYPE_APV_ERROR:
1013  return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader(headerBuffer));
1014  default:
1015  return std::auto_ptr<FEDFEHeader>();
1016  }
1017  }
std::auto_ptr< FEDFEHeader > sistrip::FEDFEHeader::newFEHeader ( const FEDHeaderType  headerType)
inlinestatic

Definition at line 1019 of file SiStripFEDBufferComponents.h.

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

1020  {
1021  switch (headerType) {
1023  return std::auto_ptr<FEDFEHeader>(new FEDFullDebugHeader());
1024  case HEADER_TYPE_APV_ERROR:
1025  return std::auto_ptr<FEDFEHeader>(new FEDAPVErrorHeader());
1026  default:
1027  return std::auto_ptr<FEDFEHeader>();
1028  }
1029  }
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 1053 of file SiStripFEDBufferComponents.h.

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

1054  {
1055  this->setChannelStatus(internalFEDChannelNum(internalFEUnitNum,internalFEUnitChannelNum),status);
1056  }
uint8_t internalFEDChannelNum(const uint8_t internalFEUnitNum, const uint8_t internalFEUnitChannelNum)
virtual void setChannelStatus(const uint8_t internalFEDChannelNum, const FEDChannelStatus status)=0
tuple status
Definition: ntuplemaker.py:245
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