ATLAS Offline Software
MuonNRPC_CablingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
24  public:
25  MuonNRPC_CablingAlg(const std::string& name, ISvcLocator* pSvcLocator);
26  virtual ~MuonNRPC_CablingAlg() = default;
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute(const EventContext& ctx) const override;
29 
30  virtual bool isReEntrant() const override final { return false; }
31 
33 
34 private:
35  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
36  SG::WriteCondHandleKey<MuonNRPC_CablingMap> m_writeKey{this, "WriteKey", "MuonNRPC_CablingMap", "Key of output NRPC cabling map"};
37 
39  this, "MapFolders", "/RPC/NCABLING/JSON", "Database folder for the RPC cabling"};
40 
41  Gaudi::Property<std::string> m_extJSONFile{
42  this, "JSONFile", "",
43  "Specify an external JSON file containing the cabling information."};
44 
46  const nlohmann::json& payload) const;
47 };
48 
49 #endif
MuonNRPC_CablingAlg::MuonNRPC_CablingAlg
MuonNRPC_CablingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonNRPC_CablingAlg.cxx:22
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
MuonNRPC_CablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonNRPC_CablingAlg.cxx:36
json
nlohmann::json json
Definition: HistogramDef.cxx:9
NrpcCablingCoolData
Struct to represent all cabling information coming from the cabling database per channel.
Definition: NrpcCablingData.h:140
MuonNRPC_CablingMap.h
WriteCondHandleKey.h
MuonNRPC_CablingAlg::m_writeKey
SG::WriteCondHandleKey< MuonNRPC_CablingMap > m_writeKey
Definition: MuonNRPC_CablingAlg.h:36
MuonNRPC_CablingAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: MuonNRPC_CablingAlg.h:30
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
MuonNRPC_CablingMap
Definition: MuonNRPC_CablingMap.h:21
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonNRPC_CablingAlg
MuonNRPC_CablingAlg reads raw condition data and writes derived condition data to the condition store...
Definition: MuonNRPC_CablingAlg.h:23
MuonNRPC_CablingAlg::m_extJSONFile
Gaudi::Property< std::string > m_extJSONFile
Definition: MuonNRPC_CablingAlg.h:41
MuonNRPC_CablingAlg::initialize
virtual StatusCode initialize() override
Definition: MuonNRPC_CablingAlg.cxx:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonNRPC_CablingAlg::~MuonNRPC_CablingAlg
virtual ~MuonNRPC_CablingAlg()=default
MuonNRPC_CablingAlg::m_readKeyMap
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
Definition: MuonNRPC_CablingAlg.h:38
ReadCondHandleKey.h
AthReentrantAlgorithm.h
MuonNRPC_CablingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonNRPC_CablingAlg.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
SG::ReadCondHandleKey< CondAttrListCollection >
SG::WriteCondHandleKey< MuonNRPC_CablingMap >
MuonNRPC_CablingAlg::payLoadJSON
StatusCode payLoadJSON(MuonNRPC_CablingMap &cabling_map, const nlohmann::json &payload) const
Definition: MuonNRPC_CablingAlg.cxx:90
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >