ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondAlg
src
sTGCAsBuiltCondAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONCONDALG_sTGCAsBuiltCondAlg_H
6
#define MUONCONDALG_sTGCAsBuiltCondAlg_H
7
8
// Athena includes
9
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
10
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
11
#include "
MuonAlignmentData/sTGCAsBuiltData.h
"
12
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
13
#include "
StoreGate/ReadCondHandleKey.h
"
14
#include "
StoreGate/WriteCondHandleKey.h
"
15
16
#include <nlohmann/json.hpp>
17
21
namespace
Muon
{
22
class
sTGCAsBuiltCondAlg
:
public
AthCondAlgorithm
{
23
public
:
24
using
AthCondAlgorithm::AthCondAlgorithm;
25
virtual
~sTGCAsBuiltCondAlg
() =
default
;
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
28
29
private
:
31
StatusCode
parseDataFromJSON
(
const
nlohmann::json& lines,
32
sTGCAsBuiltData
& effiData)
const
;
33
34
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
35
37
Gaudi::Property<std::string>
m_readFromJSON
{
this
,
"readFromJSON"
,
""
};
38
39
SG::WriteCondHandleKey<sTGCAsBuiltData>
m_writeKey
{
this
,
"WriteKey"
,
"sTGCAsBuilt"
,
"Key of the efficiency data in the CondStore"
};
40
SG::ReadCondHandleKey<CondAttrListCollection>
m_readKeyDb
{
this
,
"ReadKey"
,
""
,
41
"Folder of the STGC efficiencies as they're stored in COOL"
};
42
};
43
}
44
#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...
IMuonIdHelperSvc.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
Muon::sTGCAsBuiltCondAlg
Definition
sTGCAsBuiltCondAlg.h:22
Muon::sTGCAsBuiltCondAlg::~sTGCAsBuiltCondAlg
virtual ~sTGCAsBuiltCondAlg()=default
Muon::sTGCAsBuiltCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
sTGCAsBuiltCondAlg.h:34
Muon::sTGCAsBuiltCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, sTGCAsBuiltData &effiData) const
Parse efficiency data from COOL.
Definition
sTGCAsBuiltCondAlg.cxx:71
Muon::sTGCAsBuiltCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition
sTGCAsBuiltCondAlg.h:40
Muon::sTGCAsBuiltCondAlg::m_writeKey
SG::WriteCondHandleKey< sTGCAsBuiltData > m_writeKey
Definition
sTGCAsBuiltCondAlg.h:39
Muon::sTGCAsBuiltCondAlg::initialize
virtual StatusCode initialize() override
Definition
sTGCAsBuiltCondAlg.cxx:15
Muon::sTGCAsBuiltCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
Definition
sTGCAsBuiltCondAlg.h:37
Muon::sTGCAsBuiltCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
sTGCAsBuiltCondAlg.cxx:32
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
sTGCAsBuiltData
Class holding the sTGC as built conditions data and applying it.
Definition
sTGCAsBuiltData.h:27
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
sTGCAsBuiltData.h
Generated on
for ATLAS Offline Software by
1.17.0