ATLAS Offline Software
Loading...
Searching...
No Matches
NswDcsDbAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDALG_NSWDCSDBALG_H
6#define MUONCONDALG_NSWDCSDBALG_H
7
8// Athena includes
12
13// Muon includes
16
17
18// Forward declarations
20
21namespace Muon{
22
24
25public:
26
27 using AthCondAlgorithm::AthCondAlgorithm;
28 virtual ~NswDcsDbAlg() = default;
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute (const EventContext&) const override;
31
32
33private:
34
37
39
40 StatusCode processHvData(const EventContext& ctx) const;
41
44 StatusCode loadHvData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
45 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
46 StatusCode loadTDaqData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
47 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
48 StatusCode loadELTXData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
49 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
50
51 bool buildChannelIdForHv(Identifier& channelId, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
52 bool buildChannelIdForTDaq(Identifier& channelId, uint& elink, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
53 bool buildChannelIdForEltx(Identifier& channelId ,const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
54
55 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
56
57 writeKey_t m_writeKey{this, "WriteKey", "NswDcsDbData", "Key of output data object" };
58
59 readKey_t m_readKey_mmg_hv {this, "ReadKey_MMG_HV", "/MMG/DCS/HV", "Key of input MMG condition data for HV"};
60 readKey_t m_readKey_stg_hv {this, "ReadKey_STG_HV", "/STG/DCS/HV", "Key of input STG condition data for HV"};
61
62 readKey_t m_readKey_mmg_tdaq{this, "ReadKey_MMG_TDAQ", "", "Key of input MMG condition data for TDAQ"};
63 readKey_t m_readKey_stg_tdaq{this, "ReadKey_STG_TDAQ", "", "Key of input STG condition data for TDAQ"};
64
65 readKey_t m_readKey_mmg_eltx{this, "ReadKey_MMG_ELTX", "", "Key of input MMG condition data for SCA status"};
66 readKey_t m_readKey_stg_eltx{this, "ReadKey_STG_ELTX", "", "Key of input STG condition data for SCA status"};
67
68 Gaudi::Property<bool> m_loadTdaq{this, "LoadTdaq",false,"enable the processing of Elinks in the NswDcsDbAlg"};
69 Gaudi::Property<bool> m_loadEltx{this, "LoadEltx",false,"enable the processing of SCAs in the NswDcsDbAlg"};
70
72 this, "DetectorManagerKey", "MuonDetectorManager",
73 "Key of input MuonDetectorManager condition data"};
75};
76
77}
78#endif
Base class for conditions algorithms.
unsigned int uint
Base class for conditions algorithms.
This class is a collection of AttributeLists where each one is associated with a channel number.
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
readKey_t m_readKey_stg_eltx
Definition NswDcsDbAlg.h:66
NswDcsDbData::DcsTechType DcsTechType
Definition NswDcsDbAlg.h:42
virtual StatusCode initialize() override
readKey_t m_readKey_mmg_eltx
Definition NswDcsDbAlg.h:65
readKey_t m_readKey_stg_hv
Definition NswDcsDbAlg.h:60
Gaudi::Property< bool > m_loadEltx
Definition NswDcsDbAlg.h:69
StatusCode loadHvData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
bool buildChannelIdForEltx(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
NswDcsDbData::DcsDataType DcsDataType
Definition NswDcsDbAlg.h:43
virtual StatusCode execute(const EventContext &) const override
const MuonGM::MuonDetectorManager * m_detManager
Definition NswDcsDbAlg.h:74
SG::ReadCondHandleKey< CondAttrListCollection > readKey_t
Definition NswDcsDbAlg.h:36
SG::WriteCondHandleKey< NswDcsDbData > writeKey_t
Definition NswDcsDbAlg.h:35
virtual ~NswDcsDbAlg()=default
writeKey_t m_writeKey
Definition NswDcsDbAlg.h:57
readKey_t m_readKey_mmg_tdaq
Definition NswDcsDbAlg.h:62
bool buildChannelIdForHv(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
StatusCode loadELTXData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
StatusCode processHvData(const EventContext &ctx) const
SG::WriteCondHandle< NswDcsDbData > writeHandleDcs_t
Definition NswDcsDbAlg.h:38
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition NswDcsDbAlg.h:55
StatusCode loadTDaqData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonManagerKey
Definition NswDcsDbAlg.h:71
readKey_t m_readKey_mmg_hv
Definition NswDcsDbAlg.h:59
readKey_t m_readKey_stg_tdaq
Definition NswDcsDbAlg.h:63
bool buildChannelIdForTDaq(Identifier &channelId, uint &elink, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
Gaudi::Property< bool > m_loadTdaq
Definition NswDcsDbAlg.h:68
MuonCond::DcsDataType DcsDataType
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.