#include "WireCellImg/ClusterSink.h"
#include <boost/graph/graphviz.hpp>
#include "WireCellUtil/String.h"
#include "WireCellUtil/NamedFactory.h"
#include "WireCellUtil/Logging.h"
#include <fstream>
#include <sstream>
#include <functional>
#include <unordered_set>
Go to the source code of this file.
static std::string asstring |
( |
const cluster_node_t & |
n | ) |
|
|
static |
Definition at line 75 of file ClusterSink.cxx.
80 scalar_stringer<IChannel>,
81 scalar_stringer<IWire>,
82 scalar_stringer<IBlob>,
83 scalar_stringer<ISlice>,
84 vector_stringer<IChannel>
86 const size_t ind =
n.ptr.index();
static std::string size_stringer(const cluster_node_t &n)
std::vector< std::function< std::string(const cluster_node_t &ptr) > > stringers_t
template<typename Type >
std::string scalar_stringer |
( |
const cluster_node_t & |
n | ) |
|
Definition at line 59 of file ClusterSink.cxx.
61 typename Type::pointer sp = std::get<typename Type::pointer>(
n.ptr);
63 ss <<
n.code() <<
":" << sp->ident();
const GenericPointer< typename T::ValueType > & pointer
static std::string size_stringer |
( |
const cluster_node_t & |
n | ) |
|
|
static |
Definition at line 50 of file ClusterSink.cxx.
52 size_t sp = std::get<size_t>(
n.ptr);
54 ss <<
n.code() <<
":" << sp;
template<typename Type >
std::string vector_stringer |
( |
const cluster_node_t & |
n | ) |
|
Definition at line 67 of file ClusterSink.cxx.
69 typename Type::shared_vector sv = std::get<typename Type::shared_vector>(
n.ptr);
71 ss <<
n.code() <<
"#" << sv->size();