LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
SimpleChannelStatusService.cc
Go to the documentation of this file.
1 
9 // Our header
11 
12 // LArSoft libraries
15 
16 // Framework libraries
19 
20 namespace lariov {
21 
22  //----------------------------------------------------------------------------
24  {
25  raw::ChannelID_t MaxChannel =
27 
28  SimpleChannelStatus* simple_filter = new SimpleChannelStatus(pset);
29 
30  simple_filter->Setup(MaxChannel);
31 
32  fProvider.reset(simple_filter);
33 
34  mf::LogInfo("SimpleChannelStatusService")
35  << "Loaded from configuration:"
36  << "\n - " << fProvider->BadChannels().size() << " bad channels"
37  << "\n - " << fProvider->NoisyChannels().size() << " noisy channels"
38  << "\n - largest channel ID: " << fProvider->MaxChannel()
39  << ", largest present: " << fProvider->MaxChannelPresent();
40 
41  } // SimpleChannelStatusService::SimpleChannelStatusService()
42 
43 }
void Setup(raw::ChannelID_t MaxChannel, raw::ChannelID_t MaxGoodChannel)
Sets the service provider up.
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
Definition: AddMC.C:8
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