ATLAS Offline Software
Loading...
Searching...
No Matches
TgcCondDbAlg.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_TGCCONDDBALG_H
6#define MUONCONDALG_TGCCONDDBALG_H
7
8// STL includes
9#include <zlib.h>
10
11
12// Gaudi includes
13#include <nlohmann/json.hpp>
14
15// Athena includes
23
24
25
27public:
28 TgcCondDbAlg(const std::string& name, ISvcLocator* svc);
29 virtual ~TgcCondDbAlg() = default;
30 virtual StatusCode initialize() override;
31 virtual StatusCode execute(const EventContext& ctx) const override;
32
33private:
35 StatusCode parseDataFromJSON(const nlohmann::json& lines,
36 TgcCondDbData& deadChannels) const;
37
39 Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
40
41 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
42
43 SG::WriteCondHandleKey<TgcCondDbData> m_writeKey{this, "WriteKey", "TgcCondDbData", "Key of output TGC condition data"};
44 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyDb{this, "ReadKey", "", "Key of input TGC condition data"};
45};
46
47#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 StatusCode initialize() override
virtual ~TgcCondDbAlg()=default
Gaudi::Property< std::string > m_readFromJSON
Load the detector status from a JSON file.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcCondDbData &deadChannels) const
Load the detector status from cool.
SG::WriteCondHandleKey< TgcCondDbData > m_writeKey
TgcCondDbAlg(const std::string &name, ISvcLocator *svc)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Conditions object to mark switched-off Tgc gasGaps.