Public Member Functions | Private Attributes | List of all members
calib::LifetimeCalibServiceProtoDUNE Class Reference

#include <LifetimeCalibServiceProtoDUNE.h>

Inheritance diagram for calib::LifetimeCalibServiceProtoDUNE:
calib::LifetimeCalibService

Public Member Functions

 LifetimeCalibServiceProtoDUNE (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
virtual void reconfigure (fhicl::ParameterSet const &pset) override
 
void preBeginRun (const art::Run &run)
 
virtual provider_typeprovider () const override
 
- Public Member Functions inherited from calib::LifetimeCalibService
virtual ~LifetimeCalibService ()=default
 

Private Attributes

std::unique_ptr< calib::LifetimeCalibProtoDUNEfProp
 

Additional Inherited Members

- Public Types inherited from calib::LifetimeCalibService
typedef calib::LifetimeCalib provider_type
 

Detailed Description

Definition at line 23 of file LifetimeCalibServiceProtoDUNE.h.

Constructor & Destructor Documentation

calib::LifetimeCalibServiceProtoDUNE::LifetimeCalibServiceProtoDUNE ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)

Definition at line 25 of file LifetimeCalibServiceProtoDUNE_service.cc.

26 {
27  fProp.reset(new calib::LifetimeCalibProtoDUNE(pset));
28 
30 }
std::unique_ptr< calib::LifetimeCalibProtoDUNE > fProp
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun

Member Function Documentation

void calib::LifetimeCalibServiceProtoDUNE::preBeginRun ( const art::Run run)

Definition at line 33 of file LifetimeCalibServiceProtoDUNE_service.cc.

34 {
35  art::Timestamp ts = run.beginTime();
36  TTimeStamp tts(ts.timeHigh(), ts.timeLow());
37  uint64_t runtime = tts.AsDouble();
38 
39  std::cout << "db: runtime " << runtime << std::endl;
40  // one can also consider using event time through "sPreProcessEvent" by define a "preProcessEvent" function, for exmaple.
41 
42  fProp->Update(runtime);
43 
44  //fProp->Update(run.id().run());
45 }
constexpr std::uint32_t timeLow() const
Definition: Timestamp.h:29
constexpr std::uint32_t timeHigh() const
Definition: Timestamp.h:34
std::unique_ptr< calib::LifetimeCalibProtoDUNE > fProp
Timestamp const & beginTime() const
Definition: DataViewImpl.cc:92
QTextStream & endl(QTextStream &s)
virtual provider_type* calib::LifetimeCalibServiceProtoDUNE::provider ( ) const
inlineoverridevirtual

Implements calib::LifetimeCalibService.

Definition at line 33 of file LifetimeCalibServiceProtoDUNE.h.

33 { return fProp.get();}
std::unique_ptr< calib::LifetimeCalibProtoDUNE > fProp
void calib::LifetimeCalibServiceProtoDUNE::reconfigure ( fhicl::ParameterSet const &  pset)
overridevirtual

Implements calib::LifetimeCalibService.

Definition at line 48 of file LifetimeCalibServiceProtoDUNE_service.cc.

49 {
50  fProp->Configure(pset);
51  return;
52 }
std::unique_ptr< calib::LifetimeCalibProtoDUNE > fProp

Member Data Documentation

std::unique_ptr<calib::LifetimeCalibProtoDUNE> calib::LifetimeCalibServiceProtoDUNE::fProp
private

Definition at line 37 of file LifetimeCalibServiceProtoDUNE.h.


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