Belle II Software  release-08-01-10
HistoRelay.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 #ifndef HISTORELAY_H
9 #define HISTORELAY_H
10 
11 #include <string>
12 
13 #include <daq/dataflow/EvtSocket.h>
14 #include <daq/dqm/DqmMemFile.h>
15 
16 namespace Belle2 {
21  class HistoRelay {
22  public:
23  HistoRelay(std::string& filename, std::string& dest, int port);
24  ~HistoRelay();
25 
26  int collect();
27  private:
28  std::string m_filename;
29  DqmMemFile* m_memfile;
30  EvtSocketSend* m_sock;
31  std::string m_dest;
32  int m_port;
33 
34  };
36 }
37 
38 #endif
39 
Abstract base class for different kinds of events.