LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SIOVPmtGainService_service.cc
Go to the documentation of this file.
6 #include "larevt/CalibrationDBI/Interface/PmtGainService.h"
8 
9 namespace lariov {
10 
17  class SIOVPmtGainService : public PmtGainService {
18 
19  public:
22 
24  {
26  }
27 
28  private:
29  PmtGainProvider const& DoGetProvider() const override { return fProvider; }
30 
31  PmtGainProvider const* DoGetProviderPtr() const override { return &fProvider; }
32 
34  };
35 } //end namespace lariov
36 
38 
39 namespace lariov {
40 
43  : fProvider(pset.get<fhicl::ParameterSet>("PmtGainProvider"))
44  {
45  //register callback to update local database cache before each event is processed
47  }
48 
49 } //end namespace lariov
50 
SIOVPmtGainService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
parameter set interface
Retrieves information: pmt gain.
PmtGainProvider const * DoGetProviderPtr() const override
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
Filters for channels, events, etc.
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
Definition: StdUtils.h:120
PmtGainProvider const & DoGetProvider() const override
Class def header for a class SIOVPmtGainProvider.
Timestamp time() const
Definition: Event.cc:47
TCEvent evt
Definition: DataStructs.cxx:8
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)