#include <ChannelSelectorDB.h>
Definition at line 9 of file ChannelSelectorDB.h.
wcls::ChannelSelectorDB::ChannelSelectorDB |
( |
| ) |
|
wcls::ChannelSelectorDB::~ChannelSelectorDB |
( |
| ) |
|
|
virtual |
virtual channel_group_t wcls::ChannelSelectorDB::bad_channels |
( |
| ) |
const |
|
inlinevirtual |
void wcls::ChannelSelectorDB::configure |
( |
const WireCell::Configuration & |
config | ) |
|
|
virtual |
IConfigurable.
Reimplemented from wcls::ChannelNoiseDB.
Definition at line 64 of file ChannelSelectorDB.cxx.
66 m_type = get<std::string>(cfg,
"type",
"misconfigured");
69 "Channel type \"%s\" cannot be identified.",
m_type)});
static std::string format(PyObject *obj, unsigned int pos, unsigned int indent, unsigned int maxlen, unsigned int depth)
virtual channel_group_t wcls::ChannelSelectorDB::miscfg_channels |
( |
| ) |
const |
|
inlinevirtual |
void wcls::ChannelSelectorDB::visit |
( |
art::Event & |
event | ) |
|
|
virtual |
IArtEventVisitor.
Reimplemented from wcls::ChannelNoiseDB.
Definition at line 30 of file ChannelSelectorDB.cxx.
32 std::cerr <<
"ChannelSelectorDB art::Event visit!\n";
37 auto const& gc = *lar::providerFrom<geo::Geometry>();
38 auto nchans = gc.Nchannels();
42 auto const& csvc = art::ServiceHandle<lariov::ChannelStatusService const>()->GetProvider();
44 for(
size_t ich=0; ich<nchans; ++ich) {
45 if (csvc.IsBad(ich)) {
51 if (
m_type ==
"misconfigured") {
52 const auto& esvc = art::ServiceHandle<lariov::ElectronicsCalibService const>()->GetProvider();
54 std::vector<int> mc_channels;
55 for(
size_t ich=0; ich<nchans; ++ich) {
56 if (esvc.ExtraInfo(ich).GetBoolData(
"is_misconfigured")) {
BEGIN_PROLOG could also be cerr
channel_group_t m_bad_channels
channel_group_t m_miscfg_channels
channel_group_t wcls::ChannelSelectorDB::m_bad_channels |
|
private |
channel_group_t wcls::ChannelSelectorDB::m_miscfg_channels |
|
private |
std::string wcls::ChannelSelectorDB::m_type |
|
private |
The documentation for this class was generated from the following files: