ATLAS Offline Software
Loading...
Searching...
No Matches
AthHIP/AthHIPComps/src/StreamSvcAdaptorTool.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4#ifndef ATHHIPCOMPS_STREAMSVCADAPTORTOOL_H
5#define ATHHIPCOMPS_STREAMSVCADAPTORTOOL_H
6
7// Framework include(s).
9#include "GaudiKernel/ServiceHandle.h"
10
11// AthHIP include(s).
14
15namespace AthHIP {
16
26class StreamSvcAdaptorTool : public extends<AthAlgTool, IStreamTool> {
27
28 public:
29 // Inherit the base class's constructor(s).
30 using extends::extends;
31
34
36 virtual StatusCode initialize() override;
37
39
42
48 virtual hipStream_t stream(const EventContext& ctx) const override;
49
51
52 private:
55 this, "StreamSvc", "", "Service providing the 'adapted' HIP streams"};
56
57}; // class StreamSvcAdaptorTool
58
59} // namespace AthHIP
60
61#endif // ATHHIPCOMPS_STREAMSVCADAPTORTOOL_H
Tool exposing a HIP stream service as a HIP stream tool.
virtual StatusCode initialize() override
Initialize the tool.
ServiceHandle< IStreamSvc > m_svc
Handle to the service providing the HIP streams.
virtual hipStream_t stream(const EventContext &ctx) const override
Get the HIP stream to use.