LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lariov::SIOVDetPedestalService Class Reference
Inheritance diagram for lariov::SIOVDetPedestalService:

Public Member Functions

 SIOVDetPedestalService (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 ~SIOVDetPedestalService ()
 
void PreProcessEvent (const art::Event &evt)
 

Private Member Functions

const DetPedestalProvider & DoGetPedestalProvider () const override
 

Private Attributes

DetPedestalRetrievalAlg fProvider
 

Detailed Description

art service implementation of DetPedestalService. Implements a detector pedestal retrieval service for database scheme in which all elements in a database folder share a common interval of validity

Definition at line 19 of file SIOVDetPedestalService_service.cc.

Constructor & Destructor Documentation

lariov::SIOVDetPedestalService::SIOVDetPedestalService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)

Definition at line 45 of file SIOVDetPedestalService_service.cc.

References DEFINE_ART_SERVICE_INTERFACE_IMPL, PreProcessEvent(), and art::ActivityRegistry::sPreProcessEvent.

46  : fProvider(pset.get<fhicl::ParameterSet>("DetPedestalRetrievalAlg"))
47  {
48  //register callback to update local database cache before each event is processed
49  //reg.sPreProcessEvent.watch(&SIOVDetPedestalService::PreProcessEvent, *this);
51  }
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &)> sPreProcessEvent
lariov::SIOVDetPedestalService::~SIOVDetPedestalService ( )
inline

Definition at line 24 of file SIOVDetPedestalService_service.cc.

24 {}

Member Function Documentation

const DetPedestalProvider& lariov::SIOVDetPedestalService::DoGetPedestalProvider ( ) const
inlineoverrideprivate

Definition at line 32 of file SIOVDetPedestalService_service.cc.

References fProvider.

32  {
33  return fProvider;
34  }
void lariov::SIOVDetPedestalService::PreProcessEvent ( const art::Event evt)
inline

Definition at line 26 of file SIOVDetPedestalService_service.cc.

References fProvider, art::Event::time(), lariov::DetPedestalRetrievalAlg::Update(), and art::Timestamp::value().

Referenced by SIOVDetPedestalService().

26  {
27  fProvider.Update(evt.time().value());
28  }
constexpr TimeValue_t value() const
Definition: Timestamp.h:24
bool Update(DBTimeStamp_t ts)
Update Snapshot and inherited DBFolder if using database. Return true if updated. ...
Timestamp time() const
Definition: Event.h:61

Member Data Documentation

DetPedestalRetrievalAlg lariov::SIOVDetPedestalService::fProvider
private

Definition at line 36 of file SIOVDetPedestalService_service.cc.

Referenced by DoGetPedestalProvider(), and PreProcessEvent().


The documentation for this class was generated from the following file: