LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SIOVDetPedestalService_service.cc
Go to the documentation of this file.
7 #include "larevt/CalibrationDBI/Interface/DetPedestalService.h"
9 
10 namespace lariov {
11 
18  class SIOVDetPedestalService : public DetPedestalService,
19  private lar::EnsureOnlyOneSchedule<SIOVDetPedestalService> {
20 
21  public:
24 
26  {
28  }
29 
30  private:
31  const DetPedestalProvider& DoGetPedestalProvider() const override { return fProvider; }
32 
34  };
35 } //end namespace lariov
36 
38  lariov::DetPedestalService,
39  SHARED)
40 
41 namespace lariov {
42 
45  : fProvider(pset.get<fhicl::ParameterSet>("DetPedestalRetrievalAlg"))
46  {
47  //register callback to update local database cache before each event is processed
48  //reg.sPreProcessEvent.watch(&SIOVDetPedestalService::PreProcessEvent, *this);
50  }
51 
52 } //end namespace lariov
53 
const DetPedestalProvider & DoGetPedestalProvider() const override
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
Class def header for a class DetPedestalRetrievalAlg.
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
T get(std::string const &key) const
Definition: ParameterSet.h:314
Retrieves channel information: pedestal and RMS.
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
Filters for channels, events, etc.
Type whose constructor throws if more than one art schedule is configured.
SIOVDetPedestalService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
DECLARE_ART_SERVICE_INTERFACE_IMPL(lariov::SIOVDetPedestalService, lariov::DetPedestalService, SHARED) namespace lariov
Timestamp time() const
Definition: Event.cc:47
TCEvent evt
Definition: DataStructs.cxx:8
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)