9#include <daq/dataflow/modules/RxSocketModule.h>
40 B2INFO(
"Rx: Constructor done.");
44RxSocketModule::~RxSocketModule()
51 gSystem->Load(
"libdataobjects");
71 B2INFO(
"Rx initialized.");
77 B2INFO(
"beginRun called.");
92 B2INFO(
"Rx: got an event from Socket, size=" << msg->
size());
94 if (msg->
type() == MSG_TERMINATE) {
95 B2INFO(
"Rx: got termination message. Exitting....");
103 B2INFO(
"Rx: DataStore Restored!!");
115 B2INFO(
"endRun done.");
121 B2INFO(
"terminate called");
Stream/restore DataStore objects to/from EvtMessage.
int restoreDataStore(EvtMessage *msg)
Restore DataStore objects from EvtMessage.
Class to manage streamed object.
ERecordType type() const
Get record type.
int size() const
Get size of message including headers.
void setDescription(const std::string &description)
Sets the description of the module.
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.
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.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.