LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
SIOVPmtGainService_service.cc
Go to the documentation of this file.
1 #ifndef SIOVPMTGAINSERVICE_CC
2 #define SIOVPMTGAINSERVICE_CC
3 
8 #include "larevt/CalibrationDBI/Interface/PmtGainService.h"
10 
11 namespace lariov{
12 
19  class SIOVPmtGainService : public PmtGainService {
20 
21  public:
22 
25 
28  }
29 
30  private:
31 
32  PmtGainProvider const& DoGetProvider() const override {
33  return fProvider;
34  }
35 
36  PmtGainProvider const* DoGetProviderPtr() const override {
37  return &fProvider;
38  }
39 
41  };
42 }//end namespace lariov
43 
45 
46 
47 namespace lariov{
48 
50  : fProvider(pset.get<fhicl::ParameterSet>("PmtGainProvider"))
51  {
52  //register callback to update local database cache before each event is processed
54  }
55 
56 }//end namespace lariov
57 
59 
60 #endif
SIOVPmtGainService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
constexpr TimeValue_t value() const
Definition: Timestamp.h:24
void PreProcessEvent(const art::Event &evt)
parameter set interface
Retrieves information: pmt gain.
PmtGainProvider const * DoGetProviderPtr() const override
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
Filters for channels, events, etc.
PmtGainProvider const & DoGetProvider() const override
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &)> sPreProcessEvent
Class def header for a class SIOVPmtGainProvider.
Timestamp time() const
Definition: Event.h:61
TCEvent evt
Definition: DataStructs.cxx:5
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)