Belle II Software development
EventServerCallback.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 _Belle2_EventServerCallback_hh
9#define _Belle2_EventServerCallback_hh
10
11#include <pthread.h>
12
13#include <daq/slc/runcontrol/RCCallback.h>
14
15#include <daq/rfarm/manager/RFConf.h>
16#include <daq/rfarm/manager/RFProcessManager.h>
17#include <daq/rfarm/manager/RFSharedMem.h>
18#include <daq/rfarm/manager/RFLogManager.h>
19
20namespace Belle2 {
27
28 public:
30 virtual ~EventServerCallback() noexcept;
31
32 public:
33 virtual void load(const DBObject&, const std::string&) override;
34 void abort() override;
35
36 void EventServerLogger();
37
38 private:
39 RFConf* m_conf;
40 RFProcessManager* m_proc;
41 RFLogManager* m_log;
42 int m_pid_server;
43 pthread_t m_logthread;
44
45 };
46
48}
49
50#endif
Abstract base class for different kinds of events.