#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 "WireCellAux/SimpleFrame.h"
#include "WireCellAux/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 66 of file CookedFrameSource.cxx.
71 const std::vector<float> sig = rw.
Signal();
74 unsigned int nsamp = sig.size();
75 if (nticks_want > 0) { nsamp = std::min(nsamp, nticks_want); }
80 auto strace =
new SimpleTrace(chid, tbin, nticks_want);
81 auto&
q = strace->charge();
82 for (
unsigned int itick = 0; itick < nsamp; ++itick) {
83 q[itick] = sig[itick];
85 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.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
static double tdiff |
( |
const art::Timestamp & |
ts1, |
|
|
const art::Timestamp & |
ts2 |
|
) |
| |
|
static |
Definition at line 58 of file CookedFrameSource.cxx.
60 TTimeStamp tts1(ts1.timeHigh(), ts1.timeLow());
61 TTimeStamp tts2(ts2.timeHigh(), ts2.timeLow());
62 return tts2.AsDouble() - tts1.AsDouble();