ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
16#include <nlohmann/json.hpp>
17
21namespace Muon{
23public:
24 using AthCondAlgorithm::AthCondAlgorithm;
25 virtual ~sTGCAsBuiltCondAlg() = default;
26 virtual StatusCode initialize() override;
27 virtual StatusCode execute(const EventContext& ctx) const override;
28
29private:
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"};
41 "Folder of the STGC efficiencies as they're stored in COOL"};
42};
43}
44#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
virtual ~sTGCAsBuiltCondAlg()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode parseDataFromJSON(const nlohmann::json &lines, sTGCAsBuiltData &effiData) const
Parse efficiency data from COOL.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
SG::WriteCondHandleKey< sTGCAsBuiltData > m_writeKey
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
virtual StatusCode execute(const EventContext &ctx) const override
Class holding the sTGC as built conditions data and applying it.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.