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 virtual bool isReEntrant() const override { return false; }
33
34
35private:
36 StatusCode parseData(const nlohmann::json & json,
37 NswPassivationDbData& writeCdo) const;
38
41
42 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
43
44 writeKey_t m_writeKey{this, "WriteKey", "NswPassivationDbData", "Key of output passivation data" };
45
46 readKey_t m_readKey_data_mm{this, "ReadKey_MM", "/MDT/MM/PASSIVATION", "Key of input MM condition data"};
47
48 Gaudi::Property<std::string> m_readFromJSON{this,"readFromJSON", "",
49 "Reads the passivation parameters from a JSON file instead of cool"};
50
51};
52
53
54#endif
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
nlohmann::json json
An algorithm that can be simultaneously executed in multiple threads.
This class is a collection of AttributeLists where each one is associated with a channel number.
virtual StatusCode initialize() override
virtual bool isReEntrant() const 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)