ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthHIP
AthHIPComps
src
AthHIP/AthHIPComps/src/StreamSvcAdaptorTool.cxx
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
//
4
5
// Local include(s).
6
#include "
StreamSvcAdaptorTool.h
"
7
8
// System include(s).
9
#include <cassert>
10
11
namespace
AthHIP
{
12
13
StatusCode
StreamSvcAdaptorTool::initialize
() {
14
15
// Retrieve the "wrapped" service.
16
ATH_CHECK
(
m_svc
.retrieve());
17
18
// Return gracefully.
19
return
StatusCode::SUCCESS;
20
}
21
22
hipStream_t
StreamSvcAdaptorTool::stream
(
const
EventContext& ctx)
const
{
23
24
// Just return the stream provided by the service.
25
assert(
m_svc
.isValid());
26
return
m_svc
->stream(ctx);
27
}
28
29
}
// namespace AthHIP
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
StreamSvcAdaptorTool.h
AthHIP::StreamSvcAdaptorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
AthHIP/AthHIPComps/src/StreamSvcAdaptorTool.cxx:13
AthHIP::StreamSvcAdaptorTool::m_svc
ServiceHandle< IStreamSvc > m_svc
Handle to the service providing the HIP streams.
Definition
AthHIP/AthHIPComps/src/StreamSvcAdaptorTool.h:54
AthHIP::StreamSvcAdaptorTool::stream
virtual hipStream_t stream(const EventContext &ctx) const override
Get the HIP stream to use.
Definition
AthHIP/AthHIPComps/src/StreamSvcAdaptorTool.cxx:22
AthHIP
Definition
AthHIP/AthHIPComps/src/AsyncCopyTool.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0