ATLAS Offline Software
Loading...
Searching...
No Matches
NswPassivationDbAlg.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_NSWPASSIVATIONDBALG_H
6#define MUONCONDALG_NSWPASSIVATIONDBALG_H
7
8
9// Athena includes
13
14// Muon includes
18#include <nlohmann/json.hpp>
19
20// Forward declarations
22
23
25
26public:
27
28 NswPassivationDbAlg(const std::string& name, ISvcLocator* pSvcLocator);
29 virtual ~NswPassivationDbAlg() = default;
30 virtual StatusCode initialize() override;
31 virtual StatusCode execute (const EventContext&) const override;
32
33
34private:
35 StatusCode parseData(const nlohmann::json & json,
36 NswPassivationDbData& writeCdo) const;
37
40
41 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
42
43 writeKey_t m_writeKey{this, "WriteKey", "NswPassivationDbData", "Key of output passivation data" };
44
45 readKey_t m_readKey_data_mm{this, "ReadKey_MM", "/MDT/MM/PASSIVATION", "Key of input MM condition data"};
46
47 Gaudi::Property<std::string> m_readFromJSON{this,"readFromJSON", "",
48 "Reads the passivation parameters from a JSON file instead of cool"};
49
50};
51
52
53#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
nlohmann::json json
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_readFromJSON
virtual StatusCode execute(const EventContext &) const override
StatusCode parseData(const nlohmann::json &json, NswPassivationDbData &writeCdo) const
SG::WriteCondHandleKey< NswPassivationDbData > writeKey_t
virtual ~NswPassivationDbAlg()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadCondHandleKey< CondAttrListCollection > readKey_t
NswPassivationDbAlg(const std::string &name, ISvcLocator *pSvcLocator)