CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
rpcrawtodigi::ReadoutError Class Reference

#include <ReadoutError.h>

Public Types

enum  ReadoutErrorType {
  NoProblem = 0, HeaderCheckFail = 1, InconsitentFedId = 2, TrailerCheckFail = 3,
  InconsistentDataSize = 4, InvalidLB = 5, EmptyPackedStrips = 6, InvalidDetId = 7,
  InvalidStrip = 8, EOD = 9
}
 

Public Member Functions

std::string name () const
 
unsigned int rawCode () const
 
 ReadoutError (unsigned int rawCode=0)
 
 ReadoutError (const LinkBoardElectronicIndex &, const ReadoutErrorType &)
 
ReadoutErrorType type () const
 
LinkBoardElectronicIndex where () const
 

Static Public Member Functions

static std::string name (const ReadoutErrorType &code)
 

Private Attributes

unsigned int theError
 

Detailed Description

Definition at line 8 of file ReadoutError.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

rpcrawtodigi::ReadoutError::ReadoutError ( unsigned int  rawCode = 0)
inlineexplicit

Definition at line 24 of file ReadoutError.h.

24 : theError(rawCode) {}
unsigned int rawCode() const
Definition: ReadoutError.h:35
ReadoutError::ReadoutError ( const LinkBoardElectronicIndex path,
const ReadoutErrorType type 
)

Member Function Documentation

std::string ReadoutError::name ( const ReadoutErrorType code)
static

Definition at line 31 of file ReadoutError.cc.

References EmptyPackedStrips, EOD, HeaderCheckFail, InconsistentDataSize, InconsitentFedId, InvalidDetId, InvalidLB, InvalidStrip, query::result, AlCaHLTBitMon_QueryRunRegistry::string, and TrailerCheckFail.

Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), BeautifulSoup.Tag::_invert(), and Vispa.Views.PropertyView.Property::valueChanged().

32 {
34  switch (code) {
35  case (HeaderCheckFail) : { result = "HeaderCheckFail"; break; }
36  case (InconsitentFedId) : { result = "InconsitentFedId"; break; }
37  case (TrailerCheckFail) : { result = "TrailerCheckFail"; break; }
38  case (InconsistentDataSize) : { result = "InconsistentDataSize"; break; }
39  case (InvalidLB) : { result = "InvalidLB"; break; }
40  case (EmptyPackedStrips) : { result = "EmptyPackedStrips"; break; }
41  case (InvalidDetId) : { result = "InvalidDetId"; break; }
42  case (InvalidStrip) : { result = "InvalidStrip"; break; }
43  case (EOD) : { result = "EOD"; break; }
44  default : { result = "NoProblem"; }
45  }
46  return result;
47 }
tuple result
Definition: query.py:137
std::string rpcrawtodigi::ReadoutError::name ( ) const
inline
unsigned int rpcrawtodigi::ReadoutError::rawCode ( ) const
inline

Definition at line 35 of file ReadoutError.h.

References theError.

Referenced by RPCRawDataCounts::addReadoutError().

35 { return theError;}
ReadoutError::ReadoutErrorType ReadoutError::type ( ) const
LinkBoardElectronicIndex ReadoutError::where ( ) const

Member Data Documentation

unsigned int rpcrawtodigi::ReadoutError::theError
private

Definition at line 38 of file ReadoutError.h.

Referenced by rawCode(), ReadoutError(), type(), and where().