ATLAS Offline Software
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 
33 public:
34 
36  virtual ~NswDcsDbAlg() = default;
37  virtual StatusCode initialize() override;
38  virtual StatusCode execute (const EventContext&) const override;
39  virtual bool isReEntrant() const override { return false; }
40 
41 
42 private:
43 
46 
48 
49  StatusCode processHvData(const EventContext& ctx) const;
50 
53  StatusCode loadHvData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
54  writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
55  StatusCode loadTDaqData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
56  writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
57  StatusCode loadELTXData(const EventContext& ctx, const readKey_t& readKey, const DcsTechType tech,
58  writeHandleDcs_t& writeHandle, NswDcsDbData* writeCdo) const;
59 
60  bool buildChannelIdForHv(Identifier& channelId, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
61  bool buildChannelIdForTDaq(Identifier& channelId, uint& elink, const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
62  bool buildChannelIdForEltx(Identifier& channelId ,const DcsTechType tech0, const std::string& chanName, bool& isOK) const;
63 
64  ServiceHandle<ICondSvc> m_condSvc{this, "CondSvc", "CondSvc"};
65  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
66 
67  writeKey_t m_writeKey{this, "WriteKey", "NswDcsDbData", "Key of output data object" };
68 
69  readKey_t m_readKey_mmg_hv {this, "ReadKey_MMG_HV", "/MMG/DCS/HV", "Key of input MMG condition data for HV"};
70  readKey_t m_readKey_stg_hv {this, "ReadKey_STG_HV", "/STG/DCS/HV", "Key of input STG condition data for HV"};
71 
72  readKey_t m_readKey_mmg_tdaq{this, "ReadKey_MMG_TDAQ", "", "Key of input MMG condition data for TDAQ"};
73  readKey_t m_readKey_stg_tdaq{this, "ReadKey_STG_TDAQ", "", "Key of input STG condition data for TDAQ"};
74 
75  readKey_t m_readKey_mmg_eltx{this, "ReadKey_MMG_ELTX", "", "Key of input MMG condition data for SCA status"};
76  readKey_t m_readKey_stg_eltx{this, "ReadKey_STG_ELTX", "", "Key of input STG condition data for SCA status"};
77 
78  Gaudi::Property<bool> m_loadTdaq{this, "LoadTdaq",false,"enable the processing of Elinks in the NswDcsDbAlg"};
79  Gaudi::Property<bool> m_loadEltx{this, "LoadEltx",false,"enable the processing of SCAs in the NswDcsDbAlg"};
80 
82 
83 };
84 
85 
86 #endif
NswDcsDbAlg::buildChannelIdForEltx
bool buildChannelIdForEltx(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
Definition: NswDcsDbAlg.cxx:461
NswDcsDbData::DcsTechType
DcsTechType
Definition: NswDcsDbData.h:22
NswDcsDbAlg::processHvData
StatusCode processHvData(const EventContext &ctx) const
NswDcsDbAlg::isReEntrant
virtual bool isReEntrant() const override
Definition: NswDcsDbAlg.h:39
NswDcsDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswDcsDbAlg.h:65
WriteCondHandleKey.h
NswDcsDbAlg::m_muDetMgrFromDetStore
const MuonGM::MuonDetectorManager * m_muDetMgrFromDetStore
Definition: NswDcsDbAlg.h:81
NswDcsDbAlg::buildChannelIdForTDaq
bool buildChannelIdForTDaq(Identifier &channelId, uint &elink, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
Definition: NswDcsDbAlg.cxx:356
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
NswDcsDbAlg::m_readKey_stg_tdaq
readKey_t m_readKey_stg_tdaq
Definition: NswDcsDbAlg.h:73
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
NswDcsDbAlg::buildChannelIdForHv
bool buildChannelIdForHv(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
Definition: NswDcsDbAlg.cxx:242
NswDcsDbAlg::m_writeKey
writeKey_t m_writeKey
Definition: NswDcsDbAlg.h:67
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
NswDcsDbAlg
Definition: NswDcsDbAlg.h:31
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
NswDcsDbAlg::loadELTXData
StatusCode loadELTXData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
Definition: NswDcsDbAlg.cxx:195
NswDcsDbAlg::~NswDcsDbAlg
virtual ~NswDcsDbAlg()=default
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
NswDcsDbAlg::loadHvData
StatusCode loadHvData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
Definition: NswDcsDbAlg.cxx:89
ReadCondHandleKey.h
AthReentrantAlgorithm.h
NswDcsDbAlg::m_loadEltx
Gaudi::Property< bool > m_loadEltx
Definition: NswDcsDbAlg.h:79
MuonCond::DcsDataType
DcsDataType
Definition: MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondData/MuonCondData/Defs.h:11
NswDcsDbAlg::m_readKey_mmg_tdaq
readKey_t m_readKey_mmg_tdaq
Definition: NswDcsDbAlg.h:72
NswDcsDbData
Definition: NswDcsDbData.h:19
NswDcsDbAlg::m_readKey_mmg_eltx
readKey_t m_readKey_mmg_eltx
Definition: NswDcsDbAlg.h:75
NswDcsDbAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: NswDcsDbAlg.cxx:43
SG::ReadCondHandleKey< CondAttrListCollection >
NswDcsDbAlg::m_readKey_stg_eltx
readKey_t m_readKey_stg_eltx
Definition: NswDcsDbAlg.h:76
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:49
NswDcsDbAlg::m_loadTdaq
Gaudi::Property< bool > m_loadTdaq
Definition: NswDcsDbAlg.h:78
NswDcsDbAlg::m_readKey_mmg_hv
readKey_t m_readKey_mmg_hv
Definition: NswDcsDbAlg.h:69
NswDcsDbAlg::loadTDaqData
StatusCode loadTDaqData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
Definition: NswDcsDbAlg.cxx:145
SG::WriteCondHandleKey< NswDcsDbData >
NswDcsDbAlg::initialize
virtual StatusCode initialize() override
Definition: NswDcsDbAlg.cxx:16
NswDcsDbData::DcsDataType
MuonCond::DcsDataType DcsDataType
Definition: NswDcsDbData.h:27
NswDcsDbAlg::m_condSvc
ServiceHandle< ICondSvc > m_condSvc
Definition: NswDcsDbAlg.h:64
NswDcsDbData.h
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
NswDcsDbAlg::m_readKey_stg_hv
readKey_t m_readKey_stg_hv
Definition: NswDcsDbAlg.h:70
IMuonIdHelperSvc.h
ServiceHandle< ICondSvc >