DataFormats
RPCDigi
src
ErrorRDDM.cc
Go to the documentation of this file.
1
#include "
DataFormats/RPCDigi/interface/ErrorRDDM.h
"
2
3
using namespace
rpcrawtodigi
;
4
5
bool
ErrorRDDM::matchType
(
const
DataRecord
&
record
) {
6
return
(
RDDM_TYPE_FLAG
== static_cast<unsigned int>(
record
.data() >>
RDDM_TYPE_SHIFT
));
7
}
8
9
unsigned
int
ErrorRDDM::rmb
()
const
{
return
((
theData
>>
RMB_SHIFT
) &
RMB_MASK
); }
10
11
unsigned
int
ErrorRDDM::link
()
const
{
return
(
theData
&
LNK_MASK
); }
12
13
std::string
ErrorRDDM::print
()
const
{
14
std::ostringstream
str
;
15
str
<<
" RDDM, rmb: "
<<
rmb
() <<
" lnk: "
<<
link
();
16
return
str
.str();
17
}
ErrorRDDM.h
rpcrawtodigi::ErrorRDDM::RDDM_TYPE_SHIFT
static const unsigned int RDDM_TYPE_SHIFT
Definition:
ErrorRDDM.h:22
rpcrawtodigi::DataRecord
Definition:
DataRecord.h:10
rpcrawtodigi::ErrorRDDM::RDDM_TYPE_FLAG
static const unsigned int RDDM_TYPE_FLAG
Definition:
ErrorRDDM.h:21
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
rpcrawtodigi
Definition:
DataRecord.h:9
rpcrawtodigi::ErrorRDDM::rmb
unsigned int rmb() const
Definition:
ErrorRDDM.cc:9
rpcrawtodigi::ErrorRDDM::print
std::string print() const
Definition:
ErrorRDDM.cc:13
str
#define str(s)
Definition:
TestProcessor.cc:48
rpcrawtodigi::ErrorRDDM::RMB_MASK
static const unsigned int RMB_MASK
Definition:
ErrorRDDM.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
rpcrawtodigi::ErrorRDDM::link
unsigned int link() const
Definition:
ErrorRDDM.cc:11
rpcrawtodigi::ErrorRDDM::RMB_SHIFT
static const unsigned int RMB_SHIFT
Definition:
ErrorRDDM.h:25
rpcrawtodigi::ErrorRDDM::matchType
static bool matchType(const DataRecord &record)
Definition:
ErrorRDDM.cc:5
rpcrawtodigi::ErrorRDDM::LNK_MASK
static const unsigned int LNK_MASK
Definition:
ErrorRDDM.h:27
rpcrawtodigi::DataRecord::theData
Data theData
Definition:
DataRecord.h:46
Generated for CMSSW Reference Manual by
1.8.16