SimpleChannelStatusService_service.cc
Go to the documentation of this file.
1 /**
2  * @file SimpleChannelStatusService_service.cc
3  * @brief Service for channel quality info
4  * @author Gianluca Petrillo (petrillo@fnal.gov)
5  * @date November 24th, 2014
6  * @see SimpleChannelStatusService.h
7  */
8 
9 // Our header
11 
12 // LArSoft libraries
14 
15 // Framework libraries
19 
20 namespace lariov {
21 
22  //----------------------------------------------------------------------------
24  {
25  SimpleChannelStatus* simple_filter = new SimpleChannelStatus(pset);
26 
27  raw::ChannelID_t MaxChannel
29 
30  simple_filter->Setup(MaxChannel);
31 
32  fProvider.reset(simple_filter);
33 
34  mf::LogInfo("SimpleChannelStatusService") << "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 
41  } // SimpleChannelStatusService::SimpleChannelStatusService()
42 
43 
44  //----------------------------------------------------------------------------
47 
48 } // namespace filter
void Setup(raw::ChannelID_t MaxChannel, raw::ChannelID_t MaxGoodChannel)
Sets the service provider up.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
art framework interface to geometry description
Service providing information about the quality of channels.
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.
Service providing information about the quality of channels.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)