 |
Belle II Software
release-05-02-19
|
12 #include <daq/hbasf2/apps/ZMQApp.h>
13 #include <framework/pcore/zmq/connections/ZMQConfirmedConnection.h>
14 #include <daq/hbasf2/connections/ZMQHistogramOutput.h>
16 namespace po = boost::program_options;
32 class ZMQHistogramToFileServer :
public ZMQStandardApp<ZMQConfirmedInput, ZMQHistoServerToFile> {
37 void addOptions(po::options_description& desc) final;
71 void addOptions(po::options_description& desc)
final;
83 std::string m_outputAddress;
102 void addOptions(po::options_description& desc) final;
114 std::
string m_outputAddress;
Non-Final histogram app: receive histogram messages from all clients and react with a confirmation me...
std::string m_sharedMemoryName
Parameter: name of the shared memory (or empty)
std::string m_inputAddress
Parameter: input address.
void handleExternalSignal(EMessageTypes type) final
Merge on stop (even if not all clients have stopped) or clear the counters on start from the monitori...
EMessageTypes
Type the messages can have.
std::string m_rootFileName
Parameter: name of the root file - can include {run_number} or {experiment_number}.
Generic base class for all standalone ZMQ applications.
void initialize() final
Initialize the two connections using the command line arguments.
void handleTimeout() final
Call the mergeAndSend function on timeout.
Non-Final histogram app: receive histogram messages from all clients and react with a confirmation me...
void handleInput() final
Pass the message from the input connection to the histogram storage.
Abstract base class for different kinds of events.
unsigned int m_maximalUncompressedBufferSize
Parameter: size of the temporary internal compression buffer.
void addOptions(po::options_description &desc) final
Add the parameters to the cmd line arguments.
Add the common functionality to the histogram output classes.