Belle II Software  release-05-01-25
RFDqmServer.h
1 #ifndef RF_DQMSERVER_H
2 #define RF_DQMSERVER_H
3 //+
4 // File : RFDqmServer.h
5 // Description : DQM server for RFARM
6 //
7 // Author : Ryosuke Itoh, KEK
8 // Date : 14 - Jun - 2013
9 //-
10 
11 #include <string>
12 
13 #include "daq/rfarm/manager/RFConf.h"
14 #include "daq/rfarm/manager/RFProcessManager.h"
15 #include "daq/rfarm/manager/RFLogManager.h"
16 
17 #include "daq/rfarm/manager/RFServerBase.h"
18 
19 #define MAXNODES 256
20 
21 namespace Belle2 {
27  class RFDqmServer : public RFServerBase {
28  public:
29  RFDqmServer(std::string conffile);
30  ~RFDqmServer();
31 
32  // Functions to be hooked to NSM
33  int Configure(NSMmsg*, NSMcontext*);
34  int UnConfigure(NSMmsg*, NSMcontext*);
35  int Start(NSMmsg*, NSMcontext*);
36  int Stop(NSMmsg*, NSMcontext*);
37  int Restart(NSMmsg*, NSMcontext*);
38 
39  // Server function
40  void server();
41 
42  // Cleanup
43  void cleanup();
44 
45  private:
46  RFConf* m_conf;
47  RFProcessManager* m_proc;
48  RFLogManager* m_log;
49 
50  int m_pid_dqm;
51  int m_pid_relay;
52 
53  int m_expno;
54  int m_runno;
55 
56  };
58 }
59 #endif
60 
NSMmsg
Definition: nsm2.h:217
Belle2::RFLogManager
Definition: RFLogManager.h:18
Belle2::RFProcessManager
Definition: RFProcessManager.h:22
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RFServerBase
Definition: RFServerBase.h:20
Belle2::RFConf
Definition: RFConf.h:24
NSMcontext_struct
Definition: nsmlib2.h:66
Belle2::RFDqmServer
Definition: RFDqmServer.h:27