SIOVDetPedestalService_service.cc
Go to the documentation of this file.
8 
9 namespace lariov{
10 
11  /**
12  \class SIOVDetPedestalService
13  art service implementation of DetPedestalService. Implements
14  a detector pedestal retrieval service for database scheme in which
15  all elements in a database folder share a common interval of validity
16  */
18 
19  public:
20 
23 
26  }
27 
28  private:
29 
30  const DetPedestalProvider& DoGetPedestalProvider() const override {
31  return fProvider;
32  }
33 
35  };
36 }//end namespace lariov
37 
39 
40 
41 namespace lariov{
42 
44  : fProvider(pset.get<fhicl::ParameterSet>("DetPedestalRetrievalAlg"))
45  {
46  //register callback to update local database cache before each event is processed
47  //reg.sPreProcessEvent.watch(&SIOVDetPedestalService::PreProcessEvent, *this);
49  }
50 
51 }//end namespace lariov
52 
const DetPedestalProvider & DoGetPedestalProvider() const override
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
void PreProcessEvent(const art::Event &evt, art::ScheduleContext)
Class def header for a class DetPedestalRetrievalAlg.
constexpr TimeValue_t value() const
Definition: Timestamp.h:23
Timestamp time() const
Retrieves channel information: pedestal and RMS.
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
Filters for channels, events, etc.
SIOVDetPedestalService(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
TCEvent evt
Definition: DataStructs.cxx:7
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)