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

#include <GArPropertiesServiceStandard.h>

Inheritance diagram for gar::detinfo::GArPropertiesServiceStandard:
gar::detinfo::GArPropertiesService

Public Types

using Parameters = ::art::ServiceTable< gar::detinfo::GArPropertiesStandard::ConfigurationParameters_t >
 
- Public Types inherited from gar::detinfo::GArPropertiesService
typedef detinfo::GArProperties provider_type
 

Public Member Functions

 GArPropertiesServiceStandard (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::GArPropertiesService
virtual ~GArPropertiesService ()=default
 

Private Attributes

std::unique_ptr< detinfo::GArPropertiesStandardfProp
 

Detailed Description

Definition at line 24 of file GArPropertiesServiceStandard.h.

Member Typedef Documentation

Definition at line 28 of file GArPropertiesServiceStandard.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file GArPropertiesServiceStandard_service.cc.

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

Member Function Documentation

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

Definition at line 32 of file GArPropertiesServiceStandard_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::GArPropertiesStandard > fProp
virtual const provider_type* gar::detinfo::GArPropertiesServiceStandard::provider ( ) const
inlineoverridevirtual

Implements gar::detinfo::GArPropertiesService.

Definition at line 36 of file GArPropertiesServiceStandard.h.

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

Implements gar::detinfo::GArPropertiesService.

Definition at line 41 of file GArPropertiesServiceStandard_service.cc.

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

Member Data Documentation

std::unique_ptr<detinfo::GArPropertiesStandard> gar::detinfo::GArPropertiesServiceStandard::fProp
private

Definition at line 40 of file GArPropertiesServiceStandard.h.


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