artdaq::SimpleMemoryReader Class Reference

SimpleMemoryReader will continue to read RawEvent objects off the queue until it encounters a null pointer, at which point it stops. More...

#include <artdaq-core/Core/SimpleMemoryReader.hh>

List of all members.

Public Member Functions

 SimpleMemoryReader (uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount=0)
 Constructs a SimpleMemoryReader.
void run ()
 Run until a null pointer is popped off of the RawEventQueue. Throws an excpetion if expectedEventCount is set and a different number of events come off the queue.

Exceptions:
std::string When the expectedEventCount is set and a different number of events come off the queue.


Detailed Description

SimpleMemoryReader will continue to read RawEvent objects off the queue until it encounters a null pointer, at which point it stops.

Definition at line 25 of file SimpleMemoryReader.hh.


Constructor & Destructor Documentation

artdaq::SimpleMemoryReader::SimpleMemoryReader ( uint32_t  shm_key,
uint32_t  broadcast_key,
std::size_t  expectedEventCount = 0 
) [explicit]

Constructs a SimpleMemoryReader.

Parameters:
shm_key Key of the shared memory segment
broadcast_key Key of the broadcast shared memory segment
expectedEventCount The number of events the SimpleMemoryReader should expect

Definition at line 38 of file SimpleMemoryReader.cc.


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

Generated on 19 Feb 2018 for artdaq_core by  doxygen 1.6.1