16 #ifndef CHANNELSTATUSPROVIDER_H 17 #define CHANNELSTATUSPROVIDER_H 1 110 virtual bool Update(DBTimeStamp_t ts) = 0;
122 #endif // CHANNELSTATUSPROVIDER_H virtual bool IsBad(raw::ChannelID_t channel) const =0
Returns whether the specified channel is bad in the current run.
virtual ChannelSet_t BadChannels() const =0
Returns a copy of set of bad channel IDs for the current run.
An empty class that can't be copied nor moved.
std::set< raw::ChannelID_t > ChannelSet_t
Type of set of channel IDs.
Defines classes that can't be copied nor moved.
virtual bool IsNoisy(raw::ChannelID_t channel) const =0
Returns whether the specified channel is noisy in the current run.
virtual ChannelSet_t NoisyChannels() const =0
Returns a copy of set of noisy channel IDs for the current run.
ChannelStatusProvider()=default
Default constructor.
virtual ChannelSet_t GoodChannels() const =0
Returns a copy of set of good channel IDs for the current run.
virtual ~ChannelStatusProvider()=default
Virtual destructor; destructs nothing.
unsigned short Status_t
type representing channel status
ChannelStatusProvider & operator=(ChannelStatusProvider const &)=delete
static constexpr Status_t InvalidStatus
Value or invalid status.
virtual Status_t Status(raw::ChannelID_t channel) const
Returns a status integer with arbitrary meaning.
virtual bool IsGood(raw::ChannelID_t channel) const
Returns whether the specified channel is physical and good.
Class providing information about the quality of channels.
static int max(int a, int b)
Filters for channels, events, etc.
virtual bool IsPresent(raw::ChannelID_t channel) const =0
Returns whether the specified channel is physical and connected to wire.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
virtual bool HasStatus(raw::ChannelID_t channel) const
Returns whether the specified status is a valid one.
static bool IsValidStatus(Status_t status)
Returns whether the specified status is a valid one.