LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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, art::ActivityRegistry &)
 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 48 of file SimpleChannelStatusService.h.

Constructor & Destructor Documentation

lariov::SimpleChannelStatusService::SimpleChannelStatusService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry  
)

Constructor: reads the channel IDs from the configuration.

Definition at line 27 of file SimpleChannelStatusService_service.cc.

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

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

Member Function Documentation

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

Definition at line 58 of file SimpleChannelStatusService.h.

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

Definition at line 60 of file SimpleChannelStatusService.h.

61  { return fProvider.get(); }
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 69 of file SimpleChannelStatusService.h.


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