ATLAS Offline Software
Loading...
Searching...
No Matches
RpcRDO_Decoder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONBYTESTREAMRPCRDODECODER_H
6#define MUONBYTESTREAMRPCRDODECODER_H
7
8
9
11#include "GaudiKernel/ServiceHandle.h"
14
15
16#include <cstdint>
17#include <memory>
18#include <string>
19#include <vector>
20
22class RpcFiredChannel;
23class RpcDigit;
24class Identifier;
25
26// Decoder class for conversion from RPC RDOs to RPC digits
27namespace Muon {
28
29 class RpcRDO_Decoder : public extends<AthAlgTool, IRPC_RDO_Decoder> {
30 public:
31 RpcRDO_Decoder(const std::string& type, const std::string& name, const IInterface* parent);
32 ~RpcRDO_Decoder() = default;
33
34 virtual StatusCode initialize() override;
35
36 virtual std::vector<std::unique_ptr<RpcDigit>> getDigit(const RpcFiredChannel* fChan, uint16_t& sectorID, uint16_t& padId, uint16_t& cmaId,
37 const RpcCablingCondData* rpcCab) const override;
38
39 virtual std::vector<Identifier> getOfflineData(const RpcFiredChannel* fChan, uint16_t& sectorID, uint16_t& padId, uint16_t& cmaId,
40 double& time, const RpcCablingCondData* rpcCab) const override;
41
42 private:
43 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
44 Gaudi::Property<int> m_bczero { this, "BCZERO", 3, "Nominal BC for RPC readout"};
45
46 };
47
48} // namespace Muon
49
50#endif // MUONBYTESTREAMRPCRDODECODER_H
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual std::vector< std::unique_ptr< RpcDigit > > getDigit(const RpcFiredChannel *fChan, uint16_t &sectorID, uint16_t &padId, uint16_t &cmaId, const RpcCablingCondData *rpcCab) const override
RpcRDO_Decoder(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize() override
virtual std::vector< Identifier > getOfflineData(const RpcFiredChannel *fChan, uint16_t &sectorID, uint16_t &padId, uint16_t &cmaId, double &time, const RpcCablingCondData *rpcCab) const override
Gaudi::Property< int > m_bczero
~RpcRDO_Decoder()=default
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.