LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
detinfo::LArPropertiesServiceStandard Class Reference

#include "LArPropertiesServiceStandard.h"

Inheritance diagram for detinfo::LArPropertiesServiceStandard:
detinfo::LArPropertiesService

Public Types

using Parameters = art::ServiceTable< detinfo::LArPropertiesStandard::ConfigurationParameters_t >
 
typedef detinfo::LArProperties provider_type
 

Public Member Functions

 LArPropertiesServiceStandard (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
 

Private Attributes

std::unique_ptr< detinfo::LArPropertiesStandardfProp
 

Detailed Description

Definition at line 22 of file LArPropertiesServiceStandard.h.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Definition at line 22 of file LArPropertiesServiceStandard_service.cc.

References fProp, preBeginRun(), reconfigure(), and art::ActivityRegistry::sPreBeginRun.

23 {
25 
26  this->reconfigure(pset);
28 }
virtual void reconfigure(fhicl::ParameterSet const &pset) override
std::unique_ptr< detinfo::LArPropertiesStandard > fProp
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
Properties related to liquid argon environment in the detector.

Member Function Documentation

void detinfo::LArPropertiesServiceStandard::preBeginRun ( const art::Run run)

Definition at line 31 of file LArPropertiesServiceStandard_service.cc.

References fProp, art::Run::id(), and art::RunID::run().

Referenced by LArPropertiesServiceStandard().

32 {
33  fProp->Update(run.id().run());
34 }
std::unique_ptr< detinfo::LArPropertiesStandard > fProp
RunNumber_t run() const
Definition: RunID.h:63
RunID const & id() const
Definition: Run.h:41
virtual const provider_type* detinfo::LArPropertiesServiceStandard::provider ( ) const
inlineoverridevirtual

Implements detinfo::LArPropertiesService.

Definition at line 33 of file LArPropertiesServiceStandard.h.

References fProp.

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

Implements detinfo::LArPropertiesService.

Definition at line 40 of file LArPropertiesServiceStandard_service.cc.

References DEFINE_ART_SERVICE_INTERFACE_IMPL, and fProp.

Referenced by LArPropertiesServiceStandard().

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

Member Data Documentation

std::unique_ptr<detinfo::LArPropertiesStandard> detinfo::LArPropertiesServiceStandard::fProp
private

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