Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
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...
 
- Public Types inherited from lar::ServiceProviderInterfaceWrapper< PROVIDER >
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...
 
- Public Member Functions inherited from lar::ServiceProviderInterfaceWrapper< PROVIDER >
virtual ~ServiceProviderInterfaceWrapper ()=default
 Virtual destructor. 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...
 

Additional Inherited Members

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:

Definition at line 61 of file ShowerCalibrationGaloreScaleService.h.

Member Typedef Documentation

type of service provider implementation

Definition at line 67 of file ShowerCalibrationGaloreScaleService.h.

Type of configuration parameter (for art description)

Definition at line 74 of file ShowerCalibrationGaloreScaleService.h.

art service interface class

Definition at line 70 of file ShowerCalibrationGaloreScaleService.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  {}
static Config * config
Definition: config.cpp:1054
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.

89  { return prov.get(); }
std::unique_ptr< ShowerCalibrationGaloreScale > prov
service provider

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: