WebEVDServer.h
Go to the documentation of this file.
1 #ifndef WEBEVDSERVER_H
2 #define WEBEVDSERVER_H
3 
4 #include <string>
5 #include <vector>
6 
8 
9 namespace geo{class GeometryCore;}
10 namespace detinfo{class DetectorPropertiesData;}
11 
12 namespace evd
13 {
14  class PNGArena;
15  class PNGServer;
16 
18  struct Result{
19  Result(EResult c) : code(c) {}
20  Result(EResult c, int r, int s, int e) : code(c), run(r), subrun(s), event(e) {}
22  };
23 
24  template<class T> class WebEVDServer
25  {
26  public:
27  WebEVDServer();
28  ~WebEVDServer();
29 
30  Result serve(const T& evt,
31  const geo::GeometryCore* geom,
32  const detinfo::DetectorPropertiesData& detprop);
33 
34  protected:
35  template<class PROD> using HandleT = typename T::template HandleT<std::vector<PROD>>;
36 
37  int EnsureListen();
38 
39  int fSock;
40  };
41 }
42 
43 #endif
Result(EResult c, int r, int s, int e)
Definition: WebEVDServer.h:20
typename art::Event::template HandleT< std::vector< PROD >> HandleT
Definition: WebEVDServer.h:35
const double e
LArSoft includes.
Definition: InfoTransfer.h:33
Result(EResult c)
Definition: WebEVDServer.h:19
CodeOutputInterface * code
General LArSoft Utilities.
Description of geometry of one entire detector.
TCEvent evt
Definition: DataStructs.cxx:7
LArSoft geometry interface.
Definition: ChannelGeo.h:16
static QCString * s
Definition: config.cpp:1042
Event finding and building.