21 SigProc::NominalChannelResponse::~NominalChannelResponse()
29 cfg[
"shaping"] = m_shaping;
30 cfg[
"nbins"] = m_bins.nbins();
31 cfg[
"tmin"] = m_bins.min();
32 cfg[
"tmax"] = m_bins.max();
38 m_gain =
get(
cfg,
"gain",m_gain);
39 m_shaping =
get(
cfg,
"shaping",m_shaping);
40 int nbins =
get(
cfg,
"nbins", m_bins.nbins());
41 double tmin =
get(
cfg,
"tmin",m_bins.min());
42 double tmax =
get(
cfg,
"tmax",m_bins.max());
44 m_bins =
Binning(nbins, tmin, tmax);
57 Binning SigProc::NominalChannelResponse::channel_response_binning()
const
boost::error_info< struct tag_errmsg, std::string > errmsg
A functional object caching gain and shape.
WireCell::Waveform::realseq_t generate(const WireCell::Waveform::Domain &domain, int nsamples)
FIXME: eradicate Domain in favor of Binning.
WIRECELL_FACTORY(NominalChannelResponse, WireCell::SigProc::NominalChannelResponse, WireCell::IChannelResponse, WireCell::IConfigurable) using namespace WireCell
Thrown when a wrong value has been encountered.
Json::Value Configuration
def channel_ident(G, wire)