21 #include "messagefacility/MessageLogger/MessageLogger.h"
22 #include "art/Framework/Services/Registry/ServiceHandle.h"
23 #include "canvas/Utilities/Exception.h"
45 provider(art::ServiceHandle<lariov::ChannelStatusService
const>()->GetProvider())
48 MF_LOG_ERROR(
"ChannelFilter") <<
"ChannelFilter is now deprecated."
49 " Replace it with ChannelStatusService";
52 catch (art::Exception&
e) {
53 if (e.categoryCode() == art::errors::ServiceNotFound) {
54 MF_LOG_SYSTEM(
"ChannelFilter") <<
55 "Failed to obtain an instance of ChannelStatusService service;"
56 " you should update your configuration, *and* update the code using"
57 " ChannelFilter, that is deprecated."
58 " An example are in ChannelFilter class documentation"
66 return provider.IsBad(channel);
71 return provider.IsNoisy(channel);
76 return provider.BadChannels();
81 return provider.NoisyChannels();
88 if (provider.IsGood(channel))
return GOOD;
89 else if (!provider.IsPresent(channel))
return NOTPHYSICAL;
90 else if (provider.IsBad(channel))
return DEAD;
91 else if (provider.IsNoisy(channel))
return NOISY;
bool NoisyChannel(uint32_t channel) const
ChannelStatus GetChannelStatus(uint32_t channel) const
bool BadChannel(uint32_t channel) const
std::set< uint32_t > SetOfNoisyChannels() const
Interface for experiment-specific channel quality info provider.
Interface for experiment-specific service for channel quality info.
std::set< uint32_t > SetOfBadChannels() const