All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
CookedFrameSink.cxx File Reference
#include "CookedFrameSink.h"
#include "lardataobj/RecoBase/Wire.h"
#include "larcore/CoreUtils/ServiceUtil.h"
#include "larcore/Geometry/Geometry.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Core/EDProducer.h"
#include "WireCellIface/IFrame.h"
#include "WireCellIface/ITrace.h"
#include "WireCellUtil/NamedFactory.h"

Go to the source code of this file.

Functions

static ITrace::vector tagged_traces (IFrame::pointer frame, IFrame::tag_t tag)
 

Function Documentation

static ITrace::vector tagged_traces ( IFrame::pointer  frame,
IFrame::tag_t  tag 
)
static

Definition at line 73 of file CookedFrameSink.cxx.

74 {
75  ITrace::vector ret;
76  auto const& all_traces = frame->traces();
77  for (size_t index : frame->tagged_traces(tag)) {
78  ret.push_back(all_traces->at(index));
79  }
80  if (!ret.empty()) {
81  return ret;
82  }
83  auto ftags = frame->frame_tags();
84  if (std::find(ftags.begin(), ftags.end(), tag) == ftags.end()) {
85  return ret;
86  }
87  return *all_traces; // must make copy of shared pointers
88 }
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265