artdaq_core  v3_05_10
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>

Public Member Functions

 SimpleMemoryReader (uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount=0)
 Constructs a SimpleMemoryReader. More...
 
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::stringWhen 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 24 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_keyKey of the shared memory segment
broadcast_keyKey of the broadcast shared memory segment
expectedEventCountThe number of events the SimpleMemoryReader should expect

Definition at line 37 of file SimpleMemoryReader.cc.


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