LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SIOVElectronicsCalibProvider.h
Go to the documentation of this file.
1 
11 #ifndef SIOVELECTRONICSCALIBPROVIDER_H
12 #define SIOVELECTRONICSCALIBPROVIDER_H
13 
14 #include "larevt/CalibrationDBI/IOVData/ElectronicsCalib.h"
15 #include "larevt/CalibrationDBI/IOVData/Snapshot.h"
16 #include "larevt/CalibrationDBI/IOVData/IOVDataConstants.h"
17 #include "larevt/CalibrationDBI/Interface/ElectronicsCalibProvider.h"
18 #include "DatabaseRetrievalAlg.h"
19 
20 namespace lariov {
21 
42  class SIOVElectronicsCalibProvider : public DatabaseRetrievalAlg, public ElectronicsCalibProvider {
43 
44  public:
45 
48 
50  void Reconfigure(fhicl::ParameterSet const& p) override;
51 
53  bool Update(DBTimeStamp_t ts);
54 
56  const ElectronicsCalib& ElectronicsCalibObject(DBChannelID_t ch) const;
57  float Gain(DBChannelID_t ch) const override;
58  float GainErr(DBChannelID_t ch) const override;
59  float ShapingTime(DBChannelID_t ch) const override;
60  float ShapingTimeErr(DBChannelID_t ch) const override;
61  CalibrationExtraInfo const& ExtraInfo(DBChannelID_t ch) const override;
62 
63  private:
64 
65  DataSource::ds fDataSource;
66 
67  Snapshot<ElectronicsCalib> fData;
68  };
69 }//end namespace lariov
70 
71 #endif
72 
float ShapingTimeErr(DBChannelID_t ch) const override
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
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.