artdaq_core  v3_01_04
SimpleQueueReader.hh
1 #ifndef artdaq_core_Core_SimpleQueueReader_hh
2 #define artdaq_core_Core_SimpleQueueReader_hh
3 
4 #include "artdaq-core/Core/GlobalQueue.hh"
5 #include <memory>
6 
7 namespace artdaq
8 {
19  int simpleQueueReaderApp(int argc, char** argv);
20 
26  {
27  public:
32  explicit SimpleQueueReader(std::size_t expectedEventCount = 0);
33 
39  void run();
40 
41  private:
45  RawEventQueue& queue_;
49  std::size_t expectedEventCount_;
50  };
51 }
52 
53 #endif /* artdaq_core_Core_SimpleQueueReader_hh */
SimpleQueueReader(std::size_t expectedEventCount=0)
Constructs a SimpleQueueReader.
int simpleQueueReaderApp(int argc, char **argv)
An application which pops items off a RawEventQueue using the SimpleQueueReader.
SimpleQueueReader will continue to read RawEvent objects off the queue until it encounters a null poi...
void run()
Run until a null pointer is popped off of the RawEventQueue. Throws an excpetion if expectedEventCoun...