ATLAS Offline Software
Loading...
Searching...
No Matches
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
20class ISvcLocator;
21class StatusCode;
22
24public:
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
31private:
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
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
An algorithm that can be simultaneously executed in multiple threads.
MuonCond::DcsDataType DcsDataType
StatusCode retrieveData(const EventContext &ctx, const DcsDataType data, const DcsTechType tech, const std::string &side, std::chrono::duration< double > &timer) const
SG::ReadCondHandleKey< NswDcsDbData > m_readKey
virtual ~NswDcsTestAlg() override
NswDcsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
NswDcsDbData::DcsTechType DcsTechType
std::string timestamp() const
virtual StatusCode execute(const EventContext &) const override
NswDcsDbData::DcsDataType DcsDataType
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Property< std::string > m_logName