Belle II Software development
HistoRelay2.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <string>
11#include <TDirectory.h>
12
13#include <daq/dataflow/EvtSocket.h>
14#include <framework/pcore/MsgHandler.h>
15
16namespace Belle2 {
22 public:
23 HistoRelay2(std::string& filename, std::string& dest, int port);
25
26 int collect();
27 private:
28 std::string m_filename;
29 EvtSocketSend* m_sock;
30 std::string m_dest;
31 int m_port;
32
33 EvtMessage* StreamFile(std::string& filename);
34 int StreamHistograms(TDirectory* curdir, MsgHandler* msg, int& numobjs);
35
36 };
38}
39
Class to manage streamed object.
Definition: EvtMessage.h:59
A class to encode/decode an EvtMessage.
Definition: MsgHandler.h:103
Abstract base class for different kinds of events.