1 #ifndef artdaq_core_Core_SimpleMemoryReader_hh
2 #define artdaq_core_Core_SimpleMemoryReader_hh 1
5 #include "artdaq-core/Core/SharedMemoryEventReceiver.hh"
33 explicit SimpleMemoryReader(uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount = 0);
46 std::shared_ptr<SharedMemoryEventReceiver> incoming_events_;
50 std::size_t expectedEventCount_;
void run()
Run until a null pointer is popped off of the RawEventQueue. Throws an excpetion if expectedEventCoun...
SimpleMemoryReader(uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount=0)
Constructs a SimpleMemoryReader.
SimpleMemoryReader will continue to read RawEvent objects off the queue until it encounters a null po...
int SimpleMemoryReaderApp(int argc, char **argv)
An application which pops items off a RawEventQueue using the SimpleMemoryReader. ...