14 #ifndef WEBDBI_DETPEDESTALRETRIEVALALG_H 15 #define WEBDBI_DETPEDESTALRETRIEVALALG_H 22 #include "larevt/CalibrationDBI/IOVData/DetPedestal.h" 23 #include "larevt/CalibrationDBI/IOVData/Snapshot.h" 24 #include "larevt/CalibrationDBI/IOVData/IOVDataConstants.h" 25 #include "larevt/CalibrationDBI/Interface/DetPedestalProvider.h" 60 const std::string& url,
61 const std::string& tag=
"");
72 bool Update(DBTimeStamp_t ts);
75 const DetPedestal&
Pedestal(DBChannelID_t ch)
const;
76 float PedMean(DBChannelID_t ch)
const override;
77 float PedRms(DBChannelID_t ch)
const override;
78 float PedMeanErr(DBChannelID_t ch)
const override;
79 float PedRmsErr(DBChannelID_t ch)
const override;
84 = {
"channel",
"mean",
"mean_err",
"rms",
"rms_err"};
86 = {
"unsigned int",
"float",
"float",
"float",
"float"};
93 bool DBUpdate(DBTimeStamp_t ts)
const;
101 mutable Snapshot<DetPedestal>
fData;
DBTimeStamp_t fEventTimeStamp
float PedRmsErr(DBChannelID_t ch) const override
float PedRms(DBChannelID_t ch) const override
float PedMeanErr(DBChannelID_t ch) const override
bool Update(DBTimeStamp_t ts)
Update Snapshot and inherited DBFolder if using database. Return true if updated. ...
const DetPedestal & Pedestal(DBChannelID_t ch) const
Retrieve pedestal information.
static constexpr const char * FIELD_NAMES[NCOLUMNS]
bool DBUpdate() const
Do actual database updates.
static constexpr unsigned int NCOLUMNS
DataSource::ds fDataSource
Retrieves channel information: pedestal and RMS.
DetPedestalRetrievalAlg(const std::string &foldername, const std::string &url, const std::string &tag="")
Constructors.
Snapshot< DetPedestal > fData
DBTimeStamp_t fCurrentTimeStamp
Class def header for a class DatabaseRetrievalAlg.
Filters for channels, events, etc.
float PedMean(DBChannelID_t ch) const override
static constexpr const char * FIELD_TYPES[NCOLUMNS]
void UpdateTimeStamp(DBTimeStamp_t ts)
Update event time stamp.
void Reconfigure(fhicl::ParameterSet const &p) override
Reconfigure function called by fhicl constructor.