LArSoft  v10_06_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

ChannelStatusProvider const & DoGetProvider () const override
 
ChannelStatusProvider const * DoGetProviderPtr () const override
 

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 23 of file SimpleChannelStatusService.cc.

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

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

Member Function Documentation

ChannelStatusProvider const& lariov::SimpleChannelStatusService::DoGetProvider ( ) const
inlineoverrideprivate

Definition at line 53 of file SimpleChannelStatusService.h.

53 { return *DoGetProviderPtr(); }
ChannelStatusProvider const * DoGetProviderPtr() const override
ChannelStatusProvider const* lariov::SimpleChannelStatusService::DoGetProviderPtr ( ) const
inlineoverrideprivate

Definition at line 54 of file SimpleChannelStatusService.h.

54 { return fProvider.get(); }
std::unique_ptr< SimpleChannelStatus > fProvider

Member Data Documentation

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

Definition at line 56 of file SimpleChannelStatusService.h.

Referenced by SimpleChannelStatusService().


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