RunHistoryServiceStandard.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // RunHistoryService_service.h
3 //
4 // Service interface for Run History functions
5 //
6 // jpaley@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef RUNHISTORY_SERVICE_H
10 #define RUNHISTORY_SERVICE_H
11 
12 #include "fhiclcpp/ParameterSet.h"
18 #include "DetectorInfo/RunHistory.h"
19 #include "Utilities/IRunHistoryService.h"
20 
21 ///General GArSoft Utilities
22 namespace util
23  class RunHistoryService : public IRunHistoryService {
24  public:
26 
27  virtual void reconfigure(fhicl::ParameterSet const& pset);
28  void preBeginRun(const ::art::Run& run);
29 
30  virtual const provider_type* provider() const override { return fRH.get();}
31 
32  private:
33 
34  std::unique_ptr<detinfo::RunHistory> fRH;
35 
36  }; // class RunHistoryService
37 } //namespace utils
38 DECLARE_ART_SERVICE_INTERFACE_IMPL(detinfo::RunHistoryService, util::IRunHistoryService, LEGACY)
39 #endif // GArProperties_SERVICE_H
Namespace for general, non-LArSoft-specific utilities.
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
virtual const provider_type * provider() const override
void preBeginRun(const ::art::Run &run)
virtual void reconfigure(fhicl::ParameterSet const &pset)
RunHistoryService(fhicl::ParameterSet const &pset,::art::ActivityRegistry &reg)
std::unique_ptr< detinfo::RunHistory > fRH
General GArSoft Utilities.