All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lariov::SIOVElectronicsCalibService Class Reference
Inheritance diagram for lariov::SIOVElectronicsCalibService:
lariov::ElectronicsCalibService

Public Member Functions

 SIOVElectronicsCalibService (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~SIOVElectronicsCalibService ()
 
void PreProcessEvent (const art::Event &evt, art::ScheduleContext)
 
- Public Member Functions inherited from lariov::ElectronicsCalibService
virtual ~ElectronicsCalibService ()=default
 Destructor. More...
 
ElectronicsCalibProvider const & GetProvider () const
 
ElectronicsCalibProvider const * GetProviderPtr () const
 

Private Member Functions

ElectronicsCalibProvider const & DoGetProvider () const override
 Returns a reference to the service provider. More...
 
ElectronicsCalibProvider const * DoGetProviderPtr () const override
 

Private Attributes

SIOVElectronicsCalibProvider fProvider
 

Additional Inherited Members

- Public Types inherited from lariov::ElectronicsCalibService
using provider_type = ElectronicsCalibProvider
 

Detailed Description

art service implementation of ElectronicsCalibService. Implements an electronics calibration retrieval service for database scheme in which all elements in a database folder share a common interval of validity

Definition at line 17 of file SIOVElectronicsCalibService_service.cc.

Constructor & Destructor Documentation

lariov::SIOVElectronicsCalibService::SIOVElectronicsCalibService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry &  reg 
)

Definition at line 47 of file SIOVElectronicsCalibService_service.cc.

48  : fProvider(pset.get<fhicl::ParameterSet>("ElectronicsCalibProvider"))
49  {
50  //register callback to update local database cache before each event is processed
51  reg.sPreProcessEvent.watch(this, &SIOVElectronicsCalibService::PreProcessEvent);
52  }
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
lariov::SIOVElectronicsCalibService::~SIOVElectronicsCalibService ( )
inline

Definition at line 22 of file SIOVElectronicsCalibService_service.cc.

22 {}

Member Function Documentation

ElectronicsCalibProvider const& lariov::SIOVElectronicsCalibService::DoGetProvider ( ) const
inlineoverrideprivatevirtual

Returns a reference to the service provider.

Implements lariov::ElectronicsCalibService.

Definition at line 30 of file SIOVElectronicsCalibService_service.cc.

30  {
31  return fProvider;
32  }
ElectronicsCalibProvider const* lariov::SIOVElectronicsCalibService::DoGetProviderPtr ( ) const
inlineoverrideprivatevirtual

Implements lariov::ElectronicsCalibService.

Definition at line 34 of file SIOVElectronicsCalibService_service.cc.

34  {
35  return &fProvider;
36  }
void lariov::SIOVElectronicsCalibService::PreProcessEvent ( const art::Event &  evt,
art::ScheduleContext   
)
inline

Definition at line 24 of file SIOVElectronicsCalibService_service.cc.

24  {
25  fProvider.UpdateTimeStamp(evt.time().value());
26  }
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
TCEvent evt
Definition: DataStructs.cxx:8

Member Data Documentation

SIOVElectronicsCalibProvider lariov::SIOVElectronicsCalibService::fProvider
private

Definition at line 38 of file SIOVElectronicsCalibService_service.cc.


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