Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
sigproc
src
FrameSplitter.cxx
Go to the documentation of this file.
1
#include "
WireCellSigProc/FrameSplitter.h
"
2
3
#include "
WireCellUtil/NamedFactory.h
"
4
#include "
WireCellIface/FrameTools.h
"
5
6
#include <iostream>
7
8
WIRECELL_FACTORY
(FrameSplitter,
WireCell::SigProc::FrameSplitter
,
9
WireCell::IFrameSplitter
)
10
11
12
using namespace
WireCell
::SigProc;
13
14
FrameSplitter::FrameSplitter()
15
{
16
}
17
FrameSplitter::~FrameSplitter()
18
{
19
}
20
21
bool
FrameSplitter::operator()(
const
input_pointer
& in,
output_tuple_type
& out)
22
{
23
if
(!in) {
24
std::cerr <<
"FrameSplitter: passing on EOS\n"
;
25
}
26
else
{
27
std::cerr <<
"FrameSplitter: passing on frame: "
<<in->ident()<<
":"
;
28
for
(
auto
tag
: in->trace_tags()) {
29
auto
tt
=
FrameTools::tagged_traces
(in,
tag
);
30
std::cerr <<
" "
<<
tag
<<
"["
<<
tt
.size() <<
"]"
;
31
}
32
std::cerr <<
std::endl
;
33
}
34
35
get<0>(out) = in;
36
get<1>(out) = in;
37
38
return
true
;
39
}
WireCell::ISplitNode< IFrame, std::tuple< IFrame, IFrame > >::output_tuple_type
port_helper_type::template WrappedConst< std::shared_ptr >::type output_tuple_type
Definition:
ISplitNode.h:46
NamedFactory.h
FrameSplitter.h
tag
Definition:
ProxyBaseTest_module.cc:152
WireCell::ISplitNode< IFrame, std::tuple< IFrame, IFrame > >::input_pointer
std::shared_ptr< const IFrame > input_pointer
Definition:
ISplitNode.h:51
FrameTools.h
tt
Definition:
type_traits.h:56
tagged_traces
static ITrace::vector tagged_traces(IFrame::pointer frame, IFrame::tag_t tag)
Definition:
CookedFrameSink.cxx:74
WireCell::IFrameSplitter
Definition:
IFrameSplitter.h:9
WireCell::SigProc::FrameSplitter
Definition:
FrameSplitter.h:12
WireCell
Definition:
Main.h:22
WIRECELL_FACTORY
#define WIRECELL_FACTORY(NAME, CONCRETE,...)
Definition:
NamedFactory.h:332
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11