18 jpv[
"values"][
"charge"] = charge;
26 auto pt = coords.
ray_crossing(corner.first, corner.second);
28 jcorner.append(pt.y());
29 jcorner.append(pt.z());
36 for (
const auto&
corner : corners) {
43 double x,
double charge=1.0,
int slice = 1,
int number=0) {
46 jblob[
"values"][
"charge"] = charge;
47 jblob[
"values"][
"slice"] = slice;
48 jblob[
"values"][
"number"] = number;
56 ofstream fstr(filename);
void dump(const std::string &filename)
const WireCell::RayGrid::Coordinates & coords
Json::Value convert(const WireCell::RayGrid::crossings_t &corners, double x)
void operator()(const Point &pt, double charge=1.0)
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Vector ray_crossing(const coordinate_t &one, const coordinate_t &two) const
void operator()(const WireCell::RayGrid::Blob &blob, double x, double charge=1.0, int slice=1, int number=0)
std::vector< crossing_t > crossings_t
std::pair< coordinate_t, coordinate_t > crossing_t
JsonEvent(const WireCell::RayGrid::Coordinates &coords)
Json::Value convert(const WireCell::RayGrid::crossing_t &corner, double x)
const crossings_t & corners() const