Belle II Software  release-05-01-25
ERecoRunControlCallback.cc
1 #include "daq/expreco/ERecoRunControlCallback.h"
2 
3 #include "daq/expreco/ERecoMasterCallback.h"
4 
5 #include <daq/slc/nsm/NSMCommunicator.h>
6 
7 using namespace Belle2;
8 
9 ERecoRunControlCallback::ERecoRunControlCallback(ERecoMasterCallback* callback)
10  : m_callback(callback)
11 {
12  callback->setCallback(this);
13  allocData(getNode().getName() + "_STATUS", "erunitinfo", 3);
14 }
15 
16 void ERecoRunControlCallback::initialize(const DBObject&)
17 {
18  allocData(getNode().getName() + "_STATUS", "erunitinfo", 3);
19 }
20 
21 bool ERecoRunControlCallback::perform(NSMCommunicator& com)
22 {
23  NSMCommand cmd(com.getMessage().getRequestName());
24  m_callback->perform(com);
25  if (cmd == NSMCommand::VGET || cmd == NSMCommand::VSET) {
26  return RCCallback::perform(com);
27  }
28  return true;
29 }
30 
Belle2::ObjectInfo::getName
TString getName(const TObject *obj)
human-readable name (e.g.
Definition: ObjectInfo.cc:38
Belle2::DBObject
Definition: DBObject.h:14
Belle2::NSMCommunicator
Definition: NSMCommunicator.h:25
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ERecoMasterCallback
Definition: ERecoMasterCallback.h:21
Belle2::NSMCommand
Definition: NSMCommand.h:12