ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonByteStreamCnvTest
src
RpcByteStreamDecoder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef RPCBYTESTREAMDECODER_H
6
#define RPCBYTESTREAMDECODER_H
7
8
#include "GaudiKernel/MsgStream.h"
9
#include "GaudiKernel/StatusCode.h"
10
#include "
MuonIdHelpers/RpcIdHelper.h
"
11
#include "
MuonRDO/RpcPad.h
"
12
#include "
RPC_CondCabling/RpcCablingCondData.h
"
13
#include "
TrigT1RPChardware/MatrixReadOutStructure.h
"
14
#include "
TrigT1RPClogic/RPCbytestream.h
"
15
16
// Decode a RPCbytestream object and build the bare RPC RDO's
17
// Stefano Rosati
18
// Jan 2003
19
20
// typedefs
21
typedef
std::map<int, CMAreadout, std::less<int> >
CMA_Readout
;
22
typedef
std::map<int, PADreadout, std::less<int> >
PAD_Readout
;
23
24
class
RpcByteStreamDecoder
{
25
public
:
26
// Constructor and destructor
27
RpcByteStreamDecoder
(
const
RPCbytestream
* p_bytestream,
const
RpcCablingCondData
* readCdo,
const
RpcIdHelper
* rpcId,
28
MsgStream* log =
nullptr
);
29
~RpcByteStreamDecoder
();
30
31
// Decode the bytestream coming from the LVL1 simulation
32
StatusCode
decodeByteStream
();
33
34
// Retrieve the vector of RDO's (RpcPad)
35
std::vector<RpcPad*>*
getPads
() {
return
m_rpcpads
; };
36
37
// Printout the RDO's for testing
38
void
print
();
39
40
private
:
41
// Pad and Matrix decoding functions
42
RpcPad
*
decodePad
(
PADreadout
& pad);
43
RpcCoinMatrix
*
decodeMatrix
(
MatrixReadOut
* matrix,
Identifier
&
id
);
44
45
// Data members
46
const
RPCbytestream
*
m_bytestream
;
47
const
RpcCablingCondData
*
m_cabling
;
48
const
RpcIdHelper
*
m_rpcIdHelper
;
49
std::vector<RpcPad*>*
m_rpcpads
;
50
51
MsgStream*
m_log
;
52
bool
m_debug
;
53
bool
m_verbose
;
54
55
RpcByteStreamDecoder
&
operator=
(
const
RpcByteStreamDecoder
& right);
56
RpcByteStreamDecoder
(
const
RpcByteStreamDecoder
&);
57
};
58
59
#endif
// RPCBYTESTREAMDECODER_H
MatrixReadOutStructure.h
RPCbytestream.h
CMA_Readout
std::map< int, CMAreadout, std::less< int > > CMA_Readout
Definition
RpcByteStreamDecoder.h:21
PAD_Readout
std::map< int, PADreadout, std::less< int > > PAD_Readout
Definition
RpcByteStreamDecoder.h:22
RpcCablingCondData.h
RpcIdHelper.h
RpcPad.h
MatrixReadOut
Definition
MatrixReadOut.h:18
PADreadout
Definition
PADreadout.h:20
RPCbytestream
Definition
RPCbytestream.h:20
RpcByteStreamDecoder::~RpcByteStreamDecoder
~RpcByteStreamDecoder()
Definition
RpcByteStreamDecoder.cxx:25
RpcByteStreamDecoder::decodeMatrix
RpcCoinMatrix * decodeMatrix(MatrixReadOut *matrix, Identifier &id)
Definition
RpcByteStreamDecoder.cxx:131
RpcByteStreamDecoder::m_cabling
const RpcCablingCondData * m_cabling
Definition
RpcByteStreamDecoder.h:47
RpcByteStreamDecoder::decodePad
RpcPad * decodePad(PADreadout &pad)
Definition
RpcByteStreamDecoder.cxx:52
RpcByteStreamDecoder::m_rpcIdHelper
const RpcIdHelper * m_rpcIdHelper
Definition
RpcByteStreamDecoder.h:48
RpcByteStreamDecoder::m_log
MsgStream * m_log
Definition
RpcByteStreamDecoder.h:51
RpcByteStreamDecoder::print
void print()
Definition
RpcByteStreamDecoder.cxx:172
RpcByteStreamDecoder::m_rpcpads
std::vector< RpcPad * > * m_rpcpads
Definition
RpcByteStreamDecoder.h:49
RpcByteStreamDecoder::RpcByteStreamDecoder
RpcByteStreamDecoder(const RpcByteStreamDecoder &)
RpcByteStreamDecoder::decodeByteStream
StatusCode decodeByteStream()
Definition
RpcByteStreamDecoder.cxx:32
RpcByteStreamDecoder::operator=
RpcByteStreamDecoder & operator=(const RpcByteStreamDecoder &right)
RpcByteStreamDecoder::RpcByteStreamDecoder
RpcByteStreamDecoder(const RPCbytestream *p_bytestream, const RpcCablingCondData *readCdo, const RpcIdHelper *rpcId, MsgStream *log=nullptr)
Definition
RpcByteStreamDecoder.cxx:11
RpcByteStreamDecoder::getPads
std::vector< RpcPad * > * getPads()
Definition
RpcByteStreamDecoder.h:35
RpcByteStreamDecoder::m_debug
bool m_debug
Definition
RpcByteStreamDecoder.h:52
RpcByteStreamDecoder::m_bytestream
const RPCbytestream * m_bytestream
Definition
RpcByteStreamDecoder.h:46
RpcByteStreamDecoder::m_verbose
bool m_verbose
Definition
RpcByteStreamDecoder.h:53
RpcCablingCondData
Definition
RpcCablingCondData.h:23
RpcCoinMatrix
Definition
RpcCoinMatrix.h:20
RpcIdHelper
Definition
RpcIdHelper.h:51
RpcPad
Definition
RpcPad.h:21
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0