9 #ifndef SIMPLECHANNELFILTER_H 10 #define SIMPLECHANNELFILTER_H 1 14 #include "larevt/CalibrationDBI/Interface/ChannelStatusProvider.h" 67 return IsPresent(channel) && !IsBad(channel) && !IsNoisy(channel);
73 return fBadChannels.count(channel) > 0;
79 return fNoisyChannels.count(channel) > 0;
147 void FillGoodChannels()
const;
153 #endif // SIMPLECHANNELFILTER_H raw::ChannelID_t MaxChannelPresent() const
Returns the ID of the largest present channel.
ChannelSet_t fNoisyChannels
set of noisy channels
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.
lariov::ChannelStatusProvider::ChannelSet_t ChannelSet_t
Filters for channels, events, etc.
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