FrameSplitter.cxx
Go to the documentation of this file.
2 
5 
6 #include <iostream>
7 
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 }
port_helper_type::template WrappedConst< std::shared_ptr >::type output_tuple_type
Definition: ISplitNode.h:46
Definition: type_traits.h:56
static ITrace::vector tagged_traces(IFrame::pointer frame, IFrame::tag_t tag)
Definition: Main.h:22
#define WIRECELL_FACTORY(NAME, CONCRETE,...)
Definition: NamedFactory.h:332
QTextStream & endl(QTextStream &s)