WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::DfpGraph Struct Reference

#include <DfpGraph.h>

Classes

struct  EdgeProperty
 
struct  VertexProperty
 

Public Types

typedef boost::adjacency_list< boost::vecS, boost::setS, boost::directedS, VertexProperty, EdgePropertyGraph
 
typedef boost::graph_traits< Graph >::vertex_descriptor Vertex
 
typedef boost::graph_traits< Graph >::edge_descriptor Edge
 
typedef std::map< VertexProperty, VertexVertexPropertyMap
 
typedef std::tuple< VertexProperty, VertexProperty, EdgePropertyConnection
 

Public Member Functions

Vertex get_add_vertex (const VertexProperty &tn)
 
void configure (const Configuration &cfg)
 
Edge connect (const std::string &tail_type, const std::string &tail_name, int tail_port, const std::string &head_type, const std::string &head_name, int head_port)
 Explicitly connect one edge. More...
 
std::vector< Connectionconnections ()
 

Public Attributes

Graph graph
 
VertexPropertyMap vertex_property_map
 

Detailed Description

Definition at line 13 of file DfpGraph.h.

Member Typedef Documentation

◆ Connection

Definition at line 50 of file DfpGraph.h.

◆ Edge

typedef boost::graph_traits<Graph>::edge_descriptor WireCell::DfpGraph::Edge

Definition at line 46 of file DfpGraph.h.

◆ Graph

typedef boost::adjacency_list<boost::vecS, boost::setS, boost::directedS, VertexProperty, EdgeProperty> WireCell::DfpGraph::Graph

Definition at line 43 of file DfpGraph.h.

◆ Vertex

typedef boost::graph_traits<Graph>::vertex_descriptor WireCell::DfpGraph::Vertex

Definition at line 45 of file DfpGraph.h.

◆ VertexPropertyMap

Definition at line 48 of file DfpGraph.h.

Member Function Documentation

◆ configure()

void DfpGraph::configure ( const Configuration cfg)

Configure with list of connection dictionaries like:

{ "tail": {"type":"TailType","name":"tailname", "port":0}, "head": {"type":"HeadType","name":"headname", "port":42} },

Only "type" key is required.

Definition at line 55 of file DfpGraph.cxx.

Here is the call graph for this function:

◆ connect()

DfpGraph::Edge DfpGraph::connect ( const std::string &  tail_type,
const std::string &  tail_name,
int  tail_port,
const std::string &  head_type,
const std::string &  head_name,
int  head_port 
)

Explicitly connect one edge.

Definition at line 16 of file DfpGraph.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connections()

std::vector< DfpGraph::Connection > DfpGraph::connections ( )

Definition at line 32 of file DfpGraph.cxx.

◆ get_add_vertex()

DfpGraph::Vertex DfpGraph::get_add_vertex ( const VertexProperty tn)

Definition at line 5 of file DfpGraph.cxx.

Here is the caller graph for this function:

Member Data Documentation

◆ graph

Graph WireCell::DfpGraph::graph

Definition at line 53 of file DfpGraph.h.

◆ vertex_property_map

VertexPropertyMap WireCell::DfpGraph::vertex_property_map

Definition at line 54 of file DfpGraph.h.


The documentation for this struct was generated from the following files: