ATLAS Offline Software
NswDcsTestAlg.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 NswDcsTestAlg_H
6 #define NswDcsTestAlg_H
7 
8 // STL
9 #include <chrono>
10 #include <string>
11 
12 // Athena
14 #include "GaudiKernel/ServiceHandle.h"
18 
19 // Forward declarations
20 class ISvcLocator;
21 class StatusCode;
22 
24 public:
25  NswDcsTestAlg(const std::string &name, ISvcLocator *pSvcLocator);
26  virtual ~NswDcsTestAlg() override;
27 
28  virtual StatusCode initialize() override;
29  virtual StatusCode execute(const EventContext &) const override;
30 
31 private:
34  StatusCode retrieveData(const EventContext& ctx, const DcsDataType data, const DcsTechType tech,
35  const std::string& side, std::chrono::duration<double>& timer) const;
36  std::string timestamp() const;
37 
39  this, "ReadKey", "NswDcsDbData",
40  "Key of NswDcsDbData object containing DCS conditions data"};
41 
42  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
43 
44  Gaudi::Property<std::string> m_logName{this,"LogName", "LogFile", "Name of the log file. The file creating the TimeCharge log will be called <LogName>_TDO.txt, the other will be <LogName>_vmm.txt"};
45 
46 }; // end of class
47 
48 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
NswDcsDbData::DcsTechType
DcsTechType
Definition: NswDcsDbData.h:22
NswDcsTestAlg::m_readKey
SG::ReadCondHandleKey< NswDcsDbData > m_readKey
Definition: NswDcsTestAlg.h:38
NswDcsTestAlg
Definition: NswDcsTestAlg.h:23
NswDcsTestAlg::NswDcsTestAlg
NswDcsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: NswDcsTestAlg.cxx:22
python.utils.AtlRunQueryTimer.timer
def timer(name, disabled=False)
Definition: AtlRunQueryTimer.py:86
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TRT::Hit::side
@ side
Definition: HitInfo.h:83
NswDcsTestAlg::initialize
virtual StatusCode initialize() override
Definition: NswDcsTestAlg.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonCond::DcsDataType
DcsDataType
Definition: MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondData/MuonCondData/Defs.h:11
SG::ReadCondHandleKey< NswDcsDbData >
NswDcsTestAlg::~NswDcsTestAlg
virtual ~NswDcsTestAlg() override
NswDcsTestAlg::retrieveData
StatusCode retrieveData(const EventContext &ctx, const DcsDataType data, const DcsTechType tech, const std::string &side, std::chrono::duration< double > &timer) const
Definition: NswDcsTestAlg.cxx:74
NswDcsTestAlg::m_logName
Gaudi::Property< std::string > m_logName
Definition: NswDcsTestAlg.h:44
NswDcsDbData::DcsDataType
MuonCond::DcsDataType DcsDataType
Definition: NswDcsDbData.h:27
NswDcsTestAlg::timestamp
std::string timestamp() const
Definition: NswDcsTestAlg.cxx:134
NswDcsDbData.h
NswDcsTestAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: NswDcsTestAlg.cxx:36
IMuonIdHelperSvc.h
NswDcsTestAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswDcsTestAlg.h:42
ServiceHandle< Muon::IMuonIdHelperSvc >