ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15class TgcRdo;
16class TgcIdHelper;
17
18namespace Muon
19{
20
27
28 class TGC_RodDecoderReadout : public extends<AthAlgTool, ITGC_RodDecoder>
29 {
30 public:
32 TGC_RodDecoderReadout(const std::string& t, const std::string& n, const IInterface* p);
35
37 virtual StatusCode initialize() override;
39 virtual StatusCode finalize() override;
41 virtual StatusCode fillCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment& robFrag, TgcRdoContainer& rdoIdc) const override;
42
43 private:
46
48 void getCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment& robFrag, TgcRdo* rdo) const;
50 void byteStream2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo* rdo, uint32_t source_id) const;
51 void byteStreamSrod2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo* rdo, uint32_t source_id, uint32_t ndata ) const;
53 void showStatusWords(const uint32_t source_id, const uint16_t rdoId, const int idHash,
54 const uint32_t nstatus, const uint32_t* status) const;
59
60 // counters to see how often we use the cache for the raw data collections
61 mutable std::atomic<unsigned int> m_nCache = 0;
62 mutable std::atomic<unsigned int> m_nNotCache = 0;
63 };
64} // end of namespace
65
66#endif // MUONTGC_CNVTOOLS_TGC_RODDECODERREADOUT_H
void byteStream2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo *rdo, uint32_t source_id) const
Convert data contents of ROBFragment to RDO.
virtual StatusCode initialize() override
Standard AlgTool method.
void getCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdo *rdo) const
Retrieve header of ROBFragment.
std::atomic< unsigned int > m_nCache
virtual StatusCode finalize() override
Standard AlgTool method.
std::atomic< unsigned int > m_nNotCache
bool m_showStatusWords
Flag for showStatusWords.
const TgcIdHelper * m_tgcIdHelper
TGC ID helper.
void byteStreamSrod2Rdo(OFFLINE_FRAGMENTS_NAMESPACE::PointerType bs, TgcRdo *rdo, uint32_t source_id, uint32_t ndata) const
bool m_skipCoincidence
Flag for skipping coincidence objects (for TrigT1TGC running on data)
virtual ~TGC_RodDecoderReadout()
default destructor
virtual StatusCode fillCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdoContainer &rdoIdc) const override
Convert ROBFragment to RDO.
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.
TGC_RodDecoderReadout(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
const DataType * PointerType
Definition RawEvent.h:25
eformat::ROBFragment< PointerType > ROBFragment
Definition RawEvent.h:27