LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
SIOVChannelStatusService_service.cc
Go to the documentation of this file.
1 #ifndef SIOVCHANNELSTATUSSERVICE_CC
2 #define SIOVCHANNELSTATUSSERVICE_CC
3 
8 #include "larevt/CalibrationDBI/Interface/ChannelStatusService.h"
10 
11 namespace lariov{
12 
19  class SIOVChannelStatusService : public ChannelStatusService {
20 
21  public:
22 
24 
25  void PreProcessEvent(const art::Event& evt);
26 
27  private:
28 
29  const ChannelStatusProvider& DoGetProvider() const override {
30  return fProvider;
31  }
32 
33  const ChannelStatusProvider* DoGetProviderPtr() const override {
34  return &fProvider;
35  }
36 
38  };
39 }//end namespace lariov
40 
41 DECLARE_ART_SERVICE_INTERFACE_IMPL(lariov::SIOVChannelStatusService, lariov::ChannelStatusService, LEGACY)
42 
43 
44 namespace lariov{
45 
47  : fProvider(pset.get<fhicl::ParameterSet>("ChannelStatusProvider"))
48  {
49 
50  //register callback to update local database cache before each event is processed
52 
53  }
54 
55 
57 
58  //First grab an update from the database
60  }
61 
62 }//end namespace lariov
63 
65 
66 #endif
const ChannelStatusProvider & DoGetProvider() const override
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
SIOVChannelStatusService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
constexpr TimeValue_t value() const
Definition: Timestamp.h:24
Class providing information about the quality of channels.
parameter set interface
const ChannelStatusProvider * DoGetProviderPtr() const override
Filters for channels, events, etc.
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &)> sPreProcessEvent
Channel quality provider with information from configuration file.
Timestamp time() const
Definition: Event.h:61
TCEvent evt
Definition: DataStructs.cxx:5
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)