LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SimpleChannelStatusService.cc
Go to the documentation of this file.
1 
9 // Our header
11 
12 // LArSoft libraries
14 
15 // Framework libraries
18 
19 namespace lariov {
20 
21  //----------------------------------------------------------------------------
23  {
24  SimpleChannelStatus* simple_filter = new SimpleChannelStatus(pset);
25 
26  raw::ChannelID_t MaxChannel =
28 
29  simple_filter->Setup(MaxChannel);
30 
31  fProvider.reset(simple_filter);
32 
33  mf::LogInfo("SimpleChannelStatusService")
34  << "Loaded from configuration:"
35  << "\n - " << fProvider->BadChannels().size() << " bad channels"
36  << "\n - " << fProvider->NoisyChannels().size() << " noisy channels"
37  << "\n - largest channel ID: " << fProvider->MaxChannel()
38  << ", largest present: " << fProvider->MaxChannelPresent();
39 
40  } // SimpleChannelStatusService::SimpleChannelStatusService()
41 
42 }
void Setup(raw::ChannelID_t MaxChannel, raw::ChannelID_t MaxGoodChannel)
Sets the service provider up.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
SimpleChannelStatusService(fhicl::ParameterSet const &pset)
Constructor: reads the channel IDs from the configuration.
Filters for channels, events, etc.
Class providing information about the quality of channels.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
std::unique_ptr< SimpleChannelStatus > fProvider
Service for channel quality info.
art framework interface to geometry description