ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonNRPC_Cabling
src
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
13
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
14
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
#include "
StoreGate/WriteCondHandleKey.h
"
18
#include "
MuonCablingData/RpcCablingMap.h
"
19
20
#include "nlohmann/json.hpp"
21
22
namespace
Muon
{
23
class
NRpcCablingAlg
:
public
AthCondAlgorithm
{
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
AthCondAlgorithm.h
Base class for conditions algorithms.
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
IMuonIdHelperSvc.h
ReadCondHandleKey.h
RpcCablingMap.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::NRpcCablingAlg
Definition
NRpcCablingAlg.h:23
Muon::NRpcCablingAlg::m_extJSONFile
Gaudi::Property< std::string > m_extJSONFile
Definition
NRpcCablingAlg.h:38
Muon::NRpcCablingAlg::m_readKeyMap
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
Definition
NRpcCablingAlg.h:35
Muon::NRpcCablingAlg::m_writeKey
SG::WriteCondHandleKey< RpcCablingMap > m_writeKey
Definition
NRpcCablingAlg.h:33
Muon::NRpcCablingAlg::m_idHelperSvc
ServiceHandle< IMuonIdHelperSvc > m_idHelperSvc
Definition
NRpcCablingAlg.h:32
Muon::NRpcCablingAlg::initialize
virtual StatusCode initialize() override
Definition
NRpcCablingAlg.cxx:21
Muon::NRpcCablingAlg::~NRpcCablingAlg
virtual ~NRpcCablingAlg()=default
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
Muon::NRpcCablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
NRpcCablingAlg.cxx:31
Muon::RpcCablingMap
Definition
RpcCablingMap.h:27
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0