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
SiPixelRawDataError::errorWord64_
cms_uint64_t errorWord64_
Definition: SiPixelRawDataError.h:48
cms_uint32_t
unsigned int cms_uint32_t
Definition: typedefs.h:15
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
SiPixelRawDataError::errorWord32_
cms_uint32_t errorWord32_
Definition: SiPixelRawDataError.h:47
SiPixelRawDataError
Pixel error – collection of errors and error information.
Definition: SiPixelRawDataError.h:19
SiPixelRawDataError::errorMessage_
std::string errorMessage_
Definition: SiPixelRawDataError.h:51
SiPixelRawDataError::errorType_
int errorType_
Definition: SiPixelRawDataError.h:49
SiPixelRawDataError::setType
void setType(int errorType)
Definition: SiPixelRawDataError.cc:37
SiPixelRawDataError::getWord32
cms_uint32_t getWord32() const
Definition: SiPixelRawDataError.h:38
operator<
bool operator<(const SiPixelRawDataError &one, const SiPixelRawDataError &other)
Definition: SiPixelRawDataError.h:55
SiPixelRawDataError::getWord64
cms_uint64_t getWord64() const
Definition: SiPixelRawDataError.h:39
typedefs.h
trackingPlots.other
other
Definition: trackingPlots.py:1467
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelRawDataError::fedId_
int fedId_
Definition: SiPixelRawDataError.h:50
SiPixelRawDataError::getMessage
std::string getMessage() const
Definition: SiPixelRawDataError.h:44
SiPixelRawDataError::setMessage
void setMessage()
Definition: SiPixelRawDataError.cc:44
cms_uint64_t
unsigned long long cms_uint64_t
Definition: typedefs.h:17
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
SiPixelRawDataError::SiPixelRawDataError
SiPixelRawDataError()
Default constructor.
Definition: SiPixelRawDataError.cc:15
SiPixelRawDataError::getType
int getType() const
Definition: SiPixelRawDataError.h:40
SiPixelRawDataError::setFedId
void setFedId(int fedId)
Definition: SiPixelRawDataError.cc:42
SiPixelRawDataError::setWord64
void setWord64(cms_uint64_t errorWord64)
Definition: SiPixelRawDataError.cc:35
SiPixelRawDataError::getFedId
int getFedId() const
Definition: SiPixelRawDataError.h:43
SiPixelRawDataError::~SiPixelRawDataError
~SiPixelRawDataError()
Destructor.
Definition: SiPixelRawDataError.cc:29
SiPixelRawDataError::setWord32
void setWord32(cms_uint32_t errorWord32)
Definition: SiPixelRawDataError.cc:33