ATLAS Offline Software
Loading...
Searching...
No Matches
TgcDigitJitterCondAlg.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_TGCDIGITJITTERCONDALG_H
6#define MUONCONDALG_TGCDIGITJITTERCONDALG_H
7
8// Gaudi includes
9#include <nlohmann/json.hpp>
10
11// Athena includes
17
18
19
21public:
22 TgcDigitJitterCondAlg(const std::string& name, ISvcLocator* svc);
23 virtual ~TgcDigitJitterCondAlg() = default;
24 virtual StatusCode initialize() override;
25 virtual StatusCode execute(const EventContext& ctx) const override;
26
27private:
29 StatusCode parseDataFromJSON(const nlohmann::json& lines,
30 TgcDigitJitterData& jitterChannels) const;
31
33 Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
34
35 SG::WriteCondHandleKey<TgcDigitJitterData> m_writeKey{this, "WriteKey", "TgcJitterData", "Key of output TGC condition data"};
36 SG::ReadCondHandleKey<CondAttrListCollection> m_readKeyDb{this, "ReadKey", "", "Key of input TGC condition data"};
37};
38
39#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.
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitJitterData &jitterChannels) const
Load the Jitter constants from the JSON format.
virtual ~TgcDigitJitterCondAlg()=default
Gaudi::Property< std::string > m_readFromJSON
Use an external JSON file to load the Jitter constants from.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
virtual StatusCode initialize() override
SG::WriteCondHandleKey< TgcDigitJitterData > m_writeKey
TgcDigitJitterCondAlg(const std::string &name, ISvcLocator *svc)