All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
spacecharge::SpaceChargeServiceSBND Class Reference

#include <SpaceChargeServiceSBND.h>

Inheritance diagram for spacecharge::SpaceChargeServiceSBND:
spacecharge::SpaceChargeService

Public Member Functions

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

Private Attributes

std::unique_ptr
< spacecharge::SpaceChargeSBND
fProp
 

Additional Inherited Members

- Public Types inherited from spacecharge::SpaceChargeService
using provider_type = spacecharge::SpaceCharge
 

Detailed Description

Definition at line 15 of file SpaceChargeServiceSBND.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file SpaceChargeServiceSBND_service.cc.

22 {
23  fProp.reset(new spacecharge::SpaceChargeSBND(pset));
24 
25  reg.sPreBeginRun.watch(this, &SpaceChargeServiceSBND::preBeginRun);
26 }
std::unique_ptr< spacecharge::SpaceChargeSBND > fProp

Member Function Documentation

void spacecharge::SpaceChargeServiceSBND::preBeginRun ( const art::Run &  run)

Definition at line 29 of file SpaceChargeServiceSBND_service.cc.

30 {
31  fProp->Update(run.id().run());
32 }
std::unique_ptr< spacecharge::SpaceChargeSBND > fProp
virtual const provider_type* spacecharge::SpaceChargeServiceSBND::provider ( ) const
inlineoverridevirtual

Implements spacecharge::SpaceChargeService.

Definition at line 24 of file SpaceChargeServiceSBND.h.

25  {
26  return fProp.get();
27  }
std::unique_ptr< spacecharge::SpaceChargeSBND > fProp
void spacecharge::SpaceChargeServiceSBND::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 35 of file SpaceChargeServiceSBND_service.cc.

36 {
37  fProp->Configure(pset);
38  return;
39 }
std::unique_ptr< spacecharge::SpaceChargeSBND > fProp

Member Data Documentation

std::unique_ptr<spacecharge::SpaceChargeSBND> spacecharge::SpaceChargeServiceSBND::fProp
private

Definition at line 31 of file SpaceChargeServiceSBND.h.


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