17 Gen::Misconfigure::~Misconfigure()
48 cfg[
"truncate"] =
true;
55 int n = cfg[
"nsamples"].asInt();
56 double tick = cfg[
"tick"].asDouble();
60 cfg[
"from"][
"shaping"].asDouble()).
generate(bins);
62 cfg[
"to"][
"shaping"].asDouble()).
generate(bins);
64 m_truncate = cfg[
"truncate"].asBool();
74 auto traces = in->traces();
76 std::cerr <<
"Gen::Misconfigure: warning no traces in frame for me\n";
80 size_t ntraces = traces->size();
82 for (
size_t ind=0; ind<ntraces; ++ind) {
83 auto trace = traces->at(ind);
86 m_to, m_from, m_truncate);
87 out_traces[ind] = std::make_shared<SimpleTrace>(
trace->channel(),
trace->tbin(), wave);
90 out = std::make_shared<SimpleFrame>(in->ident(), in->time(), out_traces, in->tick());
std::vector< pointer > vector
A functional object caching gain and shape.
std::shared_ptr< const IFrame > input_pointer
WireCell::Waveform::realseq_t generate(const WireCell::Waveform::Domain &domain, int nsamples)
FIXME: eradicate Domain in favor of Binning.
std::shared_ptr< const IFrame > output_pointer
Json::Value Configuration