3 #ifndef DETVAR_RANDOMCHANNELSTATUS_SERVICE 4 #define DETVAR_RANDOMCHANNELSTATUS_SERVICE 8 namespace geo{
class GeometryCore;}
17 return fBadChans.count(chan);
49 void MarkChansBad(
unsigned int target);
51 void MarkAPAsBad(
unsigned int target);
53 void MarkAPASidesBad(
unsigned int target);
57 void MarkBoardBad(
int board,
58 const std::vector<std::vector<raw::ChannelID_t>>& chans);
60 void MarkChipBad(
int board,
int chip,
62 const std::vector<std::vector<raw::ChannelID_t>>& chans);
bool IsNoisy(raw::ChannelID_t) const override
Returns whether the specified channel is noisy in the current run.
std::set< raw::ChannelID_t > NoisyChannels() const override
Returns a copy of set of noisy channel IDs for the current run.
bool IsBad(raw::ChannelID_t chan) const override
Returns whether the specified channel is bad in the current run.
const lariov::ChannelStatusProvider & DoGetProvider() const override
Returns a reference to the service provider.
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
bool IsPresent(raw::ChannelID_t) const override
Returns whether the specified channel is physical and connected to wire.
std::set< raw::ChannelID_t > fGoodChans
RandomChannelStatusService(const fhicl::ParameterSet &pset)
std::set< raw::ChannelID_t > GoodChannels() const override
Returns a copy of set of good channel IDs for the current run.
const lariov::ChannelStatusProvider * DoGetProviderPtr() const override
Returns a pointer to the service provider.
Class providing information about the quality of channels.
Description of geometry of one entire detector.
RandomChannelStatusProvider fProvider
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Interface for experiment-specific service for channel quality info.
std::set< raw::ChannelID_t > BadChannels() const override
Returns a copy of set of bad channel IDs for the current run.
LArSoft geometry interface.
Service providing information about the quality of channels.