ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonTGC_CnvTools
src
TGC_RodDecoderReadout.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// TGC_RodDecoderReadout.h, (c) ATLAS Detector software
8
9
#ifndef MUONTGC_CNVTOOLS_TGC_RODDECODERREADOUT_H
10
#define MUONTGC_CNVTOOLS_TGC_RODDECODERREADOUT_H
11
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "
MuonTGC_CnvTools/ITGC_RodDecoder.h
"
14
15
class
TgcRdo
;
16
class
TgcIdHelper
;
17
18
namespace
Muon
{
19
27
28
class
TGC_RodDecoderReadout
:
public
extends<AthAlgTool, ITGC_RodDecoder> {
29
public
:
31
using
base_class::base_class;
33
virtual
~TGC_RodDecoderReadout
();
34
36
virtual
StatusCode
initialize
()
override
;
38
virtual
StatusCode
finalize
()
override
;
40
virtual
StatusCode
fillCollection
(
41
const
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
& robFrag,
42
TgcRdoContainer
& rdoIdc,
const
EventContext& ctx)
const override
;
43
44
private
:
46
const
TgcIdHelper
*
m_tgcIdHelper
{
nullptr
};
47
49
void
getCollection
(
const
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
& robFrag,
50
TgcRdo
* rdo)
const
;
52
void
byteStream2Rdo
(
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
bs,
53
TgcRdo
* rdo, uint32_t source_id)
const
;
54
void
byteStreamSrod2Rdo
(
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
bs,
55
TgcRdo
* rdo, uint32_t source_id,
56
uint32_t ndata)
const
;
58
void
showStatusWords
(
const
uint32_t source_id,
const
uint16_t rdoId,
59
const
int
idHash,
const
uint32_t nstatus,
60
const
uint32_t* status)
const
;
61
63
Gaudi::Property<bool>
m_showStatusWords
{
this
,
"ShowStatusWords"
,
false
};
65
Gaudi::Property<bool>
m_skipCoincidence
{
this
,
"SkipCoincidence"
,
false
};
66
67
// counters to see how often we use the cache for the raw data collections
68
mutable
std::atomic<unsigned int>
m_nCache
= 0;
69
mutable
std::atomic<unsigned int>
m_nNotCache
= 0;
70
};
71
}
// namespace Muon
72
73
#endif
// MUONTGC_CNVTOOLS_TGC_RODDECODERREADOUT_H
AthAlgTool.h
ITGC_RodDecoder.h
Muon::TGC_RodDecoderReadout
A tool to decode a TGC ROB fragment written in the readout format into TGC RDO.
Definition
TGC_RodDecoderReadout.h:28
Muon::TGC_RodDecoderReadout::byteStream2Rdo
void byteStream2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo *rdo, uint32_t source_id) const
Convert data contents of ROBFragment to RDO.
Definition
TGC_RodDecoderReadout.cxx:164
Muon::TGC_RodDecoderReadout::fillCollection
virtual StatusCode fillCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdoContainer &rdoIdc, const EventContext &ctx) const override
Convert ROBFragment to RDO.
Definition
TGC_RodDecoderReadout.cxx:55
Muon::TGC_RodDecoderReadout::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition
TGC_RodDecoderReadout.cxx:30
Muon::TGC_RodDecoderReadout::m_skipCoincidence
Gaudi::Property< bool > m_skipCoincidence
Flag for skipping coincidence objects (for TrigT1TGC running on data).
Definition
TGC_RodDecoderReadout.h:65
Muon::TGC_RodDecoderReadout::m_showStatusWords
Gaudi::Property< bool > m_showStatusWords
Flag for showStatusWords.
Definition
TGC_RodDecoderReadout.h:63
Muon::TGC_RodDecoderReadout::getCollection
void getCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdo *rdo) const
Retrieve header of ROBFragment.
Definition
TGC_RodDecoderReadout.cxx:123
Muon::TGC_RodDecoderReadout::m_nCache
std::atomic< unsigned int > m_nCache
Definition
TGC_RodDecoderReadout.h:68
Muon::TGC_RodDecoderReadout::finalize
virtual StatusCode finalize() override
Standard AlgTool method.
Definition
TGC_RodDecoderReadout.cxx:41
Muon::TGC_RodDecoderReadout::m_nNotCache
std::atomic< unsigned int > m_nNotCache
Definition
TGC_RodDecoderReadout.h:69
Muon::TGC_RodDecoderReadout::m_tgcIdHelper
const TgcIdHelper * m_tgcIdHelper
TGC ID helper.
Definition
TGC_RodDecoderReadout.h:46
Muon::TGC_RodDecoderReadout::byteStreamSrod2Rdo
void byteStreamSrod2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo *rdo, uint32_t source_id, uint32_t ndata) const
Definition
TGC_RodDecoderReadout.cxx:417
Muon::TGC_RodDecoderReadout::~TGC_RodDecoderReadout
virtual ~TGC_RodDecoderReadout()
default destructor
Muon::TGC_RodDecoderReadout::showStatusWords
void showStatusWords(const uint32_t source_id, const uint16_t rdoId, const int idHash, const uint32_t nstatus, const uint32_t *status) const
Show status words.
Definition
TGC_RodDecoderReadout.cxx:583
TgcIdHelper
Definition
TgcIdHelper.h:50
TgcRdoContainer
Definition
TgcRdoContainer.h:25
TgcRdo
Definition
TgcRdo.h:22
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
const DataType * PointerType
Definition
RawEvent.h:25
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
eformat::ROBFragment< PointerType > ROBFragment
Definition
RawEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0