Belle II Software
release-05-01-25
RFMasterCallback.h
1
#ifndef _Belle2_RFMasterCallback_h
2
#define _Belle2_RFMasterCallback_h
3
4
#include <daq/slc/runcontrol/RCState.h>
5
#include <daq/slc/runcontrol/RCCallback.h>
6
7
#include <daq/slc/base/StringUtil.h>
8
9
#include <vector>
10
11
namespace
Belle2
{
17
class
RFRunControlCallback;
18
19
class
RFMasterCallback
:
public
RCCallback
{
20
21
public
:
22
RFMasterCallback
()
throw
();
23
virtual
~
RFMasterCallback
()
throw
() {}
24
25
public
:
26
virtual
void
initialize(
const
DBObject
& obj)
throw
(
RCHandlerException
);
27
virtual
void
configure(
const
DBObject
& obj)
throw
(
RCHandlerException
);
28
virtual
void
monitor()
throw
(
RCHandlerException
);
29
virtual
void
ok(
const
char
* node,
const
char
* data)
throw
();
30
virtual
void
error(
const
char
* node,
const
char
* data)
throw
();
31
virtual
void
load(
const
DBObject
& obj)
throw
(
RCHandlerException
);
32
virtual
void
start(
int
expno,
int
runno)
throw
(
RCHandlerException
);
33
virtual
void
stop()
throw
(
RCHandlerException
);
34
virtual
void
recover(
const
DBObject
& obj)
throw
(
RCHandlerException
);
35
virtual
bool
resume(
int
subno)
throw
(
RCHandlerException
);
36
virtual
bool
pause()
throw
(
RCHandlerException
);
37
virtual
void
abort()
throw
(
RCHandlerException
);
38
virtual
bool
perform(
NSMCommunicator
& com)
throw
();
39
40
public
:
41
void
setState(
NSMNode
& node,
const
RCState
& state);
42
void
setCallback(
RFRunControlCallback
* callback) { m_callback = callback; }
43
void
addData(
const
std::string& dataname,
const
std::string& format);
44
45
private
:
46
RFRunControlCallback
* m_callback;
47
StringList m_dataname;
48
typedef
std::vector<NSMNode> NSMNodeList;
49
NSMNodeList m_nodes;
50
51
};
52
54
}
55
56
#endif
Belle2::RCHandlerException
Definition:
RCHandlerException.h:12
Belle2::NSMNode
Definition:
NSMNode.h:14
Belle2::DBObject
Definition:
DBObject.h:14
Belle2::RCCallback
Definition:
RCCallback.h:18
Belle2::NSMCommunicator
Definition:
NSMCommunicator.h:25
Belle2::RFMasterCallback
Definition:
RFMasterCallback.h:19
Belle2::RFRunControlCallback
Definition:
RFRunControlCallback.h:14
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::RCState
Definition:
RCState.h:12
daq
rfarm
manager
include
RFMasterCallback.h
Generated on Fri Nov 5 2021 03:49:40 for Belle II Software by
1.8.17