CMS 3D CMS Logo

ReadoutError.cc
Go to the documentation of this file.
2 #include <bitset>
3 #include <iostream>
4 
5 using namespace rpcrawtodigi;
6 
8  unsigned int where =
9  (path.dccId << 13) | (path.dccInputChannelNum << 7) | (path.tbLinkInputNum << 2) | path.lbNumInLink;
10  unsigned int what = type;
11  theError = (where << 4) | (what & 0xf);
12 }
13 
15  //return static_cast<ReadoutErrorType>(theError&0xf);
16  return ReadoutErrorType(theError & 0xf);
17 }
18 
20  unsigned int data = (theError >> 4);
22  ele.dccId = (data >> 13);
23  ele.dccInputChannelNum = (data >> 7) & 63;
24  ele.tbLinkInputNum = (data >> 2) & 31;
25  ele.lbNumInLink = data & 3;
26  return ele;
27 }
28 
31  switch (code) {
32  case (HeaderCheckFail): {
33  result = "HeaderCheckFail";
34  break;
35  }
36  case (InconsitentFedId): {
37  result = "InconsitentFedId";
38  break;
39  }
40  case (TrailerCheckFail): {
41  result = "TrailerCheckFail";
42  break;
43  }
44  case (InconsistentDataSize): {
45  result = "InconsistentDataSize";
46  break;
47  }
48  case (InvalidLB): {
49  result = "InvalidLB";
50  break;
51  }
52  case (EmptyPackedStrips): {
53  result = "EmptyPackedStrips";
54  break;
55  }
56  case (InvalidDetId): {
57  result = "InvalidDetId";
58  break;
59  }
60  case (InvalidStrip): {
61  result = "InvalidStrip";
62  break;
63  }
64  case (EOD): {
65  result = "EOD";
66  break;
67  }
68  default: {
69  result = "NoProblem";
70  }
71  }
72  return result;
73 }
rpcrawtodigi::ReadoutError::ReadoutErrorType
ReadoutErrorType
Definition: ReadoutError.h:10
rpcrawtodigi::ReadoutError::EOD
Definition: ReadoutError.h:20
LinkBoardElectronicIndex::dccId
int dccId
Definition: LinkBoardElectronicIndex.h:11
rpcrawtodigi::ReadoutError::theError
unsigned int theError
Definition: ReadoutError.h:37
rpcrawtodigi::ReadoutError::type
ReadoutErrorType type() const
Definition: ReadoutError.cc:14
rpcrawtodigi
Definition: DataRecord.h:9
rpcrawtodigi::ReadoutError::InvalidLB
Definition: ReadoutError.h:16
rpcrawtodigi::ReadoutError::EmptyPackedStrips
Definition: ReadoutError.h:17
LinkBoardElectronicIndex::dccInputChannelNum
int dccInputChannelNum
Definition: LinkBoardElectronicIndex.h:12
rpcrawtodigi::ReadoutError::InvalidStrip
Definition: ReadoutError.h:19
rpcrawtodigi::ReadoutError::InconsitentFedId
Definition: ReadoutError.h:13
LinkBoardElectronicIndex::tbLinkInputNum
int tbLinkInputNum
Definition: LinkBoardElectronicIndex.h:13
rpcrawtodigi::ReadoutError::InconsistentDataSize
Definition: ReadoutError.h:15
rpcrawtodigi::ReadoutError::HeaderCheckFail
Definition: ReadoutError.h:12
ReadoutError.h
rpcrawtodigi::ReadoutError::name
std::string name() const
Definition: ReadoutError.h:32
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
rpcrawtodigi::ReadoutError::InvalidDetId
Definition: ReadoutError.h:18
rpcrawtodigi::ReadoutError::ReadoutError
ReadoutError(unsigned int rawCode=0)
Definition: ReadoutError.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LinkBoardElectronicIndex
Definition: LinkBoardElectronicIndex.h:10
rpcrawtodigi::ReadoutError::TrailerCheckFail
Definition: ReadoutError.h:14
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
mps_fire.result
result
Definition: mps_fire.py:311
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
rpcrawtodigi::ReadoutError::where
LinkBoardElectronicIndex where() const
Definition: ReadoutError.cc:19
LinkBoardElectronicIndex::lbNumInLink
int lbNumInLink
Definition: LinkBoardElectronicIndex.h:14