LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SIOVElectronicsCalibProvider.h
Go to the documentation of this file.
1 
11 #ifndef SIOVELECTRONICSCALIBPROVIDER_H
12 #define SIOVELECTRONICSCALIBPROVIDER_H
13 
14 #include "DatabaseRetrievalAlg.h"
18 #include "larevt/CalibrationDBI/Interface/ElectronicsCalibProvider.h"
19 
20 namespace lariov {
21 
43  public ElectronicsCalibProvider {
44 
45  public:
48 
50  void Reconfigure(fhicl::ParameterSet const& p) override;
51 
53  void UpdateTimeStamp(DBTimeStamp_t ts);
54 
56  bool Update(DBTimeStamp_t ts);
57 
59  const ElectronicsCalib& ElectronicsCalibObject(DBChannelID_t ch) const;
60  float Gain(DBChannelID_t ch) const override;
61  float GainErr(DBChannelID_t ch) const override;
62  float ShapingTime(DBChannelID_t ch) const override;
63  float ShapingTimeErr(DBChannelID_t ch) const override;
64  CalibrationExtraInfo const& ExtraInfo(DBChannelID_t ch) const override;
65 
66  private:
68 
69  bool DBUpdate() const; // Uses current event time.
70  bool DBUpdate(DBTimeStamp_t ts) const;
71 
72  // Time stamps.
73 
74  DBTimeStamp_t fEventTimeStamp; // Most recently seen time stamp.
75  mutable DBTimeStamp_t fCurrentTimeStamp; // Time stamp of cached data.
76 
78 
80  };
81 } //end namespace lariov
82 
83 #endif
float ShapingTimeErr(DBChannelID_t ch) const override
Class def header for a class Snapshot.
Retrieves information: electronics calibrations, specifically gain and shaping time.
CalibrationExtraInfo const & ExtraInfo(DBChannelID_t ch) const override
float GainErr(DBChannelID_t ch) const override
const ElectronicsCalib & ElectronicsCalibObject(DBChannelID_t ch) const
Retrieve electronics calibration information.
float ShapingTime(DBChannelID_t ch) const override
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.
float Gain(DBChannelID_t ch) const override
bool Update(DBTimeStamp_t ts)
Update Snapshot and inherited DBFolder if using database. Return true if updated. ...
SIOVElectronicsCalibProvider(fhicl::ParameterSet const &p)
Constructors.
void Reconfigure(fhicl::ParameterSet const &p) override
Reconfigure function called by fhicl constructor.
Class def header for a class ElectronicsCalib.
bool DBUpdate() const
Do actual database updates.