#include <PerChannelResponse.h>
Definition at line 16 of file PerChannelResponse.h.
SigProc::PerChannelResponse::PerChannelResponse |
( |
const char * |
filename = "" | ) |
|
SigProc::PerChannelResponse::~PerChannelResponse |
( |
| ) |
|
|
virtual |
const Waveform::realseq_t & SigProc::PerChannelResponse::channel_response |
( |
int |
channel_ident | ) |
const |
|
virtual |
Provide the channel response for the given channel ID number. Note the binning of the returned waveform should be coordinated through configuration.
Implements WireCell::IChannelResponse.
Definition at line 66 of file PerChannelResponse.cxx.
69 if (it ==
m_cr.end()) {
boost::error_info< struct tag_errmsg, std::string > errmsg
std::unordered_map< int, Waveform::realseq_t > m_cr
std::string format(const std::string &form, TYPES...objs)
def channel_ident(G, wire)
Binning SigProc::PerChannelResponse::channel_response_binning |
( |
| ) |
const |
|
virtual |
Accept a configuration.
Implements WireCell::IConfigurable.
Definition at line 31 of file PerChannelResponse.cxx.
35 THROW(ValueError() <<
errmsg{
"must supply a PerChannelResponse filename"});
39 const double tick = top[
"tick"].asFloat();
40 const double t0 = top[
"t0"].asFloat();
41 auto jchannels = top[
"channels"];
42 if (jchannels.isNull()) {
46 for (
auto jchresp : jchannels) {
47 const int ch = jchresp[0].asInt();
48 auto jresp = jchresp[1];
49 const int nsamp = jresp.size();
54 for (
int ind=0; ind<nsamp; ++ind) {
55 resp[ind] = jresp[ind].asFloat();
59 m_bins = Binning(nsamp, t0, t0+nsamp*tick);
code to link reconstructed objects back to the MC truth information
boost::error_info< struct tag_errmsg, std::string > errmsg
std::unordered_map< int, Waveform::realseq_t > m_cr
Json::Value load(const std::string &filename, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
Binning WireCell::SigProc::PerChannelResponse::m_bins |
|
private |
std::string WireCell::SigProc::PerChannelResponse::m_filename |
|
private |
The documentation for this class was generated from the following files: