3 #include "fhiclcpp/ParameterSet.h"
4 #include "art/Framework/Core/ModuleMacros.h"
5 #include "art/Framework/Core/EDAnalyzer.h"
7 #include "art/Framework/Services/Registry/ServiceHandle.h"
20 explicit WebEVD(
const fhicl::ParameterSet& pset);
28 art::ServiceHandle<geo::Geometry>
fGeom;
41 std::cout <<
"Ran out of events. Goodbye!" << std::endl;
46 auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService>()->DataFor(evt);
51 std::cout <<
"Next clicked in GUI. Going to next event" << std::endl;
56 std::cout <<
"Prev clicked in GUI. Going to previous event" << std::endl;
58 art::ServiceHandle<InputSeeker>()->seekToEvent(-2);
63 std::cout <<
"Quit clicked in GUI. Goodbye!" << std::endl;
67 std::cout <<
"Error. Quitting" << std::endl;
72 art::ServiceHandle<InputSeeker>()->seekToEvent(art::EventID(res.
run,
78 std::cout <<
"Unhandled result code " << res.
code <<
"!" << std::endl;
evd::WebEVDServer< art::Event > fServer
art::ServiceHandle< geo::Geometry > fGeom
Result serve(const T &evt, const geo::GeometryCore *geom, const detinfo::DetectorPropertiesData &detprop)
WebEVD(const fhicl::ParameterSet &pset)
void analyze(const art::Event &evt) override
art framework interface to geometry description
BEGIN_PROLOG could also be cout