|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef MUONMDT_CABLING_MUONMDT_CABLINGALG_H
10 #define MUONMDT_CABLING_MUONMDT_CABLINGALG_H
19 #include "nlohmann/json.hpp"
39 Gaudi::Property<bool>
m_isRun3{
this,
"isRun3",
false,
"Auxillary property to load the BIS78 cabling by hand"};
59 Gaudi::Property<std::string>
m_mezzJSON{
this,
"MezzanineJSON",
"" ,
60 "External JSON file to read the mezzanine mapping from"};
62 Gaudi::Property<std::string>
m_chambJSON{
this,
"CablingJSON",
"",
63 "External JSON file to read the MDT cabling from"};
66 "Read out the cabling database JSON based"};
MuonMDT_CablingAlg(const std::string &name, ISvcLocator *pSvcLocator)
bool extractStationInfo(const coral::AttributeList &atr, CablingData &map_data) const
Retrieves the general MDT station info from the coral attribute.
SG::WriteCondHandleKey< MuonMDT_CablingMap > m_writeKey
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
StatusCode loadCablingSchema(const EventContext &ctx, SG::WriteCondHandle< MuonMDT_CablingMap > &writeHandle, MuonMDT_CablingMap &cabling_map) const
Load the cabling schema of the tubes.
MuonMDT_CablingMap::CablingData CablingData
bool const RAWDATA *ch2 const
Abstract interface to IOVDbSvc to access IOVRange and tag information.
virtual ~MuonMDT_CablingAlg()=default
Gaudi::Property< std::string > m_mezzJSON
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.
bool extractLayerInfo(std::vector< std::string > &, CablingData &map_data) const
Retrieves the channel info from the coral attribute.
StatusCode dbPayloadToJson(SG::ReadCondHandle< CondAttrListCollection > &readHandle, nlohmann::json &json) const
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMap
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isReEntrant() const override final
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyMez
StatusCode loadMezzanineSchema(const EventContext &ctx, SG::WriteCondHandle< MuonMDT_CablingMap > &writeHandle, MuonMDT_CablingMap &cabling_map) const
Load the mezzanine schema into the cabling.
virtual StatusCode execute(const EventContext &ctx) const override
MuonMDT_CablingAlg reads raw condition data and writes derived condition data to the condition store.
Gaudi::Property< bool > m_isRun3
StatusCode loadMezzanineFromJSON(nlohmann::json &&payload, MuonMDT_CablingMap &cabling_map) const
Gaudi::Property< bool > m_useJSONFormat
StatusCode loadCablingSchemaFromJSON(nlohmann::json &&payload, MuonMDT_CablingMap &cabling_map) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MdtCablingData CablingData
Gaudi::Property< std::string > m_chambJSON