CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ReadoutError.h
Go to the documentation of this file.
1 #ifndef DataFormats_RPCDigi_ReadoutError_H
2 #define DataFormats_RPCDigi_ReadoutError_H
3 
5 #include <string>
6 
7 namespace rpcrawtodigi {
8 class ReadoutError {
9 public:
10 
12  NoProblem = 0,
17  InvalidLB = 5,
21  EOD = 9
22  };
23 
24  explicit ReadoutError(unsigned int rawCode=0) : theError(rawCode) {}
25 
27 
28  ReadoutErrorType type() const;
30 
31  static std::string name(const ReadoutErrorType & code);
32 
33  std::string name() const { return name(type()); }
34 
35  unsigned int rawCode() const { return theError;}
36 
37 private:
38  unsigned int theError;
39 };
40 
41 }
42 #endif
43 
LinkBoardElectronicIndex where() const
Definition: ReadoutError.cc:20
ReadoutError(unsigned int rawCode=0)
Definition: ReadoutError.h:24
std::string name() const
Definition: ReadoutError.h:33
ReadoutErrorType type() const
Definition: ReadoutError.cc:14
unsigned int rawCode() const
Definition: ReadoutError.h:35