10#include <framework/core/Module.h>
12#include <framework/pcore/zmq/utils/StreamHelper.h>
13#include <framework/pcore/zmq/connections/ZMQRawConnection.h>
15#include <framework/pcore/zmq/utils/ZMQParent.h>
16#include <framework/datastore/StoreObjPtr.h>
17#include <framework/dataobjects/EventMetaData.h>
53 void event()
override;
On every event, serialize the data store and send the binary data out to the connected ZMQ applicatio...
bool m_firstEvent
Are we still in the first event? Please note the special handling of the first event in the HLTEventP...
std::string m_param_output
Module parameter: the ZMQ address of the connected application (to receive the messages)
ZMQMessageHelper m_messageHelper
Message helper to create zmq::message_t from EventMetaData and EvtMessage.
HLTDs2ZMQRawModule()
Register the module parameters.
void initialize() override
Module initialization, only applied when the initial m_firstEvent is false.
void event() override
On the first event, initialize the streamer and the connection. Serializes and sends out the data sto...
bool m_param_addEventSize
Module parameter: add event size in the output data or not.
std::shared_ptr< ZMQParent > m_parent
ZMQ Parent needed for the connections.
bool m_param_addPersistentDurability
Module parameters for streamHelper.
std::unique_ptr< ZMQRawOutput > m_output
Raw output connection to the ZMQ application.
StreamHelper m_streamHelper
Original stream helper.
bool m_param_raw
Module paremeter: send out raw data with send header and trailer around the evtmessage instead of jus...
Helper class for data store serialization.
Internal helper for creating ZMQ messages (should not be used otherwise).
Abstract base class for different kinds of events.