LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
spacecharge::SpaceChargeServiceStandard Class Reference

#include "SpaceChargeServiceStandard.h"

Inheritance diagram for spacecharge::SpaceChargeServiceStandard:
spacecharge::SpaceChargeService

Public Types

typedef spacecharge::SpaceCharge provider_type
 

Public Member Functions

 SpaceChargeServiceStandard (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< spacecharge::SpaceChargeStandardfProp
 

Detailed Description

Definition at line 22 of file SpaceChargeServiceStandard.h.

Member Typedef Documentation

Constructor & Destructor Documentation

spacecharge::SpaceChargeServiceStandard::SpaceChargeServiceStandard ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)

Definition at line 24 of file SpaceChargeServiceStandard_service.cc.

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

25 {
26  fProp.reset(new spacecharge::SpaceChargeStandard(pset));
27 
29 }
std::unique_ptr< spacecharge::SpaceChargeStandard > fProp
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun

Member Function Documentation

void spacecharge::SpaceChargeServiceStandard::preBeginRun ( const art::Run run)

Definition at line 32 of file SpaceChargeServiceStandard_service.cc.

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

Referenced by SpaceChargeServiceStandard().

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

Implements spacecharge::SpaceChargeService.

Definition at line 33 of file SpaceChargeServiceStandard.h.

References fProp.

33 { return fProp.get();}
std::unique_ptr< spacecharge::SpaceChargeStandard > fProp
void spacecharge::SpaceChargeServiceStandard::reconfigure ( fhicl::ParameterSet const &  pset)
overridevirtual

Implements spacecharge::SpaceChargeService.

Definition at line 38 of file SpaceChargeServiceStandard_service.cc.

References DEFINE_ART_SERVICE_INTERFACE_IMPL, and fProp.

39 {
40  fProp->Configure(pset);
41  return;
42 }
std::unique_ptr< spacecharge::SpaceChargeStandard > fProp

Member Data Documentation

std::unique_ptr<spacecharge::SpaceChargeStandard> spacecharge::SpaceChargeServiceStandard::fProp
private

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