#include "RawFrameSource.h"
#include "art/Framework/Principal/Handle.h"
#include "lardataobj/RawData/RawDigit.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Run.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 raw::RawDigit & |
rd, |
|
|
unsigned int |
nticks_want |
|
) |
| |
|
static |
Definition at line 74 of file RawFrameSource.cxx.
81 unsigned int nadcs = adcv.size();
82 if (nticks_want > 0) {
83 if (nticks_want > nadcs) {
84 baseline = Waveform::most_frequent(adcv);
86 nadcs = std::min(nadcs, nticks_want);
92 auto strace =
new SimpleTrace(chid, tbin, nticks_want);
93 for (
unsigned int itick=0; itick < nadcs; ++ itick) {
94 strace->charge()[itick] = adcv[itick];
96 for (
unsigned int itick = nadcs; itick < nticks_want; ++itick) {
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
ChannelID_t Channel() const
DAQ channel this raw data was read from.
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
static double tdiff |
( |
const art::Timestamp & |
ts1, |
|
|
const art::Timestamp & |
ts2 |
|
) |
| |
|
static |
Definition at line 65 of file RawFrameSource.cxx.
67 TTimeStamp tts1(ts1.timeHigh(), ts1.timeLow());
68 TTimeStamp tts2(ts2.timeHigh(), ts2.timeLow());
69 return tts2.AsDouble() - tts1.AsDouble();