artdaq
v3_08_00
|
This class wraps ArtdaqSharedMemoryService so that it can act as an ArtdaqInput template class. More...
#include <artdaq/ArtModules/detail/ShmemWrapper.hh>
Public Member Functions | |
ShmemWrapper (fhicl::ParameterSet const &ps) | |
ShmemWrapper Constructor. More... | |
virtual | ~ShmemWrapper ()=default |
ShmemWrapper Destructor. | |
artdaq::FragmentPtrs | receiveMessage () |
Receive a message from the ArtdaqSharedMemoryService. More... | |
std::unordered_map < artdaq::Fragment::type_t, std::unique_ptr < artdaq::Fragments > > | receiveMessages () |
Receive all messsages for an event from ArtdaqSharedMemoryService. More... | |
artdaq::FragmentPtrs | receiveInitMessage () |
Receive an init message from the ArtdaqSharedMemoryService. More... | |
std::shared_ptr < artdaq::detail::RawEventHeader > | getEventHeader () |
Get a pointer to the last received RawEventHeader. More... | |
This class wraps ArtdaqSharedMemoryService so that it can act as an ArtdaqInput template class.
JCF, May-27-2016
This class is written with functionality such that it satisfies the requirements needed to be a template in the ArtdaqInput class
Definition at line 23 of file ShmemWrapper.hh.
art::ShmemWrapper::ShmemWrapper | ( | fhicl::ParameterSet const & | ps | ) |
ShmemWrapper Constructor.
ps | ParameterSet for ShmemWrapper |
Definition at line 9 of file ShmemWrapper.cc.
|
inline |
Get a pointer to the last received RawEventHeader.
Definition at line 58 of file ShmemWrapper.hh.
artdaq::FragmentPtrs art::ShmemWrapper::receiveInitMessage | ( | ) |
Receive an init message from the ArtdaqSharedMemoryService.
Definition at line 113 of file ShmemWrapper.cc.
artdaq::FragmentPtrs art::ShmemWrapper::receiveMessage | ( | ) |
Receive a message from the ArtdaqSharedMemoryService.
Definition at line 16 of file ShmemWrapper.cc.
std::unordered_map< artdaq::Fragment::type_t, std::unique_ptr< artdaq::Fragments > > art::ShmemWrapper::receiveMessages | ( | ) |
Receive all messsages for an event from ArtdaqSharedMemoryService.
Definition at line 80 of file ShmemWrapper.cc.