12 using namespace WireCell::SigProc;
18 DBChannelSelector::~DBChannelSelector()
27 cfg[
"type"] =
"misconfigured";
31 cfg[
"channelDB"] =
"";
38 m_type = get<std::string>(
cfg,
"type",
"misconfigured");
41 auto jcndb = cfg[
"channelDB"];
43 m_db = Factory::find_tn<IChannelNoiseDatabase>(jcndb.asString());
44 std::cerr <<
"DBChannelSelector: using channel database object: " 45 <<
" \"" << jcndb.asString() <<
"\" type: \"" <<
m_type <<
"\"\n";
boost::error_info< struct tag_errmsg, std::string > errmsg
virtual bool operator()(const input_pointer &in, output_pointer &out)
IFrameFilter interface.
WIRECELL_FACTORY(DBChannelSelector, WireCell::SigProc::DBChannelSelector, WireCell::IFrameFilter, WireCell::IConfigurable) using namespace WireCell
std::shared_ptr< const IFrame > input_pointer
std::shared_ptr< const IFrame > output_pointer
Thrown when a wrong value has been encountered.
virtual void set_channels(const std::vector< int > &channels)
Json::Value Configuration
WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
void configure(const WireCell::Configuration &config)
IConfigurable interface.
WireCell::IChannelNoiseDatabase::pointer m_db
bool operator()(const input_pointer &in, output_pointer &out)
IFrameFilter interface.