19 mbs::ReadoutModule(name, cmd),
37 std::string newurl = src;
39 if (((newurl.find(
".hld") != std::string::npos) || (newurl.find(
".HLD") != std::string::npos)) &&
40 (newurl.find(
"hld://") == std::string::npos))
41 newurl = std::string(
"hld://") + src;
43 return DoConnect(newurl,
"hadaq::ReadoutModule");
49 if (
null())
return nullptr;
51 bool intime = GetObject()->GetEventInTime(maxage);
55 if (intime && GetObject()->fIter2.NextEvent())
56 return GetObject()->fIter2.evnt();
63 if (GetObject()->fIter2.NextEvent())
64 return GetObject()->fIter2.evnt();
71 if (
null())
return nullptr;
73 if (GetObject()->fIter2.evnt())
return GetObject()->fIter2.evnt();
77 if (!mbsev)
return nullptr;
Reference on memory from memory pool.
Represents command with its arguments.
bool Reset(const dabc::Buffer &buf)
Initialize iterator on the beginning of the buffer, buffer instance should exists until end of iterat...
hadaq::RawEvent * GetEvent()
Get current event pointer.
hadaq::RawEvent * NextEvent(double tm=1.0, double maxage=-1.)
Retrieve next event from the server.
static ReadoutHandle Connect(const std::string &url)
Connect with data source.
ReadoutModule(const std::string &name, dabc::Command cmd)
hadaq::ReadIterator fIter2
iterator over HADAQ buffers
int AcceptBuffer(dabc::Buffer &buf)
mbs::EventHeader * GetEvent()
Get current event pointer.
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...
Support for MBS - standard GSI DAQ.