9#include "daq/rawdata/modules/GenRawSend.h"
11#include <framework/datastore/StoreObjPtr.h>
12#include <framework/dataobjects/EventMetaData.h>
37 addParam(
"Size", m_size,
"Raw Data Size", 256);
38 addParam(
"MaxEvent", m_maxevt,
"Max Number of Event", 1000000);
39 addParam(
"DestHostName",
m_dest,
"Destination host",
string(
"localhost"));
64 m_eventMetaDataPtr.registerInDataStore();
67 m_rawcopper.registerInDataStore();
79 if (m_nevt > m_maxevt)
return;
82 m_eventMetaDataPtr.create();
83 m_eventMetaDataPtr->setExperiment(1);
84 m_eventMetaDataPtr->setRun(1);
85 m_eventMetaDataPtr->setEvent(m_nevt);
121 printf(
"GenRawSendModule : termination called\n");
void initialize() override
Initialize the Module.
void event() override
Called when entering a new run.
int BUF_SIZE_WORD
size of buffer for one event (word)
GenRawSendModule()
Constructor.
virtual ~GenRawSendModule() override
Destructor.
EvtSocketSend * m_sock
EvtSocket.
void terminate() override
Is called after processing the last event of a run.
int m_port
Destination port.
std::string m_dest
Destination Host.
void setDescription(const std::string &description)
Sets the description of the module.
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.