ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondTest
src
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
13
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
14
#include "GaudiKernel/ServiceHandle.h"
15
#include "
MuonCondData/NswDcsDbData.h
"
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
18
19
// Forward declarations
20
class
ISvcLocator;
21
class
StatusCode
;
22
23
class
NswDcsTestAlg
:
public
AthReentrantAlgorithm
{
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
:
32
using
DcsTechType
=
NswDcsDbData::DcsTechType
;
33
using
DcsDataType
=
NswDcsDbData::DcsDataType
;
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
38
SG::ReadCondHandleKey<NswDcsDbData>
m_readKey
{
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
AthReentrantAlgorithm.h
IMuonIdHelperSvc.h
NswDcsDbData.h
ReadCondHandleKey.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
NswDcsDbData::DcsTechType
DcsTechType
Definition
NswDcsDbData.h:22
NswDcsDbData::DcsDataType
MuonCond::DcsDataType DcsDataType
Definition
NswDcsDbData.h:27
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_readKey
SG::ReadCondHandleKey< NswDcsDbData > m_readKey
Definition
NswDcsTestAlg.h:38
NswDcsTestAlg::~NswDcsTestAlg
virtual ~NswDcsTestAlg() override
NswDcsTestAlg::NswDcsTestAlg
NswDcsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
NswDcsTestAlg.cxx:22
NswDcsTestAlg::DcsTechType
NswDcsDbData::DcsTechType DcsTechType
Definition
NswDcsTestAlg.h:32
NswDcsTestAlg::timestamp
std::string timestamp() const
Definition
NswDcsTestAlg.cxx:134
NswDcsTestAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition
NswDcsTestAlg.cxx:36
NswDcsTestAlg::DcsDataType
NswDcsDbData::DcsDataType DcsDataType
Definition
NswDcsTestAlg.h:33
NswDcsTestAlg::initialize
virtual StatusCode initialize() override
Definition
NswDcsTestAlg.cxx:28
NswDcsTestAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
NswDcsTestAlg.h:42
NswDcsTestAlg::m_logName
Gaudi::Property< std::string > m_logName
Definition
NswDcsTestAlg.h:44
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Generated on
for ATLAS Offline Software by
1.17.0