ATLAS Offline Software
Loading...
Searching...
No Matches
TgcDigitEnergyThreshCondAlg.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 TGCDIGITENERGYTHRESHOLDALG_H
6#define TGCDIGITENERGYTHRESHOLDALG_H
7
8
9#include <nlohmann/json.hpp>
10
17
18namespace Muon{
20{
21 public:
22 using AthCondAlgorithm::AthCondAlgorithm;
23 virtual ~TgcDigitEnergyThreshCondAlg() = default;
24 virtual StatusCode initialize() override;
25 virtual StatusCode execute(const EventContext& ctx) const override;
26 private:
28 StatusCode parseDataFromJSON(const nlohmann::json& lines,
29 TgcDigitThresholdData& deadChannels) const;
30
32 Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
33
34 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
35 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyDb{this, "ReadKey", "", "SG key for Tgc energy thresholds"};
36 SG::WriteCondHandleKey<TgcDigitThresholdData> m_writeKey{this, "WriteKey", "TgcEnergyThresholds", "SG Key of TGCDigit AsdPos"};
37};
38}
39#endif
40
41
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.
Gaudi::Property< std::string > m_readFromJSON
Use an external file to load the Jitter constants from.
virtual ~TgcDigitEnergyThreshCondAlg()=default
SG::WriteCondHandleKey< TgcDigitThresholdData > m_writeKey
virtual StatusCode execute(const EventContext &ctx) const override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitThresholdData &deadChannels) const
Load the threshold constants from the JSON blob.
Conditions object to cache.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.