SIOVChannelStatusService_service.cc
Go to the documentation of this file.
8 
9 namespace lariov{
10 
11  /**
12  \class SIOVChannelStatusService
13  art service implementation of ChannelStatusService. Implements
14  a channel status retrieval service for database scheme in which
15  all elements in a database folder share a common interval of validity
16  */
18 
19  public:
20 
22 
24 
25  private:
26 
27  const ChannelStatusProvider& DoGetProvider() const override {
28  return fProvider;
29  }
30 
31  const ChannelStatusProvider* DoGetProviderPtr() const override {
32  return &fProvider;
33  }
34 
36  };
37 }//end namespace lariov
38 
40 
41 
42 namespace lariov{
43 
45  : fProvider(pset.get<fhicl::ParameterSet>("ChannelStatusProvider"))
46  {
47 
48  //register callback to update local database cache before each event is processed
50 
51  }
52 
53 
55 
56  //First grab an update from the database
58  }
59 
60 }//end namespace lariov
61 
const ChannelStatusProvider & DoGetProvider() const override
Returns a reference to the service provider.
SIOVChannelStatusService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
Class providing information about the quality of channels.
Timestamp time() const
Class providing information about the quality of channels.
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
const ChannelStatusProvider * DoGetProviderPtr() const override
Returns a pointer to the service provider.
Filters for channels, events, etc.
Channel quality provider with information from configuration file.
TCEvent evt
Definition: DataStructs.cxx:7
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
Interface for experiment-specific service for channel quality info.
Service providing information about the quality of channels.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)