CMS 3D CMS Logo

SiPixelRawDataError.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiPixelRawDataError_h
2 #define DataFormats_SiPixelRawDataError_h
3 
4 //---------------------------------------------------------------------------
12 //---------------------------------------------------------------------------
13 
15 
16 #include <string>
17 #include <cstdint>
18 
20 public:
24  SiPixelRawDataError(cms_uint32_t errorWord32, const int errorType, int fedId);
26  SiPixelRawDataError(cms_uint64_t errorWord64, const int errorType, int fedId);
29 
30  void setWord32(
31  cms_uint32_t errorWord32); // function to allow user to input the error word (if 32-bit) after instantiation
32  void setWord64(
33  cms_uint64_t errorWord64); // function to allow user to input the error word (if 64-bit) after instantiation
34  void setType(int errorType); // function to allow user to input the error type after instantiation
35  void setFedId(int fedId); // function to allow user to input the fedID after instantiation
36  void setMessage(); // function to create an error message based on errorType
37 
38  inline cms_uint32_t getWord32() const { return errorWord32_; } // the 32-bit word that contains the error information
39  inline cms_uint64_t getWord64() const { return errorWord64_; } // the 64-bit word that contains the error information
40  inline int getType() const {
41  return errorType_;
42  } // the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)
43  inline int getFedId() const { return fedId_; } // the fedId where the error occured
44  inline std::string getMessage() const { return errorMessage_; } // the error message to be displayed with the error
45 
46 private:
50  int fedId_;
52 };
53 
54 // Comparison operators
56  return one.getFedId() < other.getFedId();
57 }
58 
59 #endif
void setType(int errorType)
void setWord32(cms_uint32_t errorWord32)
void setFedId(int fedId)
~SiPixelRawDataError()
Destructor.
bool operator<(const SiPixelRawDataError &one, const SiPixelRawDataError &other)
unsigned int cms_uint32_t
Definition: typedefs.h:15
std::string getMessage() const
SiPixelRawDataError()
Default constructor.
cms_uint32_t getWord32() const
cms_uint64_t getWord64() const
unsigned long long cms_uint64_t
Definition: typedefs.h:17
Pixel error – collection of errors and error information.
void setWord64(cms_uint64_t errorWord64)