otsdaq_mu2e  v2_04_02
STIBReceiver.hh
1 #ifndef artdaq_ots_Generators_STIBReceiver_hh
2 #define artdaq_ots_Generators_STIBReceiver_hh
3 
4 // Some C++ conventions used:
5 
6 // -Append a "_" to every private member function and variable
7 
8 #include "artdaq-core/Data/Fragment.hh"
9 #include "artdaq-ots/Generators/UDPReceiver.hh"
10 #include "fhiclcpp/fwd.h"
11 
12 #include <arpa/inet.h>
13 #include <netinet/in.h>
14 #include <sys/socket.h>
15 #include <sys/types.h>
16 #include <unistd.h>
17 
18 #include <array>
19 #include <atomic>
20 #include <list>
21 #include <queue>
22 
23 namespace ots
24 {
25 class STIBReceiver : public ots::UDPReceiver
26 {
27  public:
28  explicit STIBReceiver(fhicl::ParameterSet const& ps);
29 
30  private:
31  void ProcessData_(artdaq::FragmentPtrs& frags) override;
32 };
33 } // namespace ots
34 
35 #endif /* artdaq_demo_Generators_ToySimulator_hh */