Belle II Software development
ERecoMaster.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 ER_MASTER_H
9#define ER_MASTER_H
10
11#include "daq/rfarm/manager/RFConf.h"
12#include "daq/rfarm/manager/RFSharedMem.h"
13#include "daq/rfarm/manager/RFLogManager.h"
14
15#include "daq/rfarm/manager/RFServerBase.h"
16
17namespace Belle2 {
22 class ERecoMaster : public RFServerBase {
23 public:
24 explicit ERecoMaster(const std::string& conf);
25 ~ERecoMaster();
27 ERecoMaster(const ERecoMaster&) = delete;
28
30 ERecoMaster& operator=(const ERecoMaster&) = delete;
31
32 // Functions to be hooked to NSM
33 int Configure(NSMmsg*, NSMcontext*) override;
34 int UnConfigure(NSMmsg*, NSMcontext*) override;
35 int Stop(NSMmsg*, NSMcontext*) override;
36 int Restart(NSMmsg*, NSMcontext*) override;
37
38 // Function to hook message funnctions
39 static void Hook_Message_Handlers();
40
41 // Message functions
42 static void Log_Handler(NSMmsg* msg, NSMcontext* ctx);
43
44 // Server function
45 static void monitor_loop();
46
47
48 private:
49 RFConf* m_conf;
50 //RFSharedMem* m_shm;
51 RFLogManager* m_log;
52
53 };
54
56}
57#endif
58
59
60
ERecoMaster & operator=(const ERecoMaster &)=delete
Operator = (disabled).
ERecoMaster(const ERecoMaster &)=delete
Copy constructor (disabled).
Abstract base class for different kinds of events.
Definition nsm2.h:224