16 #ifndef CHANNELSTATUSPROVIDER_H
17 #define CHANNELSTATUSPROVIDER_H 1
60 = std::numeric_limits<Status_t>::max();
110 virtual bool Update(DBTimeStamp_t ts) = 0;
122 #endif // CHANNELSTATUSPROVIDER_H
An empty class that can't be copied nor moved.
std::set< raw::ChannelID_t > ChannelSet_t
Type of set of channel IDs.
virtual bool IsBad(raw::ChannelID_t channel) const =0
Returns whether the specified channel is bad in the current run.
Defines classes that can't be copied nor moved.
ChannelStatusProvider()=default
Default constructor.
virtual ChannelSet_t BadChannels() const =0
Returns a copy of set of bad channel IDs for the current run.
virtual ~ChannelStatusProvider()=default
Virtual destructor; destructs nothing.
unsigned short Status_t
type representing channel status
virtual bool IsPresent(raw::ChannelID_t channel) const =0
Returns whether the specified channel is physical and connected to wire.
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.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
virtual bool IsNoisy(raw::ChannelID_t channel) const =0
Returns whether the specified channel is noisy in the current run.
virtual ChannelSet_t GoodChannels() const =0
Returns a copy of set of good channel IDs for the current run.
virtual bool HasStatus(raw::ChannelID_t channel) const
Returns whether the specified status is a valid one.
virtual ChannelSet_t NoisyChannels() const =0
Returns a copy of set of noisy channel IDs for the current run.
static bool IsValidStatus(Status_t status)
Returns whether the specified status is a valid one.