artdaq  v3_08_00
art::ShmemWrapper Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

art::ShmemWrapper::ShmemWrapper ( fhicl::ParameterSet const &  ps)

ShmemWrapper Constructor.

Parameters
psParameterSet for ShmemWrapper

Definition at line 9 of file ShmemWrapper.cc.

Member Function Documentation

std::shared_ptr<artdaq::detail::RawEventHeader> art::ShmemWrapper::getEventHeader ( )
inline

Get a pointer to the last received RawEventHeader.

Returns
a shared_ptr 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.

Returns
A list of unique_ptrs to InitFragments

Definition at line 113 of file ShmemWrapper.cc.

artdaq::FragmentPtrs art::ShmemWrapper::receiveMessage ( )

Receive a message from the ArtdaqSharedMemoryService.

Returns
A list of unique_ptrs to received Fragments

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.

Returns
A map of Fragment::type_t to a unique_ptr to Fragments containing all Fragments in an event

Definition at line 80 of file ShmemWrapper.cc.


The documentation for this class was generated from the following files: