#include <ChannelNoiseDB.h>
Definition at line 9 of file ChannelNoiseDB.h.
All IChannelNoiseDatabase interface is defered to parent.
Enumerator |
---|
kNothing |
|
kReplace |
|
kUnion |
|
Definition at line 36 of file ChannelNoiseDB.h.
wcls::ChannelNoiseDB::ChannelNoiseDB |
( |
| ) |
|
Definition at line 49 of file ChannelNoiseDB.cxx.
50 : OmniChannelNoiseDB()
OverridePolicy_t m_bad_channel_policy
OverridePolicy_t m_misconfig_channel_policy
wcls::ChannelNoiseDB::~ChannelNoiseDB |
( |
| ) |
|
|
virtual |
void wcls::ChannelNoiseDB::configure |
( |
const WireCell::Configuration & |
config | ) |
|
|
virtual |
IConfigurable.
Reimplemented in wcls::ChannelSelectorDB.
Definition at line 118 of file ChannelNoiseDB.cxx.
121 OmniChannelNoiseDB::configure(cfg);
123 auto jbc = cfg[
"bad_channel"];
128 auto jmc = cfg[
"misconfig_channel"];
133 m_fgstgs[0] = jmc[
"from"][
"gain"].asDouble();
134 m_fgstgs[1] = jmc[
"from"][
"shaping"].asDouble();
135 m_fgstgs[2] = jmc[
"to"][
"gain"].asDouble();
136 m_fgstgs[3] = jmc[
"to"][
"shaping"].asDouble();
OverridePolicy_t m_bad_channel_policy
OverridePolicy_t m_misconfig_channel_policy
OverridePolicy_t parse_policy(const WireCell::Configuration &jpol)
Definition at line 99 of file ChannelNoiseDB.cxx.
102 THROW(ValueError() << errmsg{
"ChannelNoiseDB: empty override policy given"});
105 std::string pol = jpol.asString();
107 if (pol ==
"union") {
111 if (pol ==
"replace") {
115 THROW(ValueError() << errmsg{
"ChannelNoiseDB: unknown override policy given: " + pol});
void wcls::ChannelNoiseDB::visit |
( |
art::Event & |
event | ) |
|
|
virtual |
IArtEventVisitor.
Implements wcls::IArtEventVisitor.
Reimplemented in wcls::ChannelSelectorDB.
Definition at line 60 of file ChannelNoiseDB.cxx.
69 auto const& gc = *lar::providerFrom<geo::Geometry>();
70 auto nchans = gc.Nchannels();
74 auto const& csvc = art::ServiceHandle<lariov::ChannelStatusService const>()->GetProvider();
76 std::vector<int> bad_channels;
77 for(
size_t ich=0; ich<nchans; ++ich) {
78 if (csvc.IsBad(ich)) {
79 bad_channels.push_back(ich);
82 OmniChannelNoiseDB::set_bad_channels(bad_channels);
86 const auto& esvc = art::ServiceHandle<lariov::ElectronicsCalibService const>()->GetProvider();
88 std::vector<int> mc_channels;
89 for(
size_t ich=0; ich<nchans; ++ich) {
90 if (esvc.ExtraInfo(ich).GetBoolData(
"is_misconfigured")) {
91 mc_channels.push_back(ich);
OverridePolicy_t m_bad_channel_policy
OverridePolicy_t m_misconfig_channel_policy
double wcls::ChannelNoiseDB::m_fgstgs[4] |
|
private |
The documentation for this class was generated from the following files: