CMS 3D CMS Logo

CTPPSPixelDataError.h
Go to the documentation of this file.
1 #ifndef DataFormats_CTPPSPixelDataError_h
2 #define DataFormats_CTPPSPixelDataError_h
3 
4 //---------------------------------------------------------------------------
10 //---------------------------------------------------------------------------
11 
13 
14 #include <string>
15 #include <array>
16 
18 public:
22  CTPPSPixelDataError(uint32_t errorWord32, const int errorType, int fedId);
27 
29  inline uint32_t errorWord32() const { return errorWord32_; }
31  inline uint64_t errorWord64() const { return errorWord64_; }
33  inline int errorType() const { return errorType_; }
35  inline int fedId() const { return fedId_; }
37  inline const std::string& errorMessage() const {
38  if (errorType_ >= 25 && errorType_ <= 37)
39  return errorMessages_[errorType_ - 24];
40  return errorMessages_[0];
41  }
42 
43 private:
44  static const std::array<std::string, 14> errorMessages_;
45 
47  uint32_t errorWord32_;
49  int fedId_;
50 };
51 
54  return one.fedId() < other.fedId();
55 }
56 
57 #endif
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
CTPPSPixelDataError::fedId_
int fedId_
Definition: CTPPSPixelDataError.h:49
CTPPSPixelDataError::errorWord64
uint64_t errorWord64() const
the 64-bit word that contains the error information
Definition: CTPPSPixelDataError.h:31
CTPPSPixelDataError::fedId
int fedId() const
the fedId where the error occured
Definition: CTPPSPixelDataError.h:35
CTPPSPixelDataError::errorMessage
const std::string & errorMessage() const
the error message to be displayed with the error
Definition: CTPPSPixelDataError.h:37
CTPPSPixelDataError::errorMessages_
static const std::array< std::string, 14 > errorMessages_
Definition: CTPPSPixelDataError.h:44
operator<
bool operator<(const CTPPSPixelDataError &one, const CTPPSPixelDataError &other)
Comparison operators.
Definition: CTPPSPixelDataError.h:53
CTPPSPixelDataError::CTPPSPixelDataError
CTPPSPixelDataError()
Default constructor.
Definition: CTPPSPixelDataError.cc:34
typedefs.h
trackingPlots.other
other
Definition: trackingPlots.py:1460
CTPPSPixelDataError::errorWord64_
uint64_t errorWord64_
Definition: CTPPSPixelDataError.h:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CTPPSPixelDataError::errorWord32
uint32_t errorWord32() const
the 32-bit word that contains the error information
Definition: CTPPSPixelDataError.h:29
CTPPSPixelDataError::~CTPPSPixelDataError
~CTPPSPixelDataError()
Destructor.
CTPPSPixelDataError::errorType_
int errorType_
Definition: CTPPSPixelDataError.h:48
CTPPSPixelDataError::errorType
int errorType() const
the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)
Definition: CTPPSPixelDataError.h:33
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
CTPPSPixelDataError
Pixel error – collection of errors.
Definition: CTPPSPixelDataError.h:17
CTPPSPixelDataError::errorWord32_
uint32_t errorWord32_
Definition: CTPPSPixelDataError.h:47