LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SimpleChannelStatusService_service.cc
Go to the documentation of this file.
1 
9 // Our header
11 
12 // LArSoft libraries
15 
16 // Framework libraries
18 #include "fhiclcpp/ParameterSet.h"
20 
21 
22 
23 namespace lariov {
24 
25  //----------------------------------------------------------------------------
28  {
29  SimpleChannelStatus* simple_filter = new SimpleChannelStatus(pset);
30 
31  raw::ChannelID_t MaxChannel
33 
34  simple_filter->Setup(MaxChannel);
35 
36  fProvider.reset(simple_filter);
37 
38  mf::LogInfo("SimpleChannelStatusService") << "Loaded from configuration:"
39  << "\n - " << fProvider->BadChannels().size() << " bad channels"
40  << "\n - " << fProvider->NoisyChannels().size() << " noisy channels"
41  << "\n - largest channel ID: " << fProvider->MaxChannel()
42  << ", largest present: " << fProvider->MaxChannelPresent()
43  ;
44 
45  } // SimpleChannelStatusService::SimpleChannelStatusService()
46 
47 
48  //----------------------------------------------------------------------------
50  (lariov::SimpleChannelStatusService, lariov::ChannelStatusService)
51 
52 } // namespace filter
void Setup(raw::ChannelID_t MaxChannel, raw::ChannelID_t MaxGoodChannel)
Sets the service provider up.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Access the description of detector geometry.
Service providing information about the quality of channels.
SimpleChannelStatusService(fhicl::ParameterSet const &pset, art::ActivityRegistry &)
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:27
Service for channel quality info.
art framework interface to geometry description