ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
CscILinesCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONCONDALG_ILINESCONDALG_H
5
#define MUONCONDALG_ILINESCONDALG_H
6
7
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
8
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
9
#include "CoralBase/Blob.h"
10
#include "
StoreGate/CondHandleKeyArray.h
"
11
#include "
StoreGate/ReadCondHandleKey.h
"
12
#include "
CoralUtilities/blobaccess.h
"
13
#include "
MuonAlignmentData/CorrContainer.h
"
14
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
15
#include "nlohmann/json.hpp"
16
17
namespace
Muon
{
18
class
CscILinesCondAlg
:
public
AthCondAlgorithm
{
19
20
public
:
21
using
AthCondAlgorithm::AthCondAlgorithm;
22
virtual
~CscILinesCondAlg
() =
default
;
23
virtual
StatusCode
initialize
()
override
;
24
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
25
26
private
:
27
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKey
{
this
,
"ReadKey"
,
"/MUONALIGN/CSC/ILINES"
,
28
"Key of input CSC/ILINES condition data"
};
29
30
SG::WriteCondHandleKey<ALineContainer>
m_writeKey
{
this
,
"WriteKey"
,
"CscInternalAlignmentContainer"
,
31
"Key of output muon alignment CSC/ILine condition data"
};
32
33
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
34
// new folder format 2020
35
Gaudi::Property<bool>
m_newFormat2020
{
this
,
"NewFormat2020"
,
false
,
36
"The database folders are given in the new JSON format"
};
37
38
Gaudi::Property<std::string>
m_readFromJSON
{
this
,
"readFromJSON"
,
""
,
39
"Reads the A & B lines parameters from a JSON file instead from COOL"
};
40
41
46
StatusCode
loadDataFromLegacy
(
const
std::string& data, nlohmann::json&
json
)
const
;
50
StatusCode
parseDataFromJSON
(
const
nlohmann::json& lines,
51
ALineContainer
& writeCdo)
const
;
52
};
53
}
54
#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
ALineContainer
std::set< ALinePar, std::less<> > ALineContainer
Definition
CorrContainer.h:16
json
nlohmann::json json
Definition
HistogramDef.cxx:9
IMuonIdHelperSvc.h
ReadCondHandleKey.h
blobaccess.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::CscILinesCondAlg
Definition
CscILinesCondAlg.h:18
Muon::CscILinesCondAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition
CscILinesCondAlg.h:27
Muon::CscILinesCondAlg::m_writeKey
SG::WriteCondHandleKey< ALineContainer > m_writeKey
Definition
CscILinesCondAlg.h:30
Muon::CscILinesCondAlg::initialize
virtual StatusCode initialize() override
Definition
CscILinesCondAlg.cxx:16
Muon::CscILinesCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
CscILinesCondAlg.cxx:28
Muon::CscILinesCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the alignment parameters from a JSON file.
Definition
CscILinesCondAlg.h:38
Muon::CscILinesCondAlg::~CscILinesCondAlg
virtual ~CscILinesCondAlg()=default
Muon::CscILinesCondAlg::m_newFormat2020
Gaudi::Property< bool > m_newFormat2020
Definition
CscILinesCondAlg.h:35
Muon::CscILinesCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
CscILinesCondAlg.h:33
Muon::CscILinesCondAlg::loadDataFromLegacy
StatusCode loadDataFromLegacy(const std::string &data, nlohmann::json &json) const
Load the Alignment data from the legacy format where the channels are parsed line wise The data is th...
Definition
CscILinesCondAlg.cxx:96
Muon::CscILinesCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, ALineContainer &writeCdo) const
Parse the JSON blob to fill the I Line container.
Definition
CscILinesCondAlg.cxx:157
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