ATLAS Offline Software
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"
13 #include "GaudiKernel/ServiceHandle.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 
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
JiveXML::StreamToServerTool::StreamToServerTool
StreamToServerTool(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition: StreamToServerTool.cxx:14
JiveXML::StreamToServerTool::initialize
virtual StatusCode initialize()
Initialize.
Definition: StreamToServerTool.cxx:30
IOnlineEventDisplaysSvc.h
sct_calib_tf.EventNumber
int EventNumber
Definition: sct_calib_tf.py:29
JiveXML::StreamToServerTool::finalize
virtual StatusCode finalize()
Finalize.
Definition: StreamToServerTool.cxx:49
IStreamTool.h
IServerSvc.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
JiveXML::StreamToServerTool::m_ServerSvc
ServiceHandle< IServerSvc > m_ServerSvc
Handle to the server that this tools shall stream events to.
Definition: StreamToServerTool.h:44
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:21
EventInfoWrite.RunNumber
RunNumber
Definition: EventInfoWrite.py:50
JiveXML::StreamToServerTool::m_onlineEDsvc
ServiceHandle< IOnlineEventDisplaysSvc > m_onlineEDsvc
Definition: StreamToServerTool.h:45
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
Stream event to an IServerSvc, which typically is a network server run from and controlled by the Ath...
Definition: StreamToServerTool.h:25
AthAlgTool
Definition: AthAlgTool.h:26
EventStream.h
JiveXML::IStreamTool
Abstract interface to JiveXML event streaming classes.
Definition: IStreamTool.h:24
JiveXML::StreamToServerTool::m_StreamName
std::string m_StreamName
Stream name under which these events shall appear.
Definition: StreamToServerTool.h:49
ServiceHandle
Definition: ClusterMakerTool.h:37