1 #ifndef artdaq_ArtModules_ShmemWrapper_hh
2 #define artdaq_ArtModules_ShmemWrapper_hh
4 #include "artdaq-core/Utilities/ExceptionHandler.hh"
5 #include "fhiclcpp/ParameterSet.h"
7 #include "artdaq-core/Data/Fragment.hh"
8 #include "artdaq-core/Data/RawEvent.hh"
46 std::unordered_map<artdaq::Fragment::type_t, std::unique_ptr<artdaq::Fragments>>
receiveMessages();
58 std::shared_ptr<artdaq::detail::RawEventHeader>
getEventHeader() {
return hdr_ptr_; }
66 fhicl::ParameterSet data_pset_;
68 double init_timeout_s_;
69 std::shared_ptr<artdaq::detail::RawEventHeader> hdr_ptr_;
std::unordered_map< artdaq::Fragment::type_t, std::unique_ptr< artdaq::Fragments > > receiveMessages()
Receive all messsages for an event from ArtdaqSharedMemoryService.
artdaq::FragmentPtrs receiveMessage()
Receive a message from the ArtdaqSharedMemoryService.
ShmemWrapper(fhicl::ParameterSet const &ps)
ShmemWrapper Constructor.
virtual ~ShmemWrapper()=default
ShmemWrapper Destructor.
This class wraps ArtdaqSharedMemoryService so that it can act as an ArtdaqInput template class...
artdaq::FragmentPtrs receiveInitMessage()
Receive an init message from the ArtdaqSharedMemoryService.
std::shared_ptr< artdaq::detail::RawEventHeader > getEventHeader()
Get a pointer to the last received RawEventHeader.