artdaq_core  v1_07_08
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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 <thread>
6 #include <memory>
7 
8 namespace artdaq
9 {
20  int simpleQueueReaderApp(int argc, char** argv);
21 
27  {
28  public:
33  explicit SimpleQueueReader(std::size_t expectedEventCount = 0);
34 
40  void run();
41 
42  private:
46  RawEventQueue& queue_;
50  std::size_t expectedEventCount_;
51  };
52 }
53 
54 #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...