LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SIOVElectronicsCalibService_service.cc
Go to the documentation of this file.
6 #include "larevt/CalibrationDBI/Interface/ElectronicsCalibService.h"
8 
9 namespace lariov {
10 
17  class SIOVElectronicsCalibService : public ElectronicsCalibService {
18 
19  public:
22 
24  {
26  }
27 
28  private:
29  ElectronicsCalibProvider const& DoGetProvider() const override { return fProvider; }
30 
31  ElectronicsCalibProvider const* DoGetProviderPtr() const override { return &fProvider; }
32 
34  };
35 } //end namespace lariov
36 
38  lariov::ElectronicsCalibService,
39  LEGACY)
40 
41 namespace lariov {
42 
45  : fProvider(pset.get<fhicl::ParameterSet>("ElectronicsCalibProvider"))
46  {
47  //register callback to update local database cache before each event is processed
49  }
50 
51 } //end namespace lariov
52 
54  lariov::ElectronicsCalibService)
Class def header for a class SIOVElectronicsCalibProvider.
SIOVElectronicsCalibService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Retrieves information: electronics calibrations, specifically gain and shaping time.
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
T get(std::string const &key) const
Definition: ParameterSet.h:314
ElectronicsCalibProvider 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.
ElectronicsCalibProvider const & DoGetProvider() const override
Timestamp time() const
Definition: Event.cc:47
TCEvent evt
Definition: DataStructs.cxx:8
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
DECLARE_ART_SERVICE_INTERFACE_IMPL(lariov::SIOVElectronicsCalibService, lariov::ElectronicsCalibService, LEGACY) namespace lariov
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)