ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
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
8
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
9
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
10
#include "CoralBase/Blob.h"
11
#include "
StoreGate/CondHandleKeyArray.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
#include "
CoralUtilities/blobaccess.h
"
14
#include "
MuonAlignmentData/CorrContainer.h
"
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
#include "nlohmann/json.hpp"
17
20
21
namespace
Muon
{
22
class
MdtAsBuiltCondAlg
:
public
AthCondAlgorithm
{
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
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...
CondHandleKeyArray.h
CorrContainer.h
MdtAsBuiltContainer
std::set< MdtAsBuiltPar, std::less<> > MdtAsBuiltContainer
Definition
CorrContainer.h:24
IMuonIdHelperSvc.h
ReadCondHandleKey.h
blobaccess.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::MdtAsBuiltCondAlg
Definition
MdtAsBuiltCondAlg.h:22
Muon::MdtAsBuiltCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
MdtAsBuiltCondAlg.cxx:29
Muon::MdtAsBuiltCondAlg::setFromAscii
StatusCode setFromAscii(const std::string &asciiData, nlohmann::json &newChannel) const
Definition
MdtAsBuiltCondAlg.cxx:163
Muon::MdtAsBuiltCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the alignment parameters from a JSON file.
Definition
MdtAsBuiltCondAlg.h:51
Muon::MdtAsBuiltCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, MdtAsBuiltContainer &asBuilt) const
Definition
MdtAsBuiltCondAlg.cxx:77
Muon::MdtAsBuiltCondAlg::m_writeKey
SG::WriteCondHandleKey< MdtAsBuiltContainer > m_writeKey
Definition
MdtAsBuiltCondAlg.h:42
Muon::MdtAsBuiltCondAlg::~MdtAsBuiltCondAlg
virtual ~MdtAsBuiltCondAlg()=default
Muon::MdtAsBuiltCondAlg::legacyFormatToJSON
StatusCode legacyFormatToJSON(const std::string &bloblines, nlohmann::json &lines) const
Definition
MdtAsBuiltCondAlg.cxx:129
Muon::MdtAsBuiltCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MdtAsBuiltCondAlg.h:45
Muon::MdtAsBuiltCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition
MdtAsBuiltCondAlg.h:39
Muon::MdtAsBuiltCondAlg::m_newFormat2020
Gaudi::Property< bool > m_newFormat2020
Definition
MdtAsBuiltCondAlg.h:48
Muon::MdtAsBuiltCondAlg::initialize
virtual StatusCode initialize() override
Definition
MdtAsBuiltCondAlg.cxx:17
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