Public Member Functions | Private Attributes | List of all members
spacecharge::SpaceChargeServiceProtoDUNE Class Reference

#include <SpaceChargeServiceProtoDUNE.h>

Inheritance diagram for spacecharge::SpaceChargeServiceProtoDUNE:
spacecharge::SpaceChargeService

Public Member Functions

 SpaceChargeServiceProtoDUNE (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::SpaceChargeProtoDUNEfProp
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file SpaceChargeServiceProtoDUNE.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file SpaceChargeServiceProtoDUNE_service.cc.

28 {
30 
31  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
32  fProp->Configure(pset,detProp);
33 
35 }
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
std::unique_ptr< spacecharge::SpaceChargeProtoDUNE > fProp

Member Function Documentation

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

Definition at line 38 of file SpaceChargeServiceProtoDUNE_service.cc.

39 {
40  fProp->Update(run.id().run());
41 }
RunID id() const
Definition: Run.cc:17
RunNumber_t run() const
Definition: RunID.h:64
std::unique_ptr< spacecharge::SpaceChargeProtoDUNE > fProp
virtual const provider_type* spacecharge::SpaceChargeServiceProtoDUNE::provider ( ) const
inlineoverridevirtual

Implements spacecharge::SpaceChargeService.

Definition at line 34 of file SpaceChargeServiceProtoDUNE.h.

34 { return fProp.get();}
std::unique_ptr< spacecharge::SpaceChargeProtoDUNE > fProp
void spacecharge::SpaceChargeServiceProtoDUNE::reconfigure ( fhicl::ParameterSet const &  pset)

Definition at line 44 of file SpaceChargeServiceProtoDUNE_service.cc.

45 {
46  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
47  fProp->Configure(pset,detProp);
48  return;
49 }
std::unique_ptr< spacecharge::SpaceChargeProtoDUNE > fProp

Member Data Documentation

std::unique_ptr<spacecharge::SpaceChargeProtoDUNE> spacecharge::SpaceChargeServiceProtoDUNE::fProp
private

Definition at line 38 of file SpaceChargeServiceProtoDUNE.h.


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