ATLAS Offline Software
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 
15 class TgcRdo;
16 class TgcIdHelper;
17 
18 namespace Muon
19 {
20 
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;
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
Muon::TGC_RodDecoderReadout
Definition: TGC_RodDecoderReadout.h:29
Muon::TGC_RodDecoderReadout::~TGC_RodDecoderReadout
virtual ~TGC_RodDecoderReadout()
default destructor
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
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:177
TgcIdHelper
Definition: TgcIdHelper.h:50
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Muon::TGC_RodDecoderReadout::TGC_RodDecoderReadout
TGC_RodDecoderReadout(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
Definition: TGC_RodDecoderReadout.cxx:26
Muon::TGC_RodDecoderReadout::m_tgcIdHelper
const TgcIdHelper * m_tgcIdHelper
TGC ID helper.
Definition: TGC_RodDecoderReadout.h:45
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::TGC_RodDecoderReadout::m_nCache
std::atomic< unsigned int > m_nCache
Definition: TGC_RodDecoderReadout.h:61
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:459
Muon::TGC_RodDecoderReadout::m_nNotCache
std::atomic< unsigned int > m_nNotCache
Definition: TGC_RodDecoderReadout.h:62
Muon::TGC_RodDecoderReadout::m_showStatusWords
bool m_showStatusWords
Flag for showStatusWords.
Definition: TGC_RodDecoderReadout.h:56
OFFLINE_FRAGMENTS_NAMESPACE::PointerType
const DataType * PointerType
Definition: RawEvent.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::TGC_RodDecoderReadout::fillCollection
virtual StatusCode fillCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdoContainer &rdoIdc) const override
Convert ROBFragment to RDO.
Definition: TGC_RodDecoderReadout.cxx:77
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TgcRdoContainer
Definition: TgcRdoContainer.h:25
eformat::ROBFragment
Definition: L1CaloBsDecoderUtil.h:12
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Muon::TGC_RodDecoderReadout::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition: TGC_RodDecoderReadout.cxx:44
Muon::TGC_RodDecoderReadout::finalize
virtual StatusCode finalize() override
Standard AlgTool method.
Definition: TGC_RodDecoderReadout.cxx:63
Muon::TGC_RodDecoderReadout::m_skipCoincidence
bool m_skipCoincidence
Flag for skipping coincidence objects (for TrigT1TGC running on data)
Definition: TGC_RodDecoderReadout.h:58
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:654
merge.status
status
Definition: merge.py:17
TgcRdo
Definition: TgcRdo.h:22
ITGC_RodDecoder.h
Muon::TGC_RodDecoderReadout::getCollection
void getCollection(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment &robFrag, TgcRdo *rdo) const
Retrieve header of ROBFragment.
Definition: TGC_RodDecoderReadout.cxx:139