LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lariov::SimpleChannelStatusService Class Reference

Service providing information about the quality of channels. More...

#include "SimpleChannelStatusService.h"

Inheritance diagram for lariov::SimpleChannelStatusService:

Public Member Functions

 SimpleChannelStatusService (fhicl::ParameterSet const &pset)
 Constructor: reads the channel IDs from the configuration. More...
 

Private Member Functions

virtual ChannelStatusProvider const & DoGetProvider () const override
 
virtual ChannelStatusProvider const * DoGetProviderPtr () const override
 
void UpdateChannelRange ()
 Update valid channel range. More...
 
void postBeginRun (art::Run const &run)
 React to a new run. More...
 

Private Attributes

std::unique_ptr< SimpleChannelStatusfProvider
 

Detailed Description

Service providing information about the quality of channels.

This is a simple implementation of the ChannelStatusService service interface. Channel lists are passed by FHiCL configuration. Note that there is no support for conditions varying with time.

Note
This implementation requires Geometry service

Configuration parameters

In addition to the parameters supported by filter::SimpleChannelStatus, this service supports:

  • service_type (string): must be set to "SimpleChannelStatusService"

Definition at line 47 of file SimpleChannelStatusService.h.

Constructor & Destructor Documentation

lariov::SimpleChannelStatusService::SimpleChannelStatusService ( fhicl::ParameterSet const &  pset)

Constructor: reads the channel IDs from the configuration.

Definition at line 22 of file SimpleChannelStatusService.cc.

References fProvider, and lariov::SimpleChannelStatus::Setup().

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()
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
std::unique_ptr< SimpleChannelStatus > fProvider

Member Function Documentation

virtual ChannelStatusProvider const& lariov::SimpleChannelStatusService::DoGetProvider ( ) const
inlineoverrideprivatevirtual

Definition at line 53 of file SimpleChannelStatusService.h.

54  {
55  return *DoGetProviderPtr();
56  }
virtual ChannelStatusProvider const * DoGetProviderPtr() const override
virtual ChannelStatusProvider const* lariov::SimpleChannelStatusService::DoGetProviderPtr ( ) const
inlineoverrideprivatevirtual

Definition at line 57 of file SimpleChannelStatusService.h.

58  {
59  return fProvider.get();
60  }
std::unique_ptr< SimpleChannelStatus > fProvider
void lariov::SimpleChannelStatusService::postBeginRun ( art::Run const &  run)
private

React to a new run.

void lariov::SimpleChannelStatusService::UpdateChannelRange ( )
private

Update valid channel range.

Member Data Documentation

std::unique_ptr<SimpleChannelStatus> lariov::SimpleChannelStatusService::fProvider
private

Definition at line 68 of file SimpleChannelStatusService.h.

Referenced by SimpleChannelStatusService().


The documentation for this class was generated from the following files: