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
19{
20 public:
21 TgcDigitEnergyThreshCondAlg (const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~TgcDigitEnergyThreshCondAlg() = default;
23 virtual StatusCode initialize() override;
24 virtual StatusCode execute(const EventContext& ctx) const override;
25 virtual bool isReEntrant() const override { return false; }
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
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
An algorithm that can be simultaneously executed in multiple threads.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteCondHandleKey< TgcDigitThresholdData > m_writeKey
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitThresholdData &deadChannels) const
Load the threshold constants from the JSON blob.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
virtual ~TgcDigitEnergyThreshCondAlg()=default
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_readFromJSON
Use an external file to load the Jitter constants from.
TgcDigitEnergyThreshCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual bool isReEntrant() const override
Conditions object to cache.