DataFormats
SiPixelRawData
src
SiPixelRawDataError.cc
Go to the documentation of this file.
1
#include "
DataFormats/SiPixelRawData/interface/SiPixelRawDataError.h
"
2
3
//---------------------------------------------------------------------------
11
//---------------------------------------------------------------------------
12
13
//Constructors
14
15
SiPixelRawDataError::SiPixelRawDataError
() {}
16
17
SiPixelRawDataError::SiPixelRawDataError
(
cms_uint32_t
errorWord32,
const
int
errorType,
int
fedId
)
18
: errorWord32_(errorWord32), errorType_(errorType), fedId_(
fedId
) {
19
setMessage
();
20
}
21
22
SiPixelRawDataError::SiPixelRawDataError
(
cms_uint64_t
errorWord64,
const
int
errorType,
int
fedId
)
23
: errorWord64_(errorWord64), errorType_(errorType), fedId_(
fedId
) {
24
setMessage
();
25
}
26
27
//Destructor
28
29
SiPixelRawDataError::~SiPixelRawDataError
() {}
30
31
//functions to get error words and types
32
33
void
SiPixelRawDataError::setWord32
(
cms_uint32_t
errorWord32) {
errorWord32_
= errorWord32; }
34
35
void
SiPixelRawDataError::setWord64
(
cms_uint64_t
errorWord64) {
errorWord64_
= errorWord64; }
36
37
void
SiPixelRawDataError::setType
(
int
errorType) {
38
errorType_
= errorType;
39
setMessage
();
40
}
41
42
void
SiPixelRawDataError::setFedId
(
int
fedId
) {
fedId_
=
fedId
; }
43
44
void
SiPixelRawDataError::setMessage
() {
45
switch
(
errorType_
) {
46
case
(25): {
47
errorMessage_
=
"Error: Disabled FED channel (ROC=25)"
;
48
break
;
49
}
50
case
(26): {
51
errorMessage_
=
"Error: Gap word"
;
52
break
;
53
}
54
case
(27): {
55
errorMessage_
=
"Error: Dummy word"
;
56
break
;
57
}
58
case
(28): {
59
errorMessage_
=
"Error: FIFO nearly full"
;
60
break
;
61
}
62
case
(29): {
63
errorMessage_
=
"Error: Timeout"
;
64
break
;
65
}
66
case
(30): {
67
errorMessage_
=
"Error: Trailer"
;
68
break
;
69
}
70
case
(31): {
71
errorMessage_
=
"Error: Event number mismatch"
;
72
break
;
73
}
74
case
(32): {
75
errorMessage_
=
"Error: Invalid or missing header"
;
76
break
;
77
}
78
case
(33): {
79
errorMessage_
=
"Error: Invalid or missing trailer"
;
80
break
;
81
}
82
case
(34): {
83
errorMessage_
=
"Error: Size mismatch"
;
84
break
;
85
}
86
case
(35): {
87
errorMessage_
=
"Error: Invalid channel"
;
88
break
;
89
}
90
case
(36): {
91
errorMessage_
=
"Error: Invalid ROC number"
;
92
break
;
93
}
94
case
(37): {
95
errorMessage_
=
"Error: Invalid dcol/pixel address"
;
96
break
;
97
}
98
default
:
99
errorMessage_
=
"Error: Unknown error type"
;
100
};
101
}
SiPixelRawDataError::errorWord64_
cms_uint64_t errorWord64_
Definition:
SiPixelRawDataError.h:48
cms_uint32_t
unsigned int cms_uint32_t
Definition:
typedefs.h:15
SiPixelRawDataError::errorWord32_
cms_uint32_t errorWord32_
Definition:
SiPixelRawDataError.h:47
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::fedId_
int fedId_
Definition:
SiPixelRawDataError.h:50
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:82
SiPixelRawDataError::SiPixelRawDataError
SiPixelRawDataError()
Default constructor.
Definition:
SiPixelRawDataError.cc:15
SiPixelRawDataError::setFedId
void setFedId(int fedId)
Definition:
SiPixelRawDataError.cc:42
SiPixelRawDataError::setWord64
void setWord64(cms_uint64_t errorWord64)
Definition:
SiPixelRawDataError.cc:35
SiPixelRawDataError.h
SiPixelRawDataError::~SiPixelRawDataError
~SiPixelRawDataError()
Destructor.
Definition:
SiPixelRawDataError.cc:29
SiPixelRawDataError::setWord32
void setWord32(cms_uint32_t errorWord32)
Definition:
SiPixelRawDataError.cc:33
Generated for CMSSW Reference Manual by
1.8.16