ATLAS Offline Software
Loading...
Searching...
No Matches
MdtAsBuiltCondAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDALG_MDTASBUILTCONDALG_H
6#define MUONCONDALG_MDTASBUILTCONDALG_H
7
10#include "CoralBase/Blob.h"
16#include "nlohmann/json.hpp"
17
20
21 namespace Muon{
23 public:
24 using AthCondAlgorithm::AthCondAlgorithm;
25 virtual ~MdtAsBuiltCondAlg() = default;
26 virtual StatusCode initialize() override;
27 virtual StatusCode execute(const EventContext& ctx) const override;
28
29 private:
30 StatusCode parseDataFromJSON(const nlohmann::json& lines,
31 MdtAsBuiltContainer& asBuilt) const;
32
33 StatusCode legacyFormatToJSON(const std::string& bloblines,
34 nlohmann::json& lines) const;
35
36 StatusCode setFromAscii(const std::string& asciiData,
37 nlohmann::json& newChannel) const;
38
39 SG::ReadCondHandleKey<CondAttrListCollection> m_readKey{this, "ReadKey", "/MUONALIGN/MDT/ASBUILTPARAMS",
40 "Key of MDT/ASBUILTPARAMS input condition data"};
41
42 SG::WriteCondHandleKey<MdtAsBuiltContainer> m_writeKey{this, "WriteKey", "MdtAsBuiltContainer",
43 "Key of output muon alignment MDT/AsBuilt condition data"};
44
45 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
46
47 // new folder format 2020
48 Gaudi::Property<bool> m_newFormat2020{this, "NewFormat2020", false,
49 "The database folders are given in the new JSON format"};
50
51 Gaudi::Property<std::string> m_readFromJSON{this,"readFromJSON", "",
52 "Reads the A & B lines parameters from a JSON file instead from COOL"};
53
54
55
56};
57}
58#endif
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.
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode setFromAscii(const std::string &asciiData, nlohmann::json &newChannel) const
Gaudi::Property< std::string > m_readFromJSON
Load the alignment parameters from a JSON file.
StatusCode parseDataFromJSON(const nlohmann::json &lines, MdtAsBuiltContainer &asBuilt) const
SG::WriteCondHandleKey< MdtAsBuiltContainer > m_writeKey
virtual ~MdtAsBuiltCondAlg()=default
StatusCode legacyFormatToJSON(const std::string &bloblines, nlohmann::json &lines) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Gaudi::Property< bool > m_newFormat2020
virtual StatusCode initialize() override
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.