ATLAS Offline Software
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:
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 
TgcDigitEnergyThreshCondAlg::TgcDigitEnergyThreshCondAlg
TgcDigitEnergyThreshCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TgcDigitEnergyThreshCondAlg.cxx:12
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
TgcDigitEnergyThreshCondAlg::initialize
virtual StatusCode initialize() override
Definition: TgcDigitEnergyThreshCondAlg.cxx:15
json
nlohmann::json json
Definition: HistogramDef.cxx:9
TgcDigitEnergyThreshCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TgcDigitEnergyThreshCondAlg.h:34
WriteCondHandleKey.h
TgcDigitEnergyThreshCondAlg::m_writeKey
SG::WriteCondHandleKey< TgcDigitThresholdData > m_writeKey
Definition: TgcDigitEnergyThreshCondAlg.h:36
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TgcDigitEnergyThreshCondAlg
Definition: TgcDigitEnergyThreshCondAlg.h:19
TgcDigitEnergyThreshCondAlg::parseDataFromJSON
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitThresholdData &deadChannels) const
Load the threshold constants from the JSON blob.
Definition: TgcDigitEnergyThreshCondAlg.cxx:72
TgcDigitEnergyThreshCondAlg::m_readKeyDb
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Definition: TgcDigitEnergyThreshCondAlg.h:35
TgcDigitThresholdData.h
CaloCondBlobAlgs_fillNoiseFromASCII.lines
lines
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:104
TgcDigitEnergyThreshCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TgcDigitEnergyThreshCondAlg.cxx:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TgcDigitEnergyThreshCondAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: TgcDigitEnergyThreshCondAlg.h:25
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TgcDigitEnergyThreshCondAlg::~TgcDigitEnergyThreshCondAlg
virtual ~TgcDigitEnergyThreshCondAlg()=default
TgcDigitEnergyThreshCondAlg::m_readFromJSON
Gaudi::Property< std::string > m_readFromJSON
Use an external file to load the Jitter constants from.
Definition: TgcDigitEnergyThreshCondAlg.h:32
SG::ReadCondHandleKey< CondAttrListCollection >
TgcDigitThresholdData
Conditions object to cache.
Definition: TgcDigitThresholdData.h:19
SG::WriteCondHandleKey< TgcDigitThresholdData >
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >