artdaq_core  v3_06_00
SimpleQueueReader.hh
1 #ifndef artdaq_core_Core_SimpleQueueReader_hh
2 #define artdaq_core_Core_SimpleQueueReader_hh
3 
4 #include <memory>
5 #include "artdaq-core/Core/GlobalQueue.hh"
6 
7 namespace artdaq {
18 int simpleQueueReaderApp(int argc, char** argv);
19 
25 {
26 public:
31  explicit SimpleQueueReader(std::size_t eec = 0);
32 
38  void run();
39 
40 private:
44  RawEventQueue& queue_;
48  std::size_t expectedEventCount_;
49 };
50 } // namespace artdaq
51 
52 #endif /* artdaq_core_Core_SimpleQueueReader_hh */
SimpleQueueReader(std::size_t eec=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...