Main Page
Namespaces
Classes
Package Documentation
DataFormats
RPCDigi
interface
ReadoutError.h
Go to the documentation of this file.
1
#ifndef DataFormats_RPCDigi_ReadoutError_H
2
#define DataFormats_RPCDigi_ReadoutError_H
3
4
#include "
CondFormats/RPCObjects/interface/LinkBoardElectronicIndex.h
"
5
#include <string>
6
7
namespace
rpcrawtodigi
{
8
class
ReadoutError
{
9
public
:
10
enum
ReadoutErrorType
{
11
NoProblem
= 0,
12
HeaderCheckFail
= 1,
13
InconsitentFedId
= 2,
14
TrailerCheckFail
= 3,
15
InconsistentDataSize
= 4,
16
InvalidLB
= 5,
17
EmptyPackedStrips
= 6,
18
InvalidDetId
= 7,
19
InvalidStrip
= 8,
20
EOD
= 9
21
};
22
23
explicit
ReadoutError
(
unsigned
int
rawCode
= 0) :
theError
(
rawCode
) {}
24
25
ReadoutError
(
const
LinkBoardElectronicIndex
&,
const
ReadoutErrorType
&);
26
27
ReadoutErrorType
type
()
const
;
28
LinkBoardElectronicIndex
where
()
const
;
29
30
static
std::string
name
(
const
ReadoutErrorType
& code);
31
32
std::string
name
()
const
{
return
name
(
type
()); }
33
34
unsigned
int
rawCode
()
const
{
return
theError
; }
35
36
private
:
37
unsigned
int
theError
;
38
};
39
40
}
// namespace rpcrawtodigi
41
#endif
rpcrawtodigi::ReadoutError::where
LinkBoardElectronicIndex where() const
Definition:
ReadoutError.cc:19
rpcrawtodigi::ReadoutError::ReadoutError
ReadoutError(unsigned int rawCode=0)
Definition:
ReadoutError.h:23
rpcrawtodigi::ReadoutError
Definition:
ReadoutError.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
rpcrawtodigi::ReadoutError::name
std::string name() const
Definition:
ReadoutError.h:32
rpcrawtodigi::ReadoutError::NoProblem
Definition:
ReadoutError.h:11
rpcrawtodigi::ReadoutError::type
ReadoutErrorType type() const
Definition:
ReadoutError.cc:14
LinkBoardElectronicIndex
Definition:
LinkBoardElectronicIndex.h:10
rpcrawtodigi::ReadoutError::EmptyPackedStrips
Definition:
ReadoutError.h:17
LinkBoardElectronicIndex.h
rpcrawtodigi::ReadoutError::EOD
Definition:
ReadoutError.h:20
rpcrawtodigi::ReadoutError::InconsistentDataSize
Definition:
ReadoutError.h:15
rpcrawtodigi::ReadoutError::InvalidLB
Definition:
ReadoutError.h:16
rpcrawtodigi::ReadoutError::InconsitentFedId
Definition:
ReadoutError.h:13
rpcrawtodigi::ReadoutError::theError
unsigned int theError
Definition:
ReadoutError.h:37
rpcrawtodigi::ReadoutError::InvalidDetId
Definition:
ReadoutError.h:18
rpcrawtodigi::ReadoutError::TrailerCheckFail
Definition:
ReadoutError.h:14
rpcrawtodigi::ReadoutError::HeaderCheckFail
Definition:
ReadoutError.h:12
rpcrawtodigi::ReadoutError::InvalidStrip
Definition:
ReadoutError.h:19
rpcrawtodigi::ReadoutError::rawCode
unsigned int rawCode() const
Definition:
ReadoutError.h:34
rpcrawtodigi::ReadoutError::ReadoutErrorType
ReadoutErrorType
Definition:
ReadoutError.h:10
rpcrawtodigi
Definition:
DataRecord.h:9
Generated for CMSSW Reference Manual by
1.8.11