#include "CookedFrameSource.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Run.h"
#include "lardataobj/RecoBase/Wire.h"
#include "TTimeStamp.h"
#include "WireCellIface/SimpleFrame.h"
#include "WireCellIface/SimpleTrace.h"
#include "WireCellUtil/NamedFactory.h"
Go to the source code of this file.
static SimpleTrace* make_trace |
( |
const recob::Wire & |
rw, |
|
|
unsigned int |
nticks_want |
|
) |
| |
|
static |
Definition at line 64 of file CookedFrameSource.cxx.
69 const std::vector<float> sig = rw.
Signal();
71 const float baseline = 0.0;
72 unsigned int nsamp = sig.size();
73 if (nticks_want > 0) { nsamp =
std::min(nsamp, nticks_want); }
78 auto strace =
new SimpleTrace(chid, tbin, nticks_want);
79 auto& q = strace->charge();
80 for (
unsigned int itick = 0; itick < nsamp; ++itick) {
81 q[itick] = sig[itick];
83 for (
unsigned int itick = nsamp; itick < nticks_want; ++itick) {
raw::ChannelID_t Channel() const
Returns the ID of the channel (or InvalidChannelID)
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition at line 56 of file CookedFrameSource.cxx.
60 return tts2.AsDouble() - tts1.AsDouble();
constexpr std::uint32_t timeLow() const
constexpr std::uint32_t timeHigh() const