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

#include <SpaceChargeServiceProtoDUNEdp.h>

Inheritance diagram for spacecharge::SpaceChargeServiceProtoDUNEdp:
spacecharge::SpaceChargeService

Public Member Functions

 SpaceChargeServiceProtoDUNEdp (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
virtual 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::SpaceChargeProtoDUNEdpfProp
 

Additional Inherited Members

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

Detailed Description

Definition at line 22 of file SpaceChargeServiceProtoDUNEdp.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file SpaceChargeServiceProtoDUNEdp_service.cc.

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

Member Function Documentation

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

Definition at line 39 of file SpaceChargeServiceProtoDUNEdp_service.cc.

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

Implements spacecharge::SpaceChargeService.

Definition at line 34 of file SpaceChargeServiceProtoDUNEdp.h.

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

Definition at line 45 of file SpaceChargeServiceProtoDUNEdp_service.cc.

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

Member Data Documentation

std::unique_ptr<spacecharge::SpaceChargeProtoDUNEdp> spacecharge::SpaceChargeServiceProtoDUNEdp::fProp
private

Definition at line 38 of file SpaceChargeServiceProtoDUNEdp.h.


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