ATLAS Offline Software
Loading...
Searching...
No Matches
RpcByteStreamErrorContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 MuonByteStreamErrors package
7 RpcByteStreamErrorContainer class
8 -----------------------------------------
9 ***************************************************************************/
10
11
12#ifndef MUONBYTESTREAMERRORS_RPCBYTESTREAMERRORCONTAINER_H
13#define MUONBYTESTREAMERRORS_RPCBYTESTREAMERRORCONTAINER_H
14
15
19
20
21namespace Muon {
24 CMHeaderErrors, // CM related error (from 0 to 8 in a pad)
25 CMSubHeaderErrors, // CM related error
26 CMFooterErrors, // CM related error
27 CRC8checkFailures, // CM related error
28 CMmissing, // CM related error
29 RXHeaderErrors, // PAD related error (0 or 1 on a pad)
40 Rpc_NUM_ERROR_TYPES // always have this one last, so we can use it as a loop index
41 };
42 // For a given pad (uniquely identified by an IdentifierHash: first item or key in the pair) the error code (second item in the pair) keep the whole
43 // information on the errors met in the pad fragment decoding;
44 //
45 // If there are CM errors in the pad, the error code is built as ValueCM=100+sum(value*10^cmid) over all cmids with errors;
46 // value in the range 1-5, i.e. CMHeaderErrors - CRC8checkFailures;
47 // If there's a Pad error, the error code is set to ValuePad+ValueCM, with ValuePad in the range 5-Rpc_NUM_ERROR_TYPES-1
48
50 {
51 public:
53
55 RpcByteStreamErrorContainer( const DataVector<std::pair<IdentifierHash, int> > & errorVector );
57
58 void clear();
59 void addError(IdentifierHash, int);
60 int getError(IdentifierHash) const;
61 std::vector<IdentifierHash> getPadsWithError() const;
62
64
65 private:
67 };
68
69}
70
72#endif // MUONBYTESTREAMERRORS_RPCBYTESTREAMERRORCONTAINER_H
73
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
Derived DataVector<T>.
Definition DataVector.h:795
This is a "hash" representation of an Identifier.
std::vector< IdentifierHash > getPadsWithError() const
DataVector< std::pair< IdentifierHash, int > > m_errorVector
DataVector< std::pair< IdentifierHash, int > >::const_iterator rpcErrorIterator
const DataVector< std::pair< IdentifierHash, int > > & getAllErrors() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.