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

Public Member Functions

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

Private Member Functions

PmtGainProvider const & DoGetProvider () const override
 
PmtGainProvider const * DoGetProviderPtr () const override
 

Private Attributes

SIOVPmtGainProvider fProvider
 

Detailed Description

art service implementation of PmtGainService. Implements a pmt gain 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 SIOVPmtGainService_service.cc.

Constructor & Destructor Documentation

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

Definition at line 49 of file SIOVPmtGainService_service.cc.

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

50  : fProvider(pset.get<fhicl::ParameterSet>("PmtGainProvider"))
51  {
52  //register callback to update local database cache before each event is processed
54  }
void PreProcessEvent(const art::Event &evt)
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &)> sPreProcessEvent
lariov::SIOVPmtGainService::~SIOVPmtGainService ( )
inline

Definition at line 24 of file SIOVPmtGainService_service.cc.

24 {}

Member Function Documentation

PmtGainProvider const& lariov::SIOVPmtGainService::DoGetProvider ( ) const
inlineoverrideprivate

Definition at line 32 of file SIOVPmtGainService_service.cc.

References fProvider.

32  {
33  return fProvider;
34  }
PmtGainProvider const* lariov::SIOVPmtGainService::DoGetProviderPtr ( ) const
inlineoverrideprivate

Definition at line 36 of file SIOVPmtGainService_service.cc.

References fProvider.

36  {
37  return &fProvider;
38  }
void lariov::SIOVPmtGainService::PreProcessEvent ( const art::Event evt)
inline

Definition at line 26 of file SIOVPmtGainService_service.cc.

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

Referenced by SIOVPmtGainService().

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

Member Data Documentation

SIOVPmtGainProvider lariov::SIOVPmtGainService::fProvider
private

Definition at line 40 of file SIOVPmtGainService_service.cc.

Referenced by DoGetProvider(), DoGetProviderPtr(), and PreProcessEvent().


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