Belle II Software development
RxSocketModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef RXMODULE_H
10#define RXMODULE_H
11
12#include <framework/core/Module.h>
13#include <daq/dataflow/EvtSocket.h>
14
15#include <framework/pcore/DataStoreStreamer.h>
16
17namespace Belle2 {
25 class RxSocketModule : public Module {
26
27 // Public functions
28 public:
29
32 virtual ~RxSocketModule();
33
35 void initialize() override;
36
38 void beginRun() override;
39 void event() override;
40 void endRun() override;
41 void terminate() override;
42
43 // Data members
44 private:
45
47 int m_port;
48
51
54
57
60
61 };
62
64} // end namespace Belle2
65
66#endif // MODULEHELLO_H
Stream/restore DataStore objects to/from EvtMessage.
Base class for Modules.
Definition: Module.h:72
A class definition of an input module for Sequential ROOT I/O.
DataStoreStreamer * m_streamer
DataStoreStreamer.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
int m_port
Receiver Port.
void beginRun() override
Module functions to be called from event process.
int m_nrecv
No. of sent events.
RxSocketModule()
Constructor / Destructor.
int m_compressionLevel
Compression Level.
EvtSocketRecv * m_recv
Reciever Socket.
Abstract base class for different kinds of events.