LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
LandedSocket.h
Go to the documentation of this file.
1 #ifndef LANDEDSOCKET_H
2 #define LANDEDSOCKET_H
3 
5 
6 namespace fhicl { class ParameterSet; }
7 namespace art { class ActivityRegistry; }
8 namespace art { class Worker; }
9 namespace art { class InputSource; }
10 namespace art { class EventID; }
11 namespace art { class Event; }
12 
13 #include <zlib.h>
14 #include <boost/asio/local/stream_protocol.hpp>
15 #include <boost/asio/io_service.hpp>
16 
17 namespace evd
18 {
19 
21  {
22  public:
24 
25  private:
26  void postBeginJob();
27  void postBeginJobWorkers(art::InputSource*,
28  std::vector<art::Worker*> const&);
29  void preProcessEvent(art::Event const&);
30  void postProcessEvent(art::Event const&);
31 
32  private:
34  boost::asio::local::stream_protocol::endpoint* endpoint_;
35  boost::asio::local::stream_protocol::socket* socket_;
36  boost::asio::io_service service_;
37  unsigned long record_;
38 
39  public:
40  bool connect(void);
41  void sendGeometry(std::string);
42  void sendEvent(int, int, int, int, int);
43  void sendHit(double, double, double, double, double, int);
44  void sendVertex(double, double, double, double, int, int);
45  };
46 
47 }
48 
50 
51 #endif //ifndef LANDEDSOCKET_H
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
LArSoft includes.
parameter set interface
art::InputSource * inputSource_
Definition: LandedSocket.h:33
boost::asio::local::stream_protocol::endpoint * endpoint_
Definition: LandedSocket.h:34
boost::asio::io_service service_
Definition: LandedSocket.h:36
unsigned long record_
Definition: LandedSocket.h:37
HLT enums.
boost::asio::local::stream_protocol::socket * socket_
Definition: LandedSocket.h:35