21 Gen::SilentNoise::~SilentNoise()
27 m_noutputs =
get(
cfg,
"noutputs",0);
28 m_nchannels =
get(
cfg,
"nchannels",0);
29 m_traces_tag = cfg[
"traces_tag"].asString();
37 cfg[
"traces_tag"] =
"";
45 if (m_noutputs and m_count == m_noutputs) {
49 if (m_noutputs and m_count >= m_noutputs) {
54 for (
int ind=0; ind<m_nchannels; ++ind) {
55 traces[ind] = std::make_shared<SimpleTrace>(ind, 0, 0);
58 if (m_traces_tag !=
"") {
60 std::iota(tl.begin(), tl.end(), 0);
61 sfout->tag_traces(m_traces_tag, tl);
std::vector< pointer > vector
std::shared_ptr< const IFrame > output_pointer
Json::Value Configuration
const GenericPointer< typename T::ValueType > & pointer
WIRECELL_FACTORY(SilentNoise, WireCell::Gen::SilentNoise, WireCell::IFrameSource, WireCell::IConfigurable) using namespace WireCell
std::vector< size_t > trace_list_t