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=
"");
69 bool Update(DBTimeStamp_t ts);
72 const DetPedestal&
Pedestal(DBChannelID_t ch)
const;
73 float PedMean(DBChannelID_t ch)
const override;
74 float PedRms(DBChannelID_t ch)
const override;
75 float PedMeanErr(DBChannelID_t ch)
const override;
76 float PedRmsErr(DBChannelID_t ch)
const override;
81 = {
"channel",
"mean",
"mean_err",
"rms",
"rms_err"};
83 = {
"unsigned int",
"float",
"float",
"float",
"float"};
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]
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
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 Reconfigure(fhicl::ParameterSet const &p) override
Reconfigure function called by fhicl constructor.