#include <DgramSourceShmem.h>
Inheritance diagram for PSShmemInput::DgramSourceShmem:
Public Member Functions | |
DgramSourceShmem (const std::string &name) | |
virtual | ~DgramSourceShmem () |
virtual void | init () |
virtual bool | next (std::vector< XtcInput::Dgram > &eventDg, std::vector< XtcInput::Dgram > &nonEventDg) |
Return next datagram(s) from the source. |
Definition at line 58 of file DgramSourceShmem.h.
PSShmemInput::DgramSourceShmem::DgramSourceShmem | ( | const std::string & | name | ) |
Definition at line 46 of file DgramSourceShmem.cpp.
PSShmemInput::DgramSourceShmem::~DgramSourceShmem | ( | ) | [virtual] |
Definition at line 57 of file DgramSourceShmem.cpp.
References MsgLog, and psana::Configurable::name().
void PSShmemInput::DgramSourceShmem::init | ( | ) | [virtual] |
Initialization method for datagram source, this is typically called in beginJob() method and it may contain initialization code which cannot be executed during construction of an instance.
Implements PSXtcInput::IDatagramSource.
Definition at line 71 of file DgramSourceShmem.cpp.
References psana::Configurable::configList(), psana::Configurable::configStr(), and src::mpi_datasource::ds.
bool PSShmemInput::DgramSourceShmem::next | ( | std::vector< XtcInput::Dgram > & | eventDg, | |
std::vector< XtcInput::Dgram > & | nonEventDg | |||
) | [virtual] |
Return next datagram(s) from the source.
This method returns two sets of datagrams - eventDg is the set of histograms belonging to the next event, nonEventDg is the set of datagrams which has some other data (like EPICS) which is needed for correct interpretation of current event. Currently eventDg should contain one datagram but potentially in the future we may start event building in offline and that list can grow longer. It nonEventDg is non-empty then it has to be processed first as those datagram should come from earlier time than eventDg and eventDg may contain data that overrides data in nonEventDg (e.g. some EPICS PV data may be contained in both nonEventDg and eventDg).
This method will called repeatedly until it returns false.
[out] | eventDg | returned set of datagrams for current event |
[out] | nonEventDg | returned set of datagrams containing other information. |
Implements PSXtcInput::IDatagramSource.
Definition at line 123 of file DgramSourceShmem.cpp.