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::SIOVChannelStatusService Class Reference
Inheritance diagram for lariov::SIOVChannelStatusService:
lariov::ChannelStatusService

Public Member Functions

 SIOVChannelStatusService (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
void PreProcessEvent (const art::Event &evt, art::ScheduleContext)
 
- Public Member Functions inherited from lariov::ChannelStatusService
virtual ~ChannelStatusService ()=default
 Destructor. More...
 
ChannelStatusProvider const * provider () const
 
ChannelStatusProvider const & GetProvider () const
 Returns a reference to the service provider. More...
 
ChannelStatusProvider const & GetFilter () const
 
ChannelStatusProvider const * GetProviderPtr () const
 Returns a pointer to the service provider. More...
 
ChannelStatusProvider const * GetFilterPtr () const
 

Private Member Functions

const ChannelStatusProviderDoGetProvider () const override
 Returns a reference to the service provider. More...
 
const ChannelStatusProviderDoGetProviderPtr () const override
 Returns a pointer to the service provider. More...
 

Private Attributes

SIOVChannelStatusProvider fProvider
 

Additional Inherited Members

- Public Types inherited from lariov::ChannelStatusService
using provider_type = ChannelStatusProvider
 

Detailed Description

art service implementation of ChannelStatusService. Implements a channel status 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 SIOVChannelStatusService_service.cc.

Constructor & Destructor Documentation

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

Definition at line 44 of file SIOVChannelStatusService_service.cc.

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

Member Function Documentation

const ChannelStatusProvider& lariov::SIOVChannelStatusService::DoGetProvider ( ) const
inlineoverrideprivatevirtual

Returns a reference to the service provider.

Implements lariov::ChannelStatusService.

Definition at line 27 of file SIOVChannelStatusService_service.cc.

27  {
28  return fProvider;
29  }
const ChannelStatusProvider* lariov::SIOVChannelStatusService::DoGetProviderPtr ( ) const
inlineoverrideprivatevirtual

Returns a pointer to the service provider.

Implements lariov::ChannelStatusService.

Definition at line 31 of file SIOVChannelStatusService_service.cc.

31  {
32  return &fProvider;
33  }
void lariov::SIOVChannelStatusService::PreProcessEvent ( const art::Event &  evt,
art::ScheduleContext   
)

Definition at line 54 of file SIOVChannelStatusService_service.cc.

54  {
55 
56  //First grab an update from the database
57  fProvider.UpdateTimeStamp(evt.time().value());
58  }
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
TCEvent evt
Definition: DataStructs.cxx:8

Member Data Documentation

SIOVChannelStatusProvider lariov::SIOVChannelStatusService::fProvider
private

Definition at line 35 of file SIOVChannelStatusService_service.cc.


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