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 {
21 class HistoRelay2 {
22 public:
23 HistoRelay2(std::string& filename, std::string& dest, int port);
24 ~HistoRelay2();
26 HistoRelay2(const HistoRelay2&) = delete;
27
29 HistoRelay2& operator=(const HistoRelay2&) = delete;
30
31 int collect();
32 private:
33 std::string m_filename;
34 EvtSocketSend* m_sock;
35 std::string m_dest;
36 int m_port;
37
38 static EvtMessage* StreamFile(std::string& filename);
39 static int StreamHistograms(TDirectory* curdir, MsgHandler* msg, int& numobjs);
40
41 };
42
43}
44
Class to manage streamed object.
Definition EvtMessage.h:59
HistoRelay2(const HistoRelay2 &)=delete
Copy constructor (disabled).
HistoRelay2 & operator=(const HistoRelay2 &)=delete
Operator = (disabled).
A class to encode/decode an EvtMessage.
Definition MsgHandler.h:103
Abstract base class for different kinds of events.