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"));
63 m_eventMetaDataPtr.registerInDataStore();
66 m_rawcopper.registerInDataStore();
82 if (m_nevt > m_maxevt)
return;
85 m_eventMetaDataPtr.create();
86 m_eventMetaDataPtr->setExperiment(1);
87 m_eventMetaDataPtr->setRun(1);
88 m_eventMetaDataPtr->setEvent(m_nevt);
130 printf(
"GenRawSendModule : termination called\n");
virtual ~GenRawSendModule()
Destructor.
void initialize() override
Initialize the Module.
void event() override
Running over all events.
int BUF_SIZE_WORD
size of buffer for one event (word)
GenRawSendModule()
Constructor.
void endRun() override
Is called after processing the last event of a run.
EvtSocketSend * m_sock
EvtSocket.
void terminate() override
Is called at the end of your Module.
int m_port
Destination port.
void beginRun() override
Called when entering a new run.
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.