CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CTPPSPixelDataError.cc
Go to the documentation of this file.
1 
3 
4 const std::array<std::string, 14> CTPPSPixelDataError::errorMessages_ = {{
5 
6  "Error: Unknown error type",
8  "Error: ROC=25",
10  "Error: Gap word",
12  "Error: Dummy word",
14  "Error: FIFO nearly full",
16  "Error: Timeout",
18  "Error: Trailer",
20  "Error: Event number mismatch",
22  "Error: Invalid or missing header",
24  "Error: Invalid or missing trailer",
26  "Error: Size mismatch",
28  "Error: Invalid channel",
30  "Error: Invalid ROC number",
32  "Error: Invalid dcol/pixel address"
33  }};
34 
36  errorWord64_(0),
37  errorWord32_(0),
38  errorType_(0),
39  fedId_(0)
40 {}
41 
43  errorWord64_(0),
44  errorWord32_(errorWord32),
45  errorType_(errorType),
46  fedId_(fedId)
47 {}
48 
50  errorWord64_(errorWord64),
51  errorWord32_(0),
52  errorType_(errorType),
53  fedId_(fedId)
54 {}
55 
57 
58 
59 
uint32_t errorWord32() const
the 32-bit word that contains the error information
static const std::array< std::string, 14 > errorMessages_
unsigned long long uint64_t
Definition: Time.h:15
~CTPPSPixelDataError()
Destructor.
int errorType() const
the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)...
CTPPSPixelDataError()
Default constructor.
uint64_t errorWord64() const
the 64-bit word that contains the error information
int fedId() const
the fedId where the error occured