Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
img
src
BlobReframer.cxx
Go to the documentation of this file.
1
/*
2
This starts by finding the set of all frames accessible via slices
3
in a cluster that have at least one blob.
4
5
6
7
*/
8
9
#include "
WireCellImg/BlobReframer.h
"
10
#include "
WireCellUtil/NamedFactory.h
"
11
12
13
WIRECELL_FACTORY
(BlobReframer,
WireCell::Img::BlobReframer
,
14
WireCell::IClusterFramer
,
WireCell::IConfigurable
)
15
16
17
using namespace
WireCell
;
18
19
Img::
BlobReframer
::
BlobReframer
()
20
{
21
}
22
23
Img::BlobReframer::~BlobReframer()
24
{
25
}
26
27
void
Img::BlobReframer::configure
(
const
WireCell::Configuration
&
cfg
)
28
{
29
}
30
31
WireCell::Configuration
Img::BlobReframer::default_configuration()
const
32
{
33
Configuration
cfg
;
34
return
cfg
;
35
}
36
37
// cluster goes in, frame goes out.
38
bool
Img::BlobReframer::operator()(
const
input_pointer
& in,
output_pointer
& out)
39
{
40
out =
nullptr
;
41
if
(!in) {
42
return
true
;
// EOS
43
}
44
45
cluster_indexed_graph_t
grind(in->graph());
46
47
for
(
auto
iblob : oftype<IBlob::pointer>(grind)) {
48
// to be continued.
49
}
50
51
52
return
true
;
53
}
54
WireCell::IConfigurable
Definition:
IConfigurable.h:13
NamedFactory.h
WireCell::Img::BlobReframer
Definition:
BlobReframer.h:20
dbjson.cfg
cfg
Definition:
dbjson.py:29
WIRECELL_FACTORY
WIRECELL_FACTORY(BlobReframer, WireCell::Img::BlobReframer, WireCell::IClusterFramer, WireCell::IConfigurable) using namespace WireCell
WireCell::IFunctionNode< ICluster, IFrame >::input_pointer
std::shared_ptr< const ICluster > input_pointer
Definition:
IFunctionNode.h:39
cuda.configure
def configure(cfg)
Definition:
cuda.py:34
WireCell::IClusterFramer
Definition:
IClusterFramer.h:12
WireCell::IndexedGraph< cluster_node_t >
WireCell::IFunctionNode< ICluster, IFrame >::output_pointer
std::shared_ptr< const IFrame > output_pointer
Definition:
IFunctionNode.h:40
BlobReframer.h
WireCell
Definition:
Main.h:22
WireCell::Configuration
Json::Value Configuration
Definition:
Configuration.h:50
Generated by
1.8.11