5#ifndef MUONCONDALG_MDTASBUILTCONDALG_H
6#define MUONCONDALG_MDTASBUILTCONDALG_H
10#include "CoralBase/Blob.h"
16#include "nlohmann/json.hpp"
23 virtual StatusCode
execute(
const EventContext& ctx)
const override;
30 nlohmann::json& lines)
const;
33 nlohmann::json& newChannel)
const;
36 "Key of MDT/ASBUILTPARAMS input condition data"};
39 "Key of output muon alignment MDT/AsBuilt condition data"};
45 "The database folders are given in the new JSON format"};
48 "Reads the A & B lines parameters from a JSON file instead from COOL"};
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
std::set< MdtAsBuiltPar, std::less<> > MdtAsBuiltContainer
Base class for conditions algorithms.
SG::WriteCondHandleKey< MdtAsBuiltContainer > m_writeKey
StatusCode legacyFormatToJSON(const std::string &bloblines, nlohmann::json &lines) const
virtual ~MdtAsBuiltCondAlg()=default
StatusCode setFromAscii(const std::string &asciiData, nlohmann::json &newChannel) const
Gaudi::Property< std::string > m_readFromJSON
Load the alignment parameters from a JSON file.
MdtAsBuiltCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Gaudi::Property< bool > m_newFormat2020
StatusCode parseDataFromJSON(const nlohmann::json &lines, MdtAsBuiltContainer &asBuilt) const
virtual StatusCode execute(const EventContext &ctx) const override