ATLAS Offline Software
RpcRdoToRpcDigit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONBYTESTREAMCNVTEST_RPCRDOTORPCDIGIT_H
6 #define MUONBYTESTREAMCNVTEST_RPCRDOTORPCDIGIT_H
7 
18 
19 namespace Muon {
21  public:
23  virtual ~RpcRdoToRpcDigit() = default;
24 
25  virtual StatusCode initialize() override final;
26  virtual StatusCode execute(const EventContext &ctx) const override final;
27 
28  private:
29  using TempDigitContainer = std::vector<std::unique_ptr<RpcDigitCollection>>;
31  StatusCode decodeLegacyRdo(const EventContext &ctx, TempDigitContainer &container) const;
32 
33  StatusCode decodeNRpc(const EventContext &ctx, TempDigitContainer &container) const;
34  ToolHandle<IRPC_RDO_Decoder> m_rpcRdoDecoderTool{this, "rpcRdoDecoderTool", "RpcRDO_Decoder", ""};
35  ServiceHandle<IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "MuonIdHelperSvc/MuonIdHelperSvc"};
36  SG::ReadHandleKey<RpcPadContainer> m_rpcRdoKey{this, "RpcRdoContainer", "RPCPAD", "Rpc RDO Input"};
37  SG::WriteHandleKey<RpcDigitContainer> m_rpcDigitKey{this, "RpcDigitContainer", "RPC_DIGITS", "Rpc Digit Output"};
38  SG::ReadCondHandleKey<RpcCablingCondData> m_rpcReadKey{this, "RpcCablingKey", "RpcCablingCondData", "Key of RpcCablingCondData"};
39 
40  Gaudi::Property<bool> m_decodeLegacyRDO{this, "DecodeLegacyRDO", true};
41  Gaudi::Property<bool> m_decodeNrpcRDO{this, "DecodeNrpcRDO", false};
42  Gaudi::Property<bool> m_patch_for_rpc_time{this, "PatchForRpcTime", false, "flag for patching the RPC time"};
43 
44  SG::ReadHandleKey<xAOD::NRPCRDOContainer> m_nRpcRdoKey{this, "NRpcRdoContainer", "NRPCRDO", "BIS78 RPC Rdo input with ToTs"};
45  SG::ReadCondHandleKey<RpcCablingMap> m_nRpcCablingKey{this, "NRpcCablingKey", "MuonNRPC_CablingMap", "Key of input MDT cabling map"};
46 
47  SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_DetectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
48  "Key of input MuonDetectorManager condition data"};
49  };
50 }
51 
52 #endif
IRPC_RDO_Decoder.h
Muon::RpcRdoToRpcDigit::m_nRpcRdoKey
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_nRpcRdoKey
Definition: RpcRdoToRpcDigit.h:44
Muon::RpcRdoToRpcDigit::m_decodeNrpcRDO
Gaudi::Property< bool > m_decodeNrpcRDO
Definition: RpcRdoToRpcDigit.h:41
Muon::RpcRdoToRpcDigit::m_rpcReadKey
SG::ReadCondHandleKey< RpcCablingCondData > m_rpcReadKey
Definition: RpcRdoToRpcDigit.h:38
RpcDigitContainer.h
RpcDigitCollection
Definition: RpcDigitCollection.h:17
RpcCablingMap.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< RpcPadContainer >
Muon::RpcRdoToRpcDigit
Definition: RpcRdoToRpcDigit.h:20
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
Muon::RpcRdoToRpcDigit::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: RpcRdoToRpcDigit.h:47
SG::WriteHandleKey< RpcDigitContainer >
Muon::RpcRdoToRpcDigit::m_nRpcCablingKey
SG::ReadCondHandleKey< RpcCablingMap > m_nRpcCablingKey
Definition: RpcRdoToRpcDigit.h:45
Muon::RpcRdoToRpcDigit::initialize
virtual StatusCode initialize() override final
Definition: RpcRdoToRpcDigit.cxx:13
Muon::RpcRdoToRpcDigit::m_rpcRdoKey
SG::ReadHandleKey< RpcPadContainer > m_rpcRdoKey
Definition: RpcRdoToRpcDigit.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
Muon::RpcRdoToRpcDigit::m_rpcRdoDecoderTool
ToolHandle< IRPC_RDO_Decoder > m_rpcRdoDecoderTool
Definition: RpcRdoToRpcDigit.h:34
ReadCondHandleKey.h
AthReentrantAlgorithm.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonDetectorManager.h
Muon::RpcRdoToRpcDigit::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: RpcRdoToRpcDigit.cxx:30
SG::ReadCondHandleKey< RpcCablingCondData >
Muon::RpcRdoToRpcDigit::m_idHelperSvc
ServiceHandle< IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcRdoToRpcDigit.h:35
Muon::RpcRdoToRpcDigit::TempDigitContainer
std::vector< std::unique_ptr< RpcDigitCollection > > TempDigitContainer
Definition: RpcRdoToRpcDigit.h:29
RpcCablingCondData.h
Muon::RpcRdoToRpcDigit::m_decodeLegacyRDO
Gaudi::Property< bool > m_decodeLegacyRDO
Definition: RpcRdoToRpcDigit.h:40
Muon::RpcRdoToRpcDigit::decodeLegacyRdo
StatusCode decodeLegacyRdo(const EventContext &ctx, TempDigitContainer &container) const
: Decode the legacy RpcRdo format
Definition: RpcRdoToRpcDigit.cxx:53
Muon::RpcRdoToRpcDigit::m_patch_for_rpc_time
Gaudi::Property< bool > m_patch_for_rpc_time
Definition: RpcRdoToRpcDigit.h:42
RpcPadContainer.h
Muon::RpcRdoToRpcDigit::decodeNRpc
StatusCode decodeNRpc(const EventContext &ctx, TempDigitContainer &container) const
Definition: RpcRdoToRpcDigit.cxx:98
Muon::RpcRdoToRpcDigit::m_rpcDigitKey
SG::WriteHandleKey< RpcDigitContainer > m_rpcDigitKey
Definition: RpcRdoToRpcDigit.h:37
Muon::RpcRdoToRpcDigit::~RpcRdoToRpcDigit
virtual ~RpcRdoToRpcDigit()=default
IMuonIdHelperSvc.h
Muon::IRPC_RDO_Decoder
This class provides conversion from RDO data to RPC RDO.
Definition: IRPC_RDO_Decoder.h:20
NRPCRDOContainer.h
ServiceHandle
Definition: ClusterMakerTool.h:37