#include <RawFrameSource.h>
Definition at line 22 of file RawFrameSource.h.
RawFrameSource::RawFrameSource |
( |
| ) |
|
RawFrameSource::~RawFrameSource |
( |
| ) |
|
|
virtual |
void RawFrameSource::configure |
( |
const WireCell::Configuration & |
config | ) |
|
|
virtual |
Definition at line 44 of file RawFrameSource.cxx.
46 const std::string art_tag = cfg[
"art_tag"].asString();
47 if (art_tag.empty()) {
48 THROW(ValueError() << errmsg{
"WireCell::RawFrameSource requires a source_label"});
52 m_tick = cfg[
"tick"].asDouble();
53 for (
auto jtag : cfg[
"frame_tags"]) {
std::vector< std::string > m_frame_tags
WireCell::Configuration RawFrameSource::default_configuration |
( |
| ) |
const |
|
virtual |
IConfigurable.
Definition at line 34 of file RawFrameSource.cxx.
39 cfg[
"frame_tags"][0] =
"orig";
static constexpr double us
bool RawFrameSource::operator() |
( |
WireCell::IFrame::pointer & |
frame | ) |
|
|
virtual |
IFrameSource.
Definition at line 145 of file RawFrameSource.cxx.
std::deque< WireCell::IFrame::pointer > m_frames
IArtEventVisitor.
Implements wcls::IArtEventVisitor.
Definition at line 100 of file RawFrameSource.cxx.
105 bool okay =
event.getByLabel(
m_inputTag, rdvh);
109 THROW(RuntimeError() << errmsg{msg});
111 else if (rdvh->size() == 0)
return;
113 const std::vector<raw::RawDigit>& rdv(*rdvh);
114 const size_t nchannels = rdv.size();
115 std::cerr <<
"RawFrameSource: got " << nchannels <<
" raw::RawDigit objects\n";
118 for (
size_t ind=0; ind<nchannels; ++ind) {
119 auto const& rd = rdv.at(ind);
124 <<
"\tinput nticks=" << rd.ADCs().size() <<
" setting to " <<
m_nticks 129 <<
"\tinput nticks=" << rd.ADCs().size() <<
" keeping as is" 136 auto sframe =
new WireCell::SimpleFrame(event.
event(), time, traces,
tick);
139 sframe->tag_frame(
tag);
141 m_frames.push_back(WireCell::IFrame::pointer(sframe));
EventNumber_t event() const
static SimpleTrace * make_trace(const raw::RawDigit &rd, unsigned int nticks_want)
void msg(const char *fmt,...)
std::deque< WireCell::IFrame::pointer > m_frames
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
Run const & getRun() const
std::vector< std::string > m_frame_tags
static double tdiff(const art::Timestamp &ts1, const art::Timestamp &ts2)
Timestamp const & beginTime() const
QTextStream & endl(QTextStream &s)
std::deque<WireCell::IFrame::pointer> wcls::RawFrameSource::m_frames |
|
private |
int wcls::RawFrameSource::m_nticks |
|
private |
double wcls::RawFrameSource::m_tick |
|
private |
The documentation for this class was generated from the following files: