LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SIOVPmtGainProvider.h
Go to the documentation of this file.
1 
11 #ifndef SIOVPMTGAINPROVIDER_H
12 #define SIOVPMTGAINPROVIDER_H
13 
14 #include "larevt/CalibrationDBI/IOVData/PmtGain.h"
15 #include "larevt/CalibrationDBI/IOVData/Snapshot.h"
16 #include "larevt/CalibrationDBI/IOVData/IOVDataConstants.h"
17 #include "larevt/CalibrationDBI/Interface/PmtGainProvider.h"
18 #include "DatabaseRetrievalAlg.h"
19 
20 namespace lariov {
21 
38  class SIOVPmtGainProvider : public DatabaseRetrievalAlg, public PmtGainProvider {
39 
40  public:
41 
44 
46  void Reconfigure(fhicl::ParameterSet const& p) override;
47 
49  bool Update(DBTimeStamp_t ts);
50 
52  const PmtGain& PmtGainObject(DBChannelID_t ch) const;
53  float Gain(DBChannelID_t ch) const override;
54  float GainErr(DBChannelID_t ch) const override;
55  CalibrationExtraInfo const& ExtraInfo(DBChannelID_t ch) const override;
56 
57  private:
58 
59  DataSource::ds fDataSource;
60 
61  Snapshot<PmtGain> fData;
62  };
63 }//end namespace lariov
64 
65 #endif
66 
const PmtGain & PmtGainObject(DBChannelID_t ch) const
Retrieve gain information.
bool Update(DBTimeStamp_t ts)
Update Snapshot and inherited DBFolder if using database. Return true if updated. ...
SIOVPmtGainProvider(fhicl::ParameterSet const &p)
Constructors.
CalibrationExtraInfo const & ExtraInfo(DBChannelID_t ch) const override
Retrieves information: pmt gain.
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.
void Reconfigure(fhicl::ParameterSet const &p) override
Reconfigure function called by fhicl constructor.
float Gain(DBChannelID_t ch) const override
float GainErr(DBChannelID_t ch) const override