16 #include "art/Framework/Services/Registry/ServiceHandle.h"
17 #include "messagefacility/MessageLogger/MessageLogger.h"
27 =
raw::ChannelID_t(art::ServiceHandle<geo::Geometry const>()->Nchannels() - 1);
29 simple_filter->
Setup(MaxChannel);
33 mf::LogInfo(
"SimpleChannelStatusService") <<
"Loaded from configuration:"
34 <<
"\n - " <<
fProvider->BadChannels().size() <<
" bad channels"
35 <<
"\n - " <<
fProvider->NoisyChannels().size() <<
" noisy channels"
36 <<
"\n - largest channel ID: " <<
fProvider->MaxChannel()
37 <<
", largest present: " <<
fProvider->MaxChannelPresent()
void Setup(raw::ChannelID_t MaxChannel, raw::ChannelID_t MaxGoodChannel)
Sets the service provider up.
SimpleChannelStatusService(fhicl::ParameterSet const &pset)
Constructor: reads the channel IDs from the configuration.
Class providing information about the quality of channels.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
std::unique_ptr< SimpleChannelStatus > fProvider
Service for channel quality info.
art framework interface to geometry description