All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
7 #include "art/Framework/Principal/Event.h"
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
Result(EResult c)
Definition: WebEVDServer.h:19
Description of geometry of one entire detector.
EResult code
Definition: WebEVDServer.h:21
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60
Result serve(const T &evt, const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData &detprop)
do i e
TCEvent evt
Definition: DataStructs.cxx:8
esac echo uname r