ATLAS Offline Software
Loading...
Searching...
No Matches
NswUncertDbAlg.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_NSWUNCERTDBALG_H
6#define MUONCONDALG_NSWUNCERTDBALG_H
7
8// Gaudi includes
9#include <nlohmann/json.hpp>
10
11// Athena includes
17// Muon includes
19
20
21
22
24
25public:
26 NswUncertDbAlg(const std::string& name, ISvcLocator* svc);
27 virtual ~NswUncertDbAlg() = default;
28 virtual StatusCode initialize() override;
29 virtual StatusCode execute (const EventContext&) const override;
30
31
32private:
33
35 StatusCode parseDataFromJSON(const nlohmann::json& lines,
36 NswErrorCalibData& errorCalibData) const;
37
39 Gaudi::Property<std::string> m_readFromJSON{this, "readFromJSON", "" };
40
42 "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
43
44 SG::WriteCondHandleKey<NswErrorCalibData> m_writeKey{this, "WriteKey", "NswUncertData",
45 "Key of the parametrized NSW uncertainties"};
46
48 "Key to the parametrized NSW uncertainty COOL folder"};
49};
50
51
52#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.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode execute(const EventContext &) const override
StatusCode parseDataFromJSON(const nlohmann::json &lines, NswErrorCalibData &errorCalibData) const
Load the Jitter constants from the JSON format.
virtual ~NswUncertDbAlg()=default
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_readKeysDb
SG::WriteCondHandleKey< NswErrorCalibData > m_writeKey
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_readFromJSON
Use an external JSON file to load the Jitter constants from.
NswUncertDbAlg(const std::string &name, ISvcLocator *svc)
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray