Public Types | Public Member Functions | Private Attributes | List of all members
gar::detinfo::ECALPropertiesServiceStandard Class Reference

#include <ECALPropertiesServiceStandard.h>

Inheritance diagram for gar::detinfo::ECALPropertiesServiceStandard:
gar::detinfo::ECALPropertiesService

Public Types

using Parameters = ::art::ServiceTable< gar::detinfo::ECALPropertiesStandard::ConfigurationParameters_t >
 
- Public Types inherited from gar::detinfo::ECALPropertiesService
typedef detinfo::ECALProperties provider_type
 

Public Member Functions

 ECALPropertiesServiceStandard (fhicl::ParameterSet const &pset,::art::ActivityRegistry &reg)
 
virtual void reconfigure (fhicl::ParameterSet const &pset) override
 
void preBeginRun (const ::art::Run &run)
 
virtual const provider_typeprovider () const override
 
- Public Member Functions inherited from gar::detinfo::ECALPropertiesService
virtual ~ECALPropertiesService ()=default
 

Private Attributes

std::unique_ptr< detinfo::ECALPropertiesStandardfProp
 

Detailed Description

Definition at line 24 of file ECALPropertiesServiceStandard.h.

Member Typedef Documentation

Definition at line 28 of file ECALPropertiesServiceStandard.h.

Constructor & Destructor Documentation

gar::detinfo::ECALPropertiesServiceStandard::ECALPropertiesServiceStandard ( fhicl::ParameterSet const &  pset,
::art::ActivityRegistry reg 
)

Definition at line 22 of file ECALPropertiesServiceStandard_service.cc.

24 {
25  fProp.reset(new detinfo::ECALPropertiesStandard());
26 
27  this->reconfigure(pset);
29 }
std::unique_ptr< detinfo::ECALPropertiesStandard > fProp
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
virtual void reconfigure(fhicl::ParameterSet const &pset) override

Member Function Documentation

void gar::detinfo::ECALPropertiesServiceStandard::preBeginRun ( const ::art::Run run)

Definition at line 32 of file ECALPropertiesServiceStandard_service.cc.

33 {
34  fProp->Update(run.id().run());
35 }
RunID id() const
Definition: Run.cc:17
RunNumber_t run() const
Definition: RunID.h:64
std::unique_ptr< detinfo::ECALPropertiesStandard > fProp
virtual const provider_type* gar::detinfo::ECALPropertiesServiceStandard::provider ( ) const
inlineoverridevirtual

Implements gar::detinfo::ECALPropertiesService.

Definition at line 36 of file ECALPropertiesServiceStandard.h.

36 { return fProp.get();}
std::unique_ptr< detinfo::ECALPropertiesStandard > fProp
void gar::detinfo::ECALPropertiesServiceStandard::reconfigure ( fhicl::ParameterSet const &  pset)
overridevirtual
Todo:
these values should eventually come from a database

Implements gar::detinfo::ECALPropertiesService.

Definition at line 41 of file ECALPropertiesServiceStandard_service.cc.

42 {
43  fProp->Configure(pset);
44  return;
45 }
std::unique_ptr< detinfo::ECALPropertiesStandard > fProp

Member Data Documentation

std::unique_ptr<detinfo::ECALPropertiesStandard> gar::detinfo::ECALPropertiesServiceStandard::fProp
private

Definition at line 40 of file ECALPropertiesServiceStandard.h.


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