10 #ifndef SIMPLECHANNELFILTER_H 11 #define SIMPLECHANNELFILTER_H 1 18 namespace fhicl {
class ParameterSet; }
67 {
return IsPresent(channel) && !IsBad(channel) && !IsNoisy(channel); }
71 {
return fBadChannels.count(channel) > 0; }
75 {
return fNoisyChannels.count(channel) > 0; }
86 {
return fBadChannels; }
90 {
return fNoisyChannels; }
132 virtual bool Update(std::uint64_t) override { return true; }
149 void FillGoodChannels()
const;
157 #endif // SIMPLECHANNELFILTER_H raw::ChannelID_t MaxChannelPresent() const
Returns the ID of the largest present channel.
ChannelSet_t fNoisyChannels
set of noisy channels
std::set< raw::ChannelID_t > ChannelSet_t
Type of set of channel IDs.
virtual bool IsBad(raw::ChannelID_t channel) const override
Returns whether the specified channel is bad in the current run.
std::unique_ptr< ChannelSet_t > fGoodChannels
cached set of good channels (lazy evaluation)
raw::ChannelID_t MaxChannel() const
Returns the ID of the largest known channel.
raw::ChannelID_t fMaxPresentChannel
largest ID among present channels
ChannelSet_t fBadChannels
set of bad channels
virtual ChannelSet_t NoisyChannels() const override
Returns a copy of set of noisy channel IDs for the current run.
Class providing information about the quality of channels.
Filters for channels, events, etc.
Interface for experiment-specific channel quality info provider.
virtual ChannelSet_t BadChannels() const override
Returns a copy of set of bad channel IDs for the current run.
Class providing information about the quality of channels.
virtual bool IsNoisy(raw::ChannelID_t channel) const override
Returns whether the specified channel is noisy in the current run.
void Setup(raw::ChannelID_t MaxChannel)
Sets the service provider up.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
virtual bool IsGood(raw::ChannelID_t channel) const override
Returns whether the specified channel is physical and good.
raw::ChannelID_t fMaxChannel
largest ID among existing channels