All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
WebEVDServer.cxx File Reference
#include "webevd/WebEVD/WebEVDServer.h"
#include "webevd/WebEVD/PNGArena.h"
#include "webevd/WebEVD/JSONFormatter.h"
#include "webevd/WebEVD/ThreadsafeGalleryEvent.h"
#include "webevd/WebEVD/TruthText.h"
#include <string>
#include "fhiclcpp/ParameterSet.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Event.h"
#include "gallery/Event.h"
#include "lardataobj/RecoBase/Hit.h"
#include "lardataobj/RecoBase/OpFlash.h"
#include "lardataobj/RecoBase/SpacePoint.h"
#include "lardataobj/RecoBase/Wire.h"
#include "lardataobj/RecoBase/Track.h"
#include "lardataobj/RecoBase/Vertex.h"
#include "lardataobj/Simulation/SimEnergyDeposit.h"
#include "nusimdata/SimulationBase/MCParticle.h"
#include "nusimdata/SimulationBase/MCTruth.h"
#include "lardataobj/RawData/RawDigit.h"
#include "lardataobj/RawData/raw.h"
#include "larcorealg/Geometry/GeometryCore.h"
#include "lardataalg/DetectorInfo/DetectorPropertiesData.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include "signal.h"
#include "zlib.h"
#include <thread>

Go to the source code of this file.

Classes

class  evd::ILazy
 
class  evd::LazyDigits< T >
 
class  evd::LazyWires< T >
 

Namespaces

 evd
 LArSoft includes.
 

Functions

bool std::operator< (const art::InputTag &a, const art::InputTag &b)
 
short evd::swap_byte_order (short x)
 
void evd::write_ok200 (int sock, const std::string content="text/html", bool gzip=false)
 
void evd::write_notfound404 (int sock)
 
void evd::write_unimp501 (int sock)
 
std::string evd::read_all (int sock)
 
EResult evd::err (const char *call)
 
Result evd::HandleCommand (std::string cmd, int sock)
 
std::string evd::FindWebDir ()
 
void evd::_HandleGetPNG (std::string doc, int sock, ILazy *digs, ILazy *wires)
 
void evd::gzip_buffer (unsigned char *src, int length, std::vector< unsigned char > &dest, int level)
 
void evd::write_compressed_buffer (unsigned char *src, int length, int sock, int level, const std::string &name)
 
void evd::write_compressed_file (const std::string &loc, int fd_out, int level)
 
bool evd::endswith (const std::string &s, const std::string &suffix)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const art::InputTag &t)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const geo::OpDetID &id)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const geo::PlaneID &plane)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const recob::Hit &hit)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const recob::Vertex &vtx)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const simb::MCTruth &mct)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const geo::Point_t &pt)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const sim::SimEnergyDeposit &edep)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const recob::SpacePoint &sp)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const recob::Track &track)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const simb::MCParticle &part)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const recob::OpFlash &flash)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const geo::CryostatGeo &cryo)
 
JSONFormatter & evd::operator<< (JSONFormatter &json, const geo::OpDetGeo &opdet)
 
JSONFormatter & evd::operator<< (JSONFormatter &os, const PNGView &v)
 
template<class TProd , class TEvt >
void evd::SerializeProduct (const TEvt &evt, JSONFormatter &json)
 
template<class TProd , class TEvt >
void evd::SerializeProductByLabel (const TEvt &evt, const std::string &in_label, JSONFormatter &json)
 
template<class T >
void evd::SerializeEventID (const T &evt, JSONFormatter &json)
 
void evd::SerializeEventID (const ThreadsafeGalleryEvent &evt, JSONFormatter &json)
 
void evd::SerializePlanes (const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData &detprop, JSONFormatter &json)
 
void evd::SerializeGeometry (const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData &detprop, JSONFormatter &json)
 
template<class T >
void evd::SerializeHits (const T &evt, const geo::GeometryCore *geom, JSONFormatter &json)
 
template<class T >
std::map< int, std::vector< T > > evd::ToSnippets (const std::vector< T > &adcs, T pedestal=0)
 
template<class T >
void evd::SerializeDigitTraces (const T &evt, const geo::GeometryCore *geom, JSONFormatter &json)
 
template<class T >
void evd::SerializeWireTraces (const T &evt, const geo::GeometryCore *geom, JSONFormatter &json)
 
template<class T >
void evd::_HandleGetJSON (std::string doc, int sock, const T *evt, const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData *detprop, ILazy *digs, ILazy *wires)
 
template<class T >
void evd::_HandleGet (std::string doc, int sock, const T *evt, ILazy *digs, ILazy *wires, const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData *detprop)