ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
JiveXML
JiveXML
StreamToServerTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JIVEXML__STREAMTOSERVERTOOL_H
6
#define JIVEXML__STREAMTOSERVERTOOL_H
7
8
//Interfaces
9
#include "
JiveXML/IStreamTool.h
"
10
#include "
JiveXML/IServerSvc.h
"
11
#include "
JiveXML/EventStream.h
"
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "GaudiKernel/ServiceHandle.h"
14
#include "
EventDisplaysOnline/IOnlineEventDisplaysSvc.h
"
15
16
namespace
JiveXML
{
17
25
class
StreamToServerTool
:
virtual
public
IStreamTool
,
public
AthAlgTool
{
26
27
public
:
28
30
StreamToServerTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
31
33
virtual
StatusCode
initialize
();
34
36
virtual
StatusCode
finalize
();
37
39
virtual
StatusCode
StreamEvent
(
const
unsigned
long
EventNumber,
const
unsigned
int
RunNumber,
const
std::ostringstream*
const
EventBuffer ) ;
40
41
protected
:
42
44
ServiceHandle<IServerSvc>
m_ServerSvc
;
45
ServiceHandle<IOnlineEventDisplaysSvc>
m_onlineEDsvc
{
this
,
"OnlineEventDisplaysSvc"
,
"Online Event Displays Service"
};
46
private
:
47
49
std::string
m_StreamName
;
50
51
};
52
53
}
//Namespace
54
55
#endif
AthAlgTool.h
EventStream.h
IOnlineEventDisplaysSvc.h
IServerSvc.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
JiveXML::IStreamTool
Abstract interface to JiveXML event streaming classes.
Definition
graphics/JiveXML/JiveXML/IStreamTool.h:24
JiveXML::StreamToServerTool::initialize
virtual StatusCode initialize()
Initialize.
Definition
StreamToServerTool.cxx:30
JiveXML::StreamToServerTool::m_onlineEDsvc
ServiceHandle< IOnlineEventDisplaysSvc > m_onlineEDsvc
Definition
StreamToServerTool.h:45
JiveXML::StreamToServerTool::StreamToServerTool
StreamToServerTool(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition
StreamToServerTool.cxx:14
JiveXML::StreamToServerTool::m_StreamName
std::string m_StreamName
Stream name under which these events shall appear.
Definition
StreamToServerTool.h:49
JiveXML::StreamToServerTool::StreamEvent
virtual StatusCode StreamEvent(const unsigned long EventNumber, const unsigned int RunNumber, const std::ostringstream *const EventBuffer)
Stream one event.
Definition
StreamToServerTool.cxx:59
JiveXML::StreamToServerTool::m_ServerSvc
ServiceHandle< IServerSvc > m_ServerSvc
Handle to the server that this tools shall stream events to.
Definition
StreamToServerTool.h:44
JiveXML::StreamToServerTool::finalize
virtual StatusCode finalize()
Finalize.
Definition
StreamToServerTool.cxx:49
ServiceHandle
Definition
ClusterMakerTool.h:36
IStreamTool.h
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition
BadLArRetriever.cxx:22
Generated on
for ATLAS Offline Software by
1.17.0