1 #ifndef artdaq_ots_Generators_DataGenReceiver_hh
2 #define artdaq_ots_Generators_DataGenReceiver_hh
8 #include "artdaq/Application/CommandableFragmentGenerator.hh"
12 #include "artdaq-core/Data/Fragments.hh"
13 #include "fhiclcpp/fwd.h"
15 #include "otsdaq-core/DataManager/DataConsumer.h"
17 #include <arpa/inet.h>
18 #include <netinet/in.h>
19 #include <sys/socket.h>
20 #include <sys/types.h>
31 public artdaq::CommandableFragmentGenerator
36 bool getNext_(artdaq::FragmentPtrs& output)
override;
38 void startProcessingData(std::string runNumber) { ; }
39 void stopProcessingData(
void) { ; }
40 void resumeProcessingData(
void) { ; }
41 void pauseProcessingData(
void) { ; }
43 void start()
override;
44 virtual void stop()
override;
45 virtual void stopNoMutex()
override;
48 bool workLoopThread(toolbox::task::WorkLoop* workLoop) {
return false; }
49 void ProcessData_(artdaq::FragmentPtrs& frags);
58 uint8_t expectedPacketNumber_;
60 double fragmentWindow_;
61 std::chrono::high_resolution_clock::time_point lastFrag_;