ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#ifndef MUONNRPC_CABLING_MUONNRPC_CABLINGALG_H
11#define MUONNRPC_CABLING_MUONNRPC_CABLINGALG_H
12
19
20#include "nlohmann/json.hpp"
21
22namespace Muon{
24 public:
25 using AthCondAlgorithm::AthCondAlgorithm;
26
27 virtual ~NRpcCablingAlg() = default;
28 virtual StatusCode initialize() override;
29 virtual StatusCode execute(const EventContext &ctx) const override;
30
31 private:
32 ServiceHandle<IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 SG::WriteCondHandleKey<RpcCablingMap> m_writeKey{this, "WriteKey", "MuonNRPC_CablingMap", "Key of output NRPC cabling map"};
34
35 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyMap{this, "MapFolders", "/RPC/NCABLING/JSON",
36 "Database folder for the RPC cabling"};
37
38 Gaudi::Property<std::string> m_extJSONFile{this, "JSONFile", "",
39 "Specify an external JSON file containing the cabling information."};
40
42 StatusCode parsePayload(RpcCablingMap &cablingMap,
43 const nlohmann::json &payload) const;
44 };
45
46}
47#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
Gaudi::Property< std::string > m_extJSONFile
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
SG::WriteCondHandleKey< RpcCablingMap > m_writeKey
ServiceHandle< IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode initialize() override
virtual ~NRpcCablingAlg()=default
StatusCode parsePayload(RpcCablingMap &cablingMap, const nlohmann::json &payload) const
Load the payload of the actual cabling map from offline <-> online.
virtual StatusCode execute(const EventContext &ctx) const override
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.