ATLAS Offline Software
MdtRDO_Decoder.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 MUONBYTESTREAMMDTRDODECODER_H
6 #define MUONBYTESTREAMMDTRDODECODER_H
7 
8 #include <string>
9 #include <vector>
10 
12 #include "GaudiKernel/ServiceHandle.h"
17 #include "MuonRDO/MdtAmtHit.h"
19 
20 namespace Muon {
21  // Decoder class for conversion from MDT RDOs to MDT digits
22  // Stefano Rosati
23  // CERN Jan 2004
24 
25  class MdtRDO_Decoder : public AthAlgTool, virtual public IMDT_RDO_Decoder {
26  public:
27  MdtRDO_Decoder(const std::string& type, const std::string& name, const IInterface* parent);
28 
29  StatusCode initialize() override final;
30 
31  std::unique_ptr<MdtDigit> getDigit(const EventContext& ctx,
32  const MdtAmtHit& amtHit,
33  uint16_t subdetId,
34  uint16_t mrodId,
35  uint16_t csmId) const override final;
36 
37  private:
38  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
39  SG::ReadCondHandleKey<MuonMDT_CablingMap> m_readKey{this, "ReadKey", "MuonMDT_CablingMap", "Key of MuonMDT_CablingMap"};
40  };
41 
42 } // namespace Muon
43 
44 
45 #endif
Muon::MdtRDO_Decoder::initialize
StatusCode initialize() override final
Definition: MdtRDO_Decoder.cxx:14
Muon::IMDT_RDO_Decoder
Definition: IMDT_RDO_Decoder.h:17
MdtAmtHit
MDT RDO's : data from a single channel of an AMT Atlas Muon TDC.
Definition: MdtAmtHit.h:20
MdtDigit.h
Muon::MdtRDO_Decoder
Definition: MdtRDO_Decoder.h:25
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MdtRDO_Decoder::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MdtRDO_Decoder.h:38
IMDT_RDO_Decoder.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
Muon::MdtRDO_Decoder::getDigit
std::unique_ptr< MdtDigit > getDigit(const EventContext &ctx, const MdtAmtHit &amtHit, uint16_t subdetId, uint16_t mrodId, uint16_t csmId) const override final
Definition: MdtRDO_Decoder.cxx:20
MuonMDT_CablingMap.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Muon::MdtRDO_Decoder::m_readKey
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_readKey
Definition: MdtRDO_Decoder.h:39
ReadCondHandleKey.h
MdtAmtHit.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Muon::MdtRDO_Decoder::MdtRDO_Decoder
MdtRDO_Decoder(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MdtRDO_Decoder.cxx:9
SG::ReadCondHandleKey< MuonMDT_CablingMap >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >