ATLAS Offline Software
NRpcCablingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef MUONNRPC_CABLING_MUONNRPC_CABLINGALG_H
11 #define MUONNRPC_CABLING_MUONNRPC_CABLINGALG_H
12 
19 
20 #include "nlohmann/json.hpp"
21 
22 namespace Muon{
24  public:
26 
27  virtual ~NRpcCablingAlg() = default;
28  virtual StatusCode initialize() override;
29  virtual StatusCode execute(const EventContext &ctx) const override;
30  virtual bool isReEntrant() const override final { return false; }
31 
32  private:
33  ServiceHandle<IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34  SG::WriteCondHandleKey<RpcCablingMap> m_writeKey{this, "WriteKey", "MuonNRPC_CablingMap", "Key of output NRPC cabling map"};
35 
36  SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyMap{this, "MapFolders", "/RPC/NCABLING/JSON",
37  "Database folder for the RPC cabling"};
38 
39  Gaudi::Property<std::string> m_extJSONFile{this, "JSONFile", "",
40  "Specify an external JSON file containing the cabling information."};
41 
44  const nlohmann::json &payload) const;
45  };
46 
47 }
48 #endif
Muon::NRpcCablingAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: NRpcCablingAlg.h:30
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
json
nlohmann::json json
Definition: HistogramDef.cxx:9
Muon::NRpcCablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: NRpcCablingAlg.cxx:31
RpcCablingMap.h
WriteCondHandleKey.h
Muon::NRpcCablingAlg::m_readKeyMap
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
Definition: NRpcCablingAlg.h:36
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
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
Muon::NRpcCablingAlg::~NRpcCablingAlg
virtual ~NRpcCablingAlg()=default
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Muon::NRpcCablingAlg::initialize
virtual StatusCode initialize() override
Definition: NRpcCablingAlg.cxx:21
Muon::NRpcCablingAlg
Definition: NRpcCablingAlg.h:23
Muon::NRpcCablingAlg::parsePayload
StatusCode parsePayload(RpcCablingMap &cablingMap, const nlohmann::json &payload) const
Load the payload of the actual cabling map from offline <-> online
Definition: NRpcCablingAlg.cxx:77
MdtMezzExtraction.cablingMap
cablingMap
Definition: MdtMezzExtraction.py:19
Muon::RpcCablingMap
Definition: RpcCablingMap.h:27
ReadCondHandleKey.h
AthReentrantAlgorithm.h
Muon::NRpcCablingAlg::m_extJSONFile
Gaudi::Property< std::string > m_extJSONFile
Definition: NRpcCablingAlg.h:39
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
SG::ReadCondHandleKey< CondAttrListCollection >
Muon::NRpcCablingAlg::m_idHelperSvc
ServiceHandle< IMuonIdHelperSvc > m_idHelperSvc
Definition: NRpcCablingAlg.h:33
SG::WriteCondHandleKey
Definition: WriteCondHandleKey.h:20
Muon::NRpcCablingAlg::m_writeKey
SG::WriteCondHandleKey< RpcCablingMap > m_writeKey
Definition: NRpcCablingAlg.h:34
IMuonIdHelperSvc.h
ServiceHandle
Definition: ClusterMakerTool.h:37