ATLAS Offline Software
Loading...
Searching...
No Matches
NswDcsDbAlg.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_NSWDCSDBALG_H
6#define MUONCONDALG_NSWDCSDBALG_H
7
8// STL includes
9#include <string>
10#include <vector>
11
12// Gaudi includes
13#include "GaudiKernel/ICondSvc.h"
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ToolHandle.h"
16
17// Athena includes
21
22// Muon includes
25
26
27// Forward declarations
29
30
32
33public:
34
35 using AthCondAlgorithm::AthCondAlgorithm;
36 virtual ~NswDcsDbAlg() = default;
37 virtual StatusCode initialize() override;
38 virtual StatusCode execute (const EventContext&) const override;
39
40
41private:
42
45
47
48 StatusCode processHvData(const EventContext& ctx) const;
49
52 StatusCode loadHvData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
53 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
54 StatusCode loadTDaqData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
55 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
56 StatusCode loadELTXData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
57 writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
58
59 bool buildChannelIdForHv(Identifier& channelId, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
60 bool buildChannelIdForTDaq(Identifier& channelId, uint& elink, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
61 bool buildChannelIdForEltx(Identifier& channelId ,const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
62
63 ServiceHandle<ICondSvc> m_condSvc{this, "CondSvc", "CondSvc"};
64 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
65
66 writeKey_t m_writeKey{this, "WriteKey", "NswDcsDbData", "Key of output data object" };
67
68 readKey_t m_readKey_mmg_hv {this, "ReadKey_MMG_HV", "/MMG/DCS/HV", "Key of input MMG condition data for HV"};
69 readKey_t m_readKey_stg_hv {this, "ReadKey_STG_HV", "/STG/DCS/HV", "Key of input STG condition data for HV"};
70
71 readKey_t m_readKey_mmg_tdaq{this, "ReadKey_MMG_TDAQ", "", "Key of input MMG condition data for TDAQ"};
72 readKey_t m_readKey_stg_tdaq{this, "ReadKey_STG_TDAQ", "", "Key of input STG condition data for TDAQ"};
73
74 readKey_t m_readKey_mmg_eltx{this, "ReadKey_MMG_ELTX", "", "Key of input MMG condition data for SCA status"};
75 readKey_t m_readKey_stg_eltx{this, "ReadKey_STG_ELTX", "", "Key of input STG condition data for SCA status"};
76
77 Gaudi::Property<bool> m_loadTdaq{this, "LoadTdaq",false,"enable the processing of Elinks in the NswDcsDbAlg"};
78 Gaudi::Property<bool> m_loadEltx{this, "LoadEltx",false,"enable the processing of SCAs in the NswDcsDbAlg"};
79
81 this, "DetectorManagerKey", "MuonDetectorManager",
82 "Key of input MuonDetectorManager condition data"};
84};
85
86
87#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...
bool buildChannelIdForHv(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
SG::WriteCondHandleKey< NswDcsDbData > writeKey_t
Definition NswDcsDbAlg.h:43
Gaudi::Property< bool > m_loadTdaq
Definition NswDcsDbAlg.h:77
bool buildChannelIdForEltx(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
bool buildChannelIdForTDaq(Identifier &channelId, uint &elink, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
readKey_t m_readKey_stg_eltx
Definition NswDcsDbAlg.h:75
StatusCode loadELTXData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
readKey_t m_readKey_mmg_tdaq
Definition NswDcsDbAlg.h:71
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonManagerKey
Definition NswDcsDbAlg.h:80
StatusCode loadHvData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
readKey_t m_readKey_stg_hv
Definition NswDcsDbAlg.h:69
NswDcsDbData::DcsDataType DcsDataType
Definition NswDcsDbAlg.h:51
SG::ReadCondHandleKey< CondAttrListCollection > readKey_t
Definition NswDcsDbAlg.h:44
virtual StatusCode execute(const EventContext &) const override
virtual StatusCode initialize() override
SG::WriteCondHandle< NswDcsDbData > writeHandleDcs_t
Definition NswDcsDbAlg.h:46
readKey_t m_readKey_stg_tdaq
Definition NswDcsDbAlg.h:72
Gaudi::Property< bool > m_loadEltx
Definition NswDcsDbAlg.h:78
ServiceHandle< ICondSvc > m_condSvc
Definition NswDcsDbAlg.h:63
readKey_t m_readKey_mmg_hv
Definition NswDcsDbAlg.h:68
NswDcsDbData::DcsTechType DcsTechType
Definition NswDcsDbAlg.h:50
virtual ~NswDcsDbAlg()=default
readKey_t m_readKey_mmg_eltx
Definition NswDcsDbAlg.h:74
const MuonGM::MuonDetectorManager * m_detManager
Definition NswDcsDbAlg.h:83
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition NswDcsDbAlg.h:64
StatusCode processHvData(const EventContext &ctx) const
StatusCode loadTDaqData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
writeKey_t m_writeKey
Definition NswDcsDbAlg.h:66
MuonCond::DcsDataType DcsDataType