20 #include "canvas/Persistency/Common/FindManyP.h" 63 produces< std::vector<cvn::GCNGraph> >();
89 std::unique_ptr<std::vector<cvn::GCNGraph>> graphs(
new std::vector<cvn::GCNGraph>);
91 if(pixelMaps->size() > 0){
102 std::cout <<
"Built graph with " <<
g.GetNumberOfNodes() <<
" nodes" <<
std::endl;
103 for(
unsigned int n = 0;
n <
g.GetNumberOfNodes(); ++
n){
108 graphs->push_back(
g);
static constexpr double g
EDProducer(fhicl::ParameterSet const &pset)
GCNGraph, basic input for the GCN.
Utility class for truth labels.
std::string fPixelMapLabel
Module label for input space points.
float fNeighbourPixels
Radius for calculating number of neighbours.
GCNGraphMaker2D(fhicl::ParameterSet const &pset)
float fChargeThreshold
Minimum charge to created a graph node from a pixel.
#define DEFINE_ART_MODULE(klass)
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Declaration of signal hit object.
void AddFeature(float feature)
Add a node feature.
std::vector< cvn::GCNGraph > ExtractGraphsFromPixelMap(const cvn::PixelMap &pm, const float chargeThreshold) const
Convert a pixel map into three 2D GCNGraph objects.
Utilities for calculating feature values for the GCN.
void produce(art::Event &evt)
auto const & get(AssnsNode< L, R, D > const &r)
std::map< unsigned int, unsigned int > Get2DGraphNeighbourMap(const cvn::GCNGraph &g, const unsigned int npixel) const
Get the neighbours map <graph node, neighbours> for the three 2D graph in 2 box (npixel+1) around the...
QTextStream & endl(QTextStream &s)
Class containing some utility functions for all things CVN.