Belle II Software  release-06-02-00
DQMHistAnalysisOutputRelayMsg.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 //+
9 // File : DQMHistAnalysisOutputRelayMsg.h
10 // Description : Output module for DQM Histogram analysis
11 //-
12 
13 #pragma once
14 
15 #include <dqm/analysis/modules/DQMHistAnalysis.h>
16 #include <TSocket.h>
17 #include <string>
18 
19 namespace Belle2 {
27 
28  // Public functions
29  public:
30 
35 
40 
44  virtual void initialize() override;
45 
49  virtual void beginRun() override;
50 
54  virtual void event() override;
55 
59  virtual void endRun() override;
60 
64  virtual void terminate() override;
65 
66  // Data members
67  private:
69  TSocket* m_sock = nullptr;
71  int m_port;
73  std::string m_hostname;
74 
75  };
77 } // end namespace Belle2
78 
The base class for the histogram analysis module.
Class definition for the output module of Sequential ROOT I/O.
TSocket * m_sock
The socket to the canvas server.
virtual void event() override
This method is called for each event.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void beginRun() override
Called when entering a new run.
std::string m_hostname
The hostname of the canvas server.
Abstract base class for different kinds of events.