20 #ifndef MBS_MbsTypeDefs
24 #ifndef DABC_ModuleAsync
81 return DoConnect(url,
"mbs::ReadoutModule");
113 static MonitorHandle Connect(
const std::string &mbsnode,
int cmdport = 6019,
int logport = 6007,
int statport = 6008);
122 bool MbsCmd(
const std::string &cmd,
double tmout=5.);
#define DABC_REFERENCE(RefClass, ParentClass, T)
Reference on memory from memory pool.
Represents command with its arguments.
Reference on dabc::ModuleAsync class
Base class for user-derived code, implementing event-processing.
bool null() const
Returns true if reference contains nullptr.
bool Disconnect()
Release connection to the MBS node.
static MonitorHandle Connect(const std::string &mbsnode, int cmdport=6019, int logport=6007, int statport=6008)
Connect with MBS node.
bool MbsCmd(const std::string &cmd, double tmout=5.)
Execute MBS command.
Interface module for MBS monitoring and control.
Read iterator for MBS events/subevents.
Handle to organize readout of MBS data source.
mbs::EventHeader * GetEvent()
Get current event pointer.
static ReadoutHandle Connect(const std::string &url)
Connect with MBS server.
mbs::EventHeader * NextEvent(double tmout=1.0, double maxage=-1.)
Retrieve next event from the server One could specify timeout (how long one should wait for next even...
static ReadoutHandle DoConnect(const std::string &url, const char *classname)
bool Disconnect()
Disconnect from MBS server.
Module, used to readout MBS data source and provide data to the user.
virtual int ExecuteCommand(dabc::Command cmd)
Main method where commands are executed.
dabc::Command fCmd
current nextbuffer cmd
dabc::TimeStamp fLastNotFullTm
last time when queue is not full
virtual void ProcessTimerEvent(unsigned timer)
Method called by framework when timer event is produced.
bool GetEventInTime(double maxage)
virtual int AcceptBuffer(dabc::Buffer &buf)
ReadoutModule(const std::string &name, dabc::Command cmd)
dabc::TimeStamp fCurBufTm
time when buffer analysis starts
mbs::ReadIterator fIter
iterator, accessed only from user side
virtual void ProcessInputEvent(unsigned port)
Method called by framework when input event is produced.
Support for MBS - standard GSI DAQ.
Class for acquiring and holding timestamps.