9#ifndef MUONMDT_CABLING_MUONMDT_CABLINGALG_H
10#define MUONMDT_CABLING_MUONMDT_CABLINGALG_H
19#include "nlohmann/json.hpp"
27 virtual StatusCode
execute(
const EventContext& ctx)
const override;
38 Gaudi::Property<bool>
m_isRun3{
this,
"isRun3",
false,
"Auxillary property to load the BIS78 cabling by hand"};
58 Gaudi::Property<std::string>
m_mezzJSON{
this,
"MezzanineJSON",
"" ,
59 "External JSON file to read the mezzanine mapping from"};
61 Gaudi::Property<std::string>
m_chambJSON{
this,
"CablingJSON",
"",
62 "External JSON file to read the MDT cabling from"};
65 "Read out the cabling database JSON based"};
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Abstract interface to IOVDbSvc to access IOVRange and tag information.
Base class for conditions algorithms.
Gaudi::Property< bool > m_useJSONFormat
StatusCode loadCablingSchema(const EventContext &ctx, SG::WriteCondHandle< MuonMDT_CablingMap > &writeHandle, MuonMDT_CablingMap &cabling_map) const
Load the cabling schema of the tubes.
StatusCode dbPayloadToJson(SG::ReadCondHandle< CondAttrListCollection > &readHandle, nlohmann::json &json) const
virtual ~MuonMDT_CablingAlg()=default
StatusCode loadCablingSchemaFromJSON(nlohmann::json &&payload, MuonMDT_CablingMap &cabling_map) const
SG::WriteCondHandleKey< MuonMDT_CablingMap > m_writeKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode loadMezzanineSchema(const EventContext &ctx, SG::WriteCondHandle< MuonMDT_CablingMap > &writeHandle, MuonMDT_CablingMap &cabling_map) const
Load the mezzanine schema into the cabling.
Gaudi::Property< bool > m_isRun3
bool extractStationInfo(const coral::AttributeList &atr, CablingData &map_data) const
Retrieves the general MDT station info from the coral attribute.
MuonMDT_CablingAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
Gaudi::Property< std::string > m_chambJSON
StatusCode loadMezzanineFromJSON(nlohmann::json &&payload, MuonMDT_CablingMap &cabling_map) const
bool extractLayerInfo(std::vector< std::string > &, CablingData &map_data) const
Retrieves the channel info from the coral attribute.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMez
MuonMDT_CablingMap::CablingData CablingData
Gaudi::Property< std::string > m_mezzJSON
virtual StatusCode initialize() override
MdtCablingData CablingData