LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar::example::ShowerCalibrationGaloreScaleService Class Reference

A shower calibration art service returning a single factor. More...

#include "ShowerCalibrationGaloreScaleService.h"

Inheritance diagram for lar::example::ShowerCalibrationGaloreScaleService:
lar::ServiceProviderInterfaceWrapper< PROVIDER >

Public Types

using concrete_provider_type = ShowerCalibrationGaloreScale
 type of service provider implementation More...
 
using service_interface_type = ShowerCalibrationGaloreService
 art service interface class More...
 
using Parameters = art::ServiceTable< typename ShowerCalibrationGaloreScale::Config >
 Type of configuration parameter (for art description) More...
 
using provider_type = PROVIDER
 type of the service provider More...
 

Public Member Functions

 ShowerCalibrationGaloreScaleService (Parameters const &config, art::ActivityRegistry &)
 Constructor (using a configuration table) More...
 
provider_type const * provider () const
 Returns a constant pointer to the service provider interface. More...
 

Private Member Functions

virtual ShowerCalibrationGalore const * do_provider () const override
 Returns a constant pointer to the service provider. More...
 

Private Attributes

std::unique_ptr< ShowerCalibrationGaloreScaleprov
 service provider More...
 

Detailed Description

A shower calibration art service returning a single factor.

See also
ShowerCalibrationGalore example overview

See the ShowerCalibrationGaloreScale provider documentation for configuration instructions and implementation details.

See the ShowerCalibrationGalore provider class documentation for an explanation of the interface.

Use this service and its provider by its interface only:

lar::example::ShowerCalibrationGalore const* calib
  = lar::providerFrom<lar::example::ShowerCalibrationGaloreService>();

The code does not need to mention, nor to include, nor to link to ShowerCalibrationGaloreScaleService service.

Configuration parameters

In addition to the service provider:

  • service_provider must be set to "ShowerCalibrationGaloreScaleService" in order to tell art to load this implementation.

Definition at line 61 of file ShowerCalibrationGaloreScaleService.h.

Member Typedef Documentation

Type of configuration parameter (for art description)

Definition at line 74 of file ShowerCalibrationGaloreScaleService.h.

template<class PROVIDER >
using lar::ServiceProviderInterfaceWrapper< PROVIDER >::provider_type = PROVIDER
inherited

type of the service provider

Definition at line 137 of file ServiceProviderWrappers.h.

Constructor & Destructor Documentation

lar::example::ShowerCalibrationGaloreScaleService::ShowerCalibrationGaloreScaleService ( Parameters const &  config,
art::ActivityRegistry  
)
inline

Constructor (using a configuration table)

Definition at line 79 of file ShowerCalibrationGaloreScaleService.h.

80  : prov(std::make_unique<ShowerCalibrationGaloreScale>(config()))
81  {}
std::unique_ptr< ShowerCalibrationGaloreScale > prov
service provider

Member Function Documentation

virtual ShowerCalibrationGalore const* lar::example::ShowerCalibrationGaloreScaleService::do_provider ( ) const
inlineoverrideprivatevirtual

Returns a constant pointer to the service provider.

Implements lar::ServiceProviderInterfaceWrapper< PROVIDER >.

Definition at line 88 of file ShowerCalibrationGaloreScaleService.h.

References DECLARE_ART_SERVICE_INTERFACE_IMPL.

89  { return prov.get(); }
std::unique_ptr< ShowerCalibrationGaloreScale > prov
service provider
template<class PROVIDER >
provider_type const* lar::ServiceProviderInterfaceWrapper< PROVIDER >::provider ( ) const
inlineinherited

Returns a constant pointer to the service provider interface.

Definition at line 144 of file ServiceProviderWrappers.h.

144 { return do_provider(); }
virtual provider_type const * do_provider() const =0
Implementation of the provider() function, to be overridden.

Member Data Documentation

std::unique_ptr<ShowerCalibrationGaloreScale> lar::example::ShowerCalibrationGaloreScaleService::prov
private

service provider

Definition at line 85 of file ShowerCalibrationGaloreScaleService.h.


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