artdaq
v3_08_00
|
ArtdaqSharedMemoryService extends ArtdaqSharedMemoryServiceInterface. It receives events from shared memory using SharedMemoryEventReceiver. It also manages the artdaq Global varaibles my_rank and app_name. Users should retrieve a ServiceHandle to this class before using artdaq Globals to ensure the correct values are used. More...
#include <artdaq/ArtModules/ArtdaqSharedMemoryService.h>
Classes | |
struct | Config |
Allowed Configuration parameters of NetMonTransportService. May be used for configuration validation More... | |
Public Types | |
using | Parameters = fhicl::WrappedTable< Config > |
Used for ParameterSet validation (if desired) | |
Public Member Functions | |
virtual | ~ArtdaqSharedMemoryService () |
NetMonTransportService Destructor. Calls disconnect(). | |
ArtdaqSharedMemoryService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
NetMonTransportService Constructor. More... | |
std::unordered_map < artdaq::Fragment::type_t, std::unique_ptr < artdaq::Fragments > > | ReceiveEvent (bool broadcast) override |
Receive an event from the shared memory. More... | |
size_t | GetQueueSize () override |
Get the number of events which are ready to be read. More... | |
size_t | GetQueueCapacity () override |
Get the maximum number of events which can be stored in the shared memory. More... | |
std::shared_ptr < artdaq::detail::RawEventHeader > | GetEventHeader () override |
Get a shared_ptr to the current event header, if any. More... | |
![]() | |
virtual | ~ArtdaqSharedMemoryServiceInterface ()=default |
Default virtual destructor. | |
ArtdaqSharedMemoryService extends ArtdaqSharedMemoryServiceInterface. It receives events from shared memory using SharedMemoryEventReceiver. It also manages the artdaq Global varaibles my_rank and app_name. Users should retrieve a ServiceHandle to this class before using artdaq Globals to ensure the correct values are used.
Definition at line 55 of file ArtdaqSharedMemoryService.h.
ArtdaqSharedMemoryService::ArtdaqSharedMemoryService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
NetMonTransportService Constructor.
pset | ParameterSet used to configure NetMonTransportService and DataSenderManager. See NetMonTransportService::Config |
Definition at line 14 of file ArtdaqSharedMemoryService_service.cc.
|
inlineoverridevirtual |
Get a shared_ptr to the current event header, if any.
Implements ArtdaqSharedMemoryServiceInterface.
Definition at line 105 of file ArtdaqSharedMemoryService.h.
|
inlineoverridevirtual |
Get the maximum number of events which can be stored in the shared memory.
Implements ArtdaqSharedMemoryServiceInterface.
Definition at line 100 of file ArtdaqSharedMemoryService.h.
|
inlineoverridevirtual |
Get the number of events which are ready to be read.
Implements ArtdaqSharedMemoryServiceInterface.
Definition at line 95 of file ArtdaqSharedMemoryService.h.
|
overridevirtual |
Receive an event from the shared memory.
broadcast | Whether to only attempt to receive a broadcast (broadcasts are always preferentially received over data) |
Implements ArtdaqSharedMemoryServiceInterface.
Definition at line 71 of file ArtdaqSharedMemoryService_service.cc.